server-re/decomp/DBCServer_Release_x64/full/functions/0x14016ed90.c

28 lines
902 B
C

/* DBCServer_Release_x64.exe sha256 d9e4fccdf3482e50247686d4452c0b13c75a53efc4bd7320668eece8d1ce828c
* Ghidra 12.1.2 decompiler output for 0x14016ed90 FUN_14016ed90
* Pseudocode, not original source. */
HMODULE FUN_14016ed90(uint param_1,WORD param_2)
{
HMODULE hModule;
HRSRC pHVar1;
longlong lVar2;
int iVar3;
hModule = ATL::CAtlBaseModule::GetHInstanceAt((CAtlBaseModule *)&DAT_140352600,0);
iVar3 = 0;
while( true ) {
if (hModule == (HMODULE)0x0) {
return (HMODULE)0x0;
}
iVar3 = iVar3 + 1;
pHVar1 = FindResourceExW(hModule,(LPCWSTR)0x6,
(LPCWSTR)(ulonglong)(ushort)((short)(param_1 >> 4) + 1),param_2);
if ((pHVar1 != (HRSRC)0x0) && (lVar2 = FUN_14016ecf0(hModule,pHVar1,param_1), lVar2 != 0))
break;
hModule = ATL::CAtlBaseModule::GetHInstanceAt((CAtlBaseModule *)&DAT_140352600,iVar3);
}
return hModule;
}