//
// sub_1800DEBD0 from 0x1800debd0 to 0x1800dec14 (68 bytes)
//
// 2 xrefs:
// > sub_1800DDC10 @ 0x1800de0a3
// > ??> @ 0x1801baf14
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
FARPROC __fastcall sub_1800DEBD0(LPCSTR lpProcName)
{
HMODULE v2; // rcx
FARPROC result; // rax
v2 = *((HMODULE *)sub_1800D99B0((__int64)&unk_1801AB18C) + 85);
if ( !v2 )
return (FARPROC)qword_1801AC218(lpProcName);
result = GetProcAddress(v2, lpProcName);
if ( !result )
return (FARPROC)qword_1801AC218(lpProcName);
return result;
}