// // sub_1800E15D0 from 0x1800e15d0 to 0x1800e17b7 (487 bytes) // // 5 xrefs: // > sub_1800D7E10 @ 0x1800d7e9b // > @ 0x18014c7ac // > @ 0x18014c7bc // > @ 0x1801c519c // > @ 0x1801c51a8 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:22:36 +0000 // __int64 sub_1800E15D0() { const CHAR *v0; // rax __int64 v2; // rbx FARPROC OSMesaGetProcAddress; // rax _QWORD v4[2]; // [rsp+28h] [rbp-20h] v0 = "libOSMesa.dll"; v4[0] = "OSMesa.dll"; v4[1] = 0; if ( qword_1801B62A0 ) return 1; v2 = 0; do { qword_1801B62A0 = LoadLibraryA(v0); if ( qword_1801B62A0 ) break; v0 = (const CHAR *)v4[v2++]; } while ( v0 ); if ( qword_1801B62A0 ) { OSMesaCreateContextExt = (__int64 (__fastcall *)(_QWORD, _QWORD, _QWORD, _QWORD, _QWORD))GetProcAddress( qword_1801B62A0, "OSMesaCreateContextExt"); OSMesaCreateContextAttribs = (__int64)GetProcAddress(qword_1801B62A0, "OSMesaCreateContextAttribs"); OSMesaDestroyContext = (__int64)GetProcAddress(qword_1801B62A0, "OSMesaDestroyContext"); OSMesaMakeCurrent = (__int64)GetProcAddress(qword_1801B62A0, "OSMesaMakeCurrent"); OSMesaGetColorBuffer = (__int64)GetProcAddress(qword_1801B62A0, "OSMesaGetColorBuffer"); OSMesaGetDepthBuffer = (__int64)GetProcAddress(qword_1801B62A0, "OSMesaGetDepthBuffer"); OSMesaGetProcAddress = GetProcAddress(qword_1801B62A0, "OSMesaGetProcAddress"); qword_1801B62D8 = (__int64)OSMesaGetProcAddress; if ( OSMesaCreateContextExt && OSMesaDestroyContext && OSMesaMakeCurrent && OSMesaGetColorBuffer && OSMesaGetDepthBuffer && OSMesaGetProcAddress ) { return 1; } sub_1800DB260(0x10008u, "OSMesa: Failed to load required entry points"); if ( qword_1801B62A0 ) { FreeLibrary(qword_1801B62A0); qword_1801B62A0 = nullptr; } return 0; } else { sub_1800DB260(0x10006u, "OSMesa: Library not found"); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source