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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x58c2c0
sub esp, 0x64
mov edx, dword [0x85b174]
mov ebx, dword [0x85b170]
test edx, edx
je 0x58bd98
mov ecx, dword [esp + 0x68]
xor eax, eax
xor ebp, ebp
xor esi, esi
jmp 0x58c287
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
test eax, eax
jne 0x58bddc
cmp ecx, 4
jne 0x58bdbe
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
jmp 0x58beb2
mov eax, dword [0x8602b8]
mov ecx, dword [0x8602bc]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add esp, 0x64
ret
cmp eax, 2
je 0x58c251
cmp eax, 3
jne 0x58be1e
movzx edx, byte [esp + 0x8c]
test dl, dl
jne 0x58be1e
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.00408d20
mov eax, dword [esp + 4]
lea ecx, [0x6f69e4]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
add esp, 0x64
ret
cmp eax, 0x14
jae 0x58c233
mov edx, dword [0x86091c]
mov ebx, dword [0x860918]
cmp eax, edx
jae 0x58c279
mov edx, dword [ebx + eax*4]
test edx, edx
je 0x58c233
mov dword [esp], eax
call fcn.004e6310
mov eax, dword [esp + 4]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0x20]
mov dword [esp], ecx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0xc], ebx
call edx
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x84]
test ebx, ebx
je 0x58c215
mov ebx, dword [ebx + 8]
cmp ebx, 0x188a5798
jne 0x58bfdc
mov ebx, dword [esp + 0x84]
lea ebp, [0x65fb00]
cmp ebx, ebp
jne 0x58c215
mov ebx, dword [esp + 0x88]
mov esi, dword [ebx + 4]
mov edi, dword [ebx + 8]
mov ebx, dword [ebx]
mov ebp, dword [esp + 0x2c]
cmp ebp, 4
jne 0x58bf94
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x20], eax
call fcn.00564d90
movzx eax, byte [esp + 0x24]
test al, al
je 0x58bf5b
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
add esp, 0x64
ret
lea eax, [0x662400]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x22
lea ecx, [0x698cea]
mov dword [eax], ecx
lea ecx, [0x6f6584]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
add esp, 0x64
ret
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
call fcn.00408eb0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
lea ecx, [0x65fb00]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.0058bc60
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add esp, 0x64
ret
cmp ebx, 0x2fd00e80
jne 0x58c0cd
mov ebx, dword [esp + 0x84]
lea ebp, [0x67b780]
cmp ebx, ebp
jne 0x58c215
mov ebx, dword [esp + 0x2c]
cmp ebx, 3
jne 0x58c09c
mov ebx, dword [esp + 0x88]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x18], eax
call fcn.0055b870
movzx eax, byte [esp + 0x1c]
test al, al
je 0x58c063
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
add esp, 0x64
ret
lea eax, [0x662400]
mov dword [esp], eax
call fcn.0040b470
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x20
lea ecx, [0x697daa]
mov dword [eax], ecx
lea ecx, [0x6f6584]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
add esp, 0x64
ret
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
call fcn.0058bc60
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add esp, 0x64
ret
cmp ebx, 0xcc456746
jne 0x58c215
mov ebx, dword [esp + 0x84]
lea ebp, [0x664300]
cmp ebx, ebp
jne 0x58c215
mov ebx, dword [esp + 0x2c]
cmp ebx, 1
jne 0x58c1e4
nop
mov ebx, dword [esp + 0x68]
add ebx, 0xfffffff3
cmp ebx, 2
ja 0x58c18c
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0xffffffff
mov ebx, dword [esp + 0x88]
mov dword [esp], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x20], eax
call fcn.00566000
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add esp, 0x64
ret
mov ebx, dword [esp + 0x88]
mov dword [esp], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x1c], eax
call fcn.00565620
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add esp, 0x64
ret
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x88]
mov dword [esp + 8], eax
call fcn.0058bc60
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add esp, 0x64
ret
mov eax, dword [0x8602b8]
mov ecx, dword [0x8602bc]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add esp, 0x64
ret
mov eax, dword [0x8602b8]
mov ecx, dword [0x8602bc]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ecx
add esp, 0x64
ret
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call fcn.00408d20
mov eax, dword [esp + 4]
lea ecx, [0x6f69e4]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
add esp, 0x64
ret
mov ecx, edx
call fcn.0045f7e0
add ebx, 0x20
mov eax, ebp
mov ebp, edi
mov dword [esp + 0x2c], esi
lea edi, [esp + 0x44]
mov esi, ebx
call fcn.0045feb0
mov ecx, dword [esp + 0x68]
cmp dword [esp + 0x44], ecx
jne 0x58c2aa
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
jmp 0x58c2ae
mov esi, dword [esp + 0x2c]
mov edi, ebp
lea ebp, [eax + 1]
cmp edx, ebp
jg 0x58c280
mov eax, edi
mov ecx, esi
jmp 0x58bd9c
call fcn.0045e340
jmp fcn.0058bd60