Function at 0x45cc30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4cd3f1
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x512f80]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x512f80]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x84]
mov dword [esp + 0x20], ebx
mov esi, dword [0x523c20]
xor edi, edi
cmp esi, ebx
mov dword [esp + 0x1c], eax
jne 0x45cc8c
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
push str.CONFIGDATA
push str.GENERALDIRECTORYSERVER_IPADDRPORTS
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
cmp ebp, ebx
je 0x45ccfd
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x45ccfd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x45ccf9
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x45ccc1
push ebp
sub eax, edx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp edi, eax
jbe 0x45ccf9
push 0xf7
push str...EngineSrcFindGeneralDirectoryServer.cpp
push str.____szBrandedIPPorts____strlen__szBrandedIPPorts_____SizeofResource_hModule__hRes____
push ecx
call fcn.0042c7e0
add esp, 4
mov ecx, eax
call fcn.0042ca10
mov edi, dword [esp + 0x14]
mov ebp, 0xf
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov dword [esp + 0x7c], 1
push 0x2c
push str.GeneralDirectoryServer_FindServerIPAddrPorts
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
call fcn.0040e480
mov byte [esp + 0x7c], 2
lea ecx, [esp + 0x14]
call fcn.0042dbe0
mov esi, eax
mov byte [esp + 0x7c], 3
cmp dword [esi], ebx
jne 0x45cd6e
push str.Non_null_m_pOwnedObj
push ecx
call fcn.0042c7e0
add esp, 4
push eax
mov eax, 0x107
mov ecx, str.u:p4clients_rel_betaprojectscommonmiscThreadSafeCountedPtr.h
mov edx, str.m_pOwnedObj
call fcn.0042ca40
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x28]
push eax
call edx
mov byte [esp + 0x7c], 2
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x45cdbe
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x45cdbe
mov eax, dword [esp + 0x18]
push eax
call fcn.004606bf
mov ecx, dword [esp + 0x18]
add esp, 4
cmp ecx, ebx
mov dword [esp + 0x18], ebx
je 0x45cdba
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x7c], 1
cmp dword [esp + 0x3c], 0x10
jb 0x45cdd7
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004606bf
add esp, 4
cmp dword [esp + 0x64], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
jne 0x45ce08
cmp edi, ebx
je 0x45ce08
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x45cdf2
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x58]
call fcn.0040e480
mov edi, dword [esp + 0x1c]
push edi
lea ecx, [esp + 0x54]
call fcn.004526a0
add esp, 4
mov eax, dword [edi + 4]
cmp eax, ebx
mov dword [esp + 0x20], 1
je 0x45ce34
mov esi, dword [edi + 8]
mov edx, esi
sub edx, eax
sar edx, 3
jne 0x45ce54
push str.No_IP:ports_provided_for_GeneralDirectoryServers
lea eax, [esp + 0x28]
push eax
xor cl, cl
call fcn.0040e5f0
push 0x5026f0
lea ecx, [esp + 0x28]
push ecx
call fcn.00488a7c
cmp eax, esi
jbe 0x45ce5d
call fcn.00483a80
mov edi, dword [edi + 4]
mov ebp, dword [esp + 0x1c]
cmp edi, dword [ebp + 8]
jbe 0x45ce6e
call fcn.00483a80
push esi
push ebp
push edi
push ebp
call fcn.0045c860
add esp, 0x10
mov byte [esp + 0x7c], bl
cmp dword [esp + 0x68], 0x10
jb 0x45ce92
mov edx, dword [esp + 0x54]
push edx
call fcn.004606bf
add esp, 4
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
mov eax, ebp
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0048162f
add esp, 0x6c
ret