Function at 0x591cf8
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x592310
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00407fac
lea eax, [esi + 0x10]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 0xc]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00407fac
lea eax, [esi + 0x14]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 0xc]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x18]
mov edx, dword [ebp - 0xc]
call fcn.00407fac
lea eax, [esi + 0x18]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 0xc]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.00407fac
lea eax, [esi + 0x1c]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 0xc]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x20]
mov edx, dword [ebp - 0xc]
call fcn.00407fac
lea eax, [esi + 0x20]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 0xc]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x15]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00407fac
lea eax, [esi + 0x24]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 0xc]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x28]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x29]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x88]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x2c]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x30]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x34]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x35]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x36]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x37]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x3b]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x3c]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x3d]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x38]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x39]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x3a]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x3e]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x3f]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x80]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x7c]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x84]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x90]
mov ecx, 8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x98]
mov ecx, 8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x40]
mov edx, dword [ebp - 0xc]
call fcn.00407fac
lea eax, [esi + 0x40]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 0xc]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x44]
mov edx, dword [ebp - 0xc]
call fcn.00407fac
lea eax, [esi + 0x44]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 0xc]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x48]
mov edx, dword [ebp - 0xc]
call fcn.00407fac
lea eax, [esi + 0x48]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 0xc]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x4c]
mov edx, dword [ebp - 0xc]
call fcn.00407fac
lea eax, [esi + 0x4c]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 0xc]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xc]
push eax
lea eax, [esi + 0x50]
mov ecx, 1
mov edx, dword [0x58fcd0]
call fcn.00409208
add esp, 4
mov eax, dword [esi + 0x50]
call fcn.00409048
test eax, eax
jl 0x592124
inc eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*2]
mov edx, dword [esi + 0x50]
lea edx, [edx + eax*4]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*2]
mov edx, dword [esi + 0x50]
lea edx, [edx + eax*4 + 4]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*2]
mov edx, dword [esi + 0x50]
lea eax, [edx + eax*4 + 8]
mov edx, dword [ebp - 0xc]
call fcn.00407fac
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*2]
mov edx, dword [esi + 0x50]
lea eax, [edx + eax*4 + 8]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 0xc]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
inc dword [ebp - 0x14]
dec dword [ebp - 0x28]
jne 0x5920a7
lea edx, [esi + 0x54]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x68]
mov ecx, 8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [esi + 0x70]
mov ecx, 8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [esi + 0x78]
mov edx, dword [ebp - 0xc]
call fcn.00407fac
lea eax, [esi + 0x78]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 0xc]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x592250
inc eax
mov dword [ebp - 0x28], eax
lea edx, [ebp - 0x1c]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.00407fac
lea eax, [ebp - 4]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 0xc]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00407fac
lea eax, [ebp - 8]
call fcn.00407748
mov edx, eax
mov ecx, dword [ebp - 0xc]
add ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x20]
mov ecx, 4
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x21]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x20]
push eax
movzx eax, byte [ebp - 0x21]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.005930e0
dec dword [ebp - 0x28]
jne 0x5921a0
lea edx, [esi + 0x5c]
mov ecx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0x15]
mov ecx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0x15]
mov ecx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0x15]
mov ecx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0x15]
mov ecx, 1
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 0xc]
lea edx, [ebp - 0x15]
mov ecx, 1
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x592317
lea eax, [ebp - 8]
mov edx, 2
call fcn.004071a8
ret