// // sub_1800C0FD0 from 0x1800c0fd0 to 0x1800c127a (682 bytes) // // 2 xrefs: // > sub_1800D45C0 @ 0x1800d4604 // > @ 0x1801fdb78 // // 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 10:54:03 +0000 // __int64 sub_1800C0FD0() { HRESULT Instance; // eax _DWORD *v1; // rax int v2; // eax int v3; // eax int cchWideChar; // ebx _DWORD *v5; // rax HMODULE LibraryW; // rax __int64 v8; // [rsp+30h] [rbp-238h] WCHAR WideCharStr[256]; // [rsp+40h] [rbp-228h] BYREF _DWORD *v10; // [rsp+240h] [rbp-28h] LPCWSTR lpLibFileName; // [rsp+248h] [rbp-20h] if ( !ppv ) { Instance = CoCreateInstance(&rclsid, nullptr, 0x17u, &riid, &ppv); if ( Instance == -2147221008 ) { if ( CoInitializeEx(nullptr, 2u) < 0 ) return 51; Instance = CoCreateInstance(&rclsid, nullptr, 0x17u, &riid, &ppv); } if ( Instance < 0 ) return 51; } v1 = sub_1800B6530( *((_QWORD *)off_1801AED20 + 52), 16, "C:\\buildagent1\\work\\570ad728b1678096\\core_api\\platforms\\win\\src\\fmod_os_misc.cpp", 107, 0, 0, 1); if ( !v1 ) { qword_1801EF758 = 0; return 38; } v1[2] = 0; *(_QWORD *)v1 = off_18016C1E8; qword_1801EF758 = (__int64)v1; v2 = (*(__int64 (__fastcall **)(LPVOID, _DWORD *))(*(_QWORD *)ppv + 48LL))(ppv, v1); if ( v2 != -2147023836 ) { byte_1801EF760 = 1; if ( v2 >= 0 ) goto LABEL_9; return 51; } byte_1801EF760 = 0; LABEL_9: v10 = nullptr; lpLibFileName = WideCharStr; WideCharStr[0] = 0; v3 = MultiByteToWideChar(0xFDE9u, 8u, "KernelBase.dll", -1, nullptr, 0); cchWideChar = v3; if ( !v3 ) goto LABEL_18; if ( v3 >= 256 ) { LOBYTE(v8) = 1; v5 = sub_1800B6530( *((_QWORD *)off_1801AED20 + 52), (unsigned int)(2 * v3), "C:\\buildagent1\\work\\570ad728b1678096\\core_api\\platforms\\win\\src\\fmod_os_misc.cpp", 267, 0, 0, v8); v10 = v5; } else { v5 = WideCharStr; } lpLibFileName = (LPCWSTR)v5; if ( !MultiByteToWideChar(0xFDE9u, 0, "KernelBase.dll", -1, (LPWSTR)v5, cchWideChar) ) goto LABEL_18; LibraryW = LoadLibraryW(lpLibFileName); hLibModule = LibraryW; if ( !LibraryW ) { GetLastError(); LABEL_18: if ( v10 ) sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v10); return 0; } if ( v10 ) { sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), v10); LibraryW = hLibModule; } SetThreadDescription = (HRESULT (__stdcall *)(HANDLE, PCWSTR))GetProcAddress(LibraryW, "SetThreadDescription"); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source