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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x58b681
sub esp, 0x84
lea ecx, [esp + 4]
mov dword [esp + 0x58], ecx
mov ebx, dword [esp + 0x88]
mov ebp, dword [ebx + 0x26c]
mov dword [esp + 0x2c], ebp
mov esi, dword [ebx + 0x268]
mov dword [esp + 0x4c], esi
mov eax, ecx
mov ecx, dword [ebx + 0x270]
mov dword [esp + 0x30], ecx
lea edi, [ebx + 0x268]
mov dword [esp + 0x54], edi
xor edx, edx
jmp 0x58b43a
lea edi, [esp + 0x5c]
xor eax, eax
call fcn.0045cbbb
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x64], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x68], edx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x6c], ebx
mov ebp, dword [esp + 0x88]
mov dword [esp], ebp
mov edi, dword [esp + 0x58]
lea esi, [esp + 0x5c]
call fcn.0045d09e
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
call fcn.00589650
movzx ecx, byte [esp + 0x45]
mov edx, dword [esp + 0x28]
add edx, ecx
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x88]
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x54]
cmp edx, ebp
jge 0x58b5f3
mov dword [esp + 0x28], edx
mov ebx, dword [ebx + 0x190]
mov edi, esp
xor eax, eax
call fcn.0045cbbb
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebp
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ecx, dword [ebx]
mov edx, ebx
call ecx
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebx
movzx ecx, byte [esp + 0x3e]
test cl, cl
jne 0x58b5ec
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
movzx ecx, byte [esp + 0x39]
test cl, 8
sete cl
test cl, cl
je 0x58b3bd
mov eax, dword [esp + 0x88]
mov dword [esp], eax
call fcn.0058a210
mov eax, dword [esp + 0x88]
mov dword [esp], eax
lea ecx, [eax + 0x1d4]
mov dword [esp + 0x50], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 0xc], pe_nt_image_headers32
call fcn.005892a0
mov ecx, dword [esp + 0x10]
cmp ecx, 0x80
ja 0x58b676
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x70]
xor eax, eax
call fcn.0045cbbb
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x78], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x7c], edx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x80], ebx
mov ebp, dword [esp + 0x88]
mov dword [esp], ebp
mov edi, dword [esp + 0x58]
lea esi, [esp + 0x70]
call fcn.0045d09e
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
call fcn.00589650
movzx ecx, byte [esp + 0x45]
mov edx, dword [esp + 0x28]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
ja 0x58b671
sub ecx, eax
mov edx, dword [esp + 0x88]
mov dword [edx + 0x26c], ecx
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov dword [edx + 0x270], ecx
mov ebx, dword [0x7e34e0]
neg ecx
sar ecx, 0x1f
and eax, ecx
mov ecx, dword [esp + 0x4c]
add eax, ecx
test ebx, ebx
jne 0x58b5e1
mov dword [edx + 0x268], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], pe_nt_image_headers32
add esp, 0x84
ret
mov edi, dword [esp + 0x54]
call fcn.0045c920
jmp 0x58b5b9
xor ecx, ecx
jmp 0x58b4b7
mov dword [ebx + 0x26c], 0
mov dword [ebx + 0x270], 0
mov ecx, dword [0x7e34e0]
test ecx, ecx
jne 0x58b657
mov dword [ebx + 0x268], 0
lea eax, [0x692b0c]
mov dword [ebx + 0x25c], eax
mov dword [esp], ebx
call fcn.0058d4b0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
add esp, 0x84
ret
xor eax, eax
call fcn.0045c920
lea edi, [ebx + 0x25c]
lea eax, [0x692b0c]
call fcn.0045c920
jmp 0x58b627
call fcn.0045ca00
mov edx, pe_nt_image_headers32
call fcn.0045c9c0
nop
call fcn.0045b380
jmp fcn.0058b360