Function at 0x511160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x28]
cmp eax, dword [ecx + 8]
jbe 0x511439
sub esp, 0xa8
mov eax, dword [esp + 0xac]
mov dword [esp], eax
call fcn.004cc060
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x2c], ecx
cmp ecx, 2
lea edi, [esp + 0x48]
lea esi, [0x58c160]
call fcn.004562e8
mov ecx, dword [esp + 0x2c]
cmp ecx, 2
setg cl
movzx ecx, cl
mov dword [esp + 0x48], ecx
mov ecx, dword [eax]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
test ecx, ecx
jbe 0x511431
mov edx, dword [edx]
mov dword [esp + 0x58], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ecx, 1
jbe 0x511427
mov ecx, dword [edx + 4]
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x60], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x68], ecx
mov ecx, dword [eax + 0x28]
mov dword [esp + 0x28], ecx
lea edx, [0x547560]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
call fcn.00440360
mov eax, dword [esp + 0xc]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xac]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x28]
test edx, edx
jle 0x51134a
xor ebx, ebx
jmp 0x511264
add ecx, 0xc
mov ebx, edx
mov edx, esi
mov ebp, dword [ecx + 4]
mov esi, edx
mov edx, dword [ecx]
mov dword [esp + 0x44], edx
mov edi, ebp
mov ebp, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov dword [esp + 0x40], edx
lea edx, [ebx + 2]
cmp edx, ebp
jae 0x51141e
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x3c], edx
mov ebp, dword [esp + 0x70]
mov edx, dword [esp + 0x40]
mov edx, dword [edx + ebx*4 + 8]
cmp ebx, ebp
jae 0x511415
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], edx
lea ebp, [ebx + ebx*2]
mov ebx, dword [esp + 0x3c]
lea edx, [ebx + ebp*4]
mov dword [esp + 0x40], edx
mov edx, dword [0x67bf10]
test edx, edx
jne 0x5113e9
mov edx, dword [esp + 0x38]
mov dword [ebx + ebp*4], edx
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x24]
cmp ebx, edx
jae 0x51140c
mov edx, dword [esp + 0x34]
lea ebx, [edx + ebp*4 + 4]
mov dword [esp + 0x40], ebx
mov ebx, dword [0x67bf10]
test ebx, ebx
jne 0x5113cf
mov ebx, dword [esp + 0x44]
mov dword [edx + ebp*4 + 4], ebx
mov edx, dword [esp + 0x70]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x24]
cmp ebx, edx
jae 0x511403
mov edx, dword [esp + 0x30]
lea ebx, [edx + ebp*4 + 8]
mov dword [esp + 0x40], ebx
mov ebx, dword [0x67bf10]
test ebx, ebx
jne 0x5113b9
mov dword [edx + ebp*4 + 8], edi
mov edx, dword [esp + 0x24]
inc edx
cmp edx, esi
jl 0x51125d
lea edi, [esp + 0x78]
lea esi, [esp + 0x48]
call fcn.004562e8
lea eax, [0x550040]
mov dword [esp], eax
lea eax, [esp + 0x78]
mov dword [esp + 4], eax
call fcn.00407f70
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004df570
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xb8], edx
add esp, 0xa8
ret
mov edx, edi
mov edi, dword [esp + 0x40]
mov ebx, eax
mov eax, edx
call fcn.00455bf0
mov eax, ebx
jmp 0x51133d
mov edx, edi
mov edi, dword [esp + 0x40]
mov ebx, eax
mov eax, dword [esp + 0x44]
call fcn.00455bf0
mov eax, ebx
mov edi, edx
jmp 0x511307
mov edx, edi
mov edi, dword [esp + 0x40]
mov ebx, eax
mov eax, dword [esp + 0x38]
call fcn.00455bf0
mov eax, ebx
mov edi, edx
jmp 0x5112cd
mov eax, ebx
mov ecx, edx
call fcn.00455c70
mov eax, ebx
mov ecx, edx
call fcn.00455c70
mov eax, ebx
mov ecx, ebp
call fcn.00455c70
mov eax, edx
mov ecx, ebp
call fcn.00455c70
mov eax, 1
call fcn.00455c70
xor eax, eax
call fcn.00455c70
nop
call fcn.004543b0
jmp fcn.00511160