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

Disassembly:
mov ecx, dword [0x817cc4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x58d236
sub esp, 0x6c
mov eax, 0
mov dword [esp + 0x68], eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov ecx, dword [esp + 0x7c]
mov dword [esp + 4], ecx
call fcn.0058b5a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov ebx, dword [esp + 0xc]
test eax, eax
jne 0x58d081
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x7c]
cmp eax, 5
jge 0x58cdf0
xor ebp, ebp
jmp 0x58ce25
mov eax, dword [esp + 0x78]
mov dword [esp], eax
lea ecx, [0x5d7a2c]
mov dword [esp + 4], ecx
mov dword [esp + 8], 5
call fcn.00403080
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x24]
mov ebp, eax
mov eax, dword [esp + 0x7c]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x58ce34
mov ecx, dword [esp + 0x78]
jmp 0x58cee5
lea eax, [0x5b24a0]
mov dword [esp], eax
mov dword [esp + 4], ecx
lea edx, [0x5d7ee2]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 7
call fcn.0040fe10
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
test eax, eax
je 0x58ce6d
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
jmp 0x58cee5
lea eax, [0x5b24a0]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
lea ecx, [0x5d7ee2]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 7
call fcn.004104a0
mov eax, dword [esp + 0x10]
mov dword [eax + 4], 5
mov ecx, dword [0x817f20]
test ecx, ecx
je 0x58ceb3
mov ecx, dword [eax]
call fcn.00466d10
mov dword [edi], ecx
lea ecx, [0x5d7a22]
mov dword [eax], ecx
mov eax, dword [esp + 0x78]
mov dword [esp], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
call fcn.00589cd0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, eax
mov eax, ecx
mov ecx, edx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x70]
mov dword [esp], edx
mov ebx, dword [esp + 0x74]
mov dword [esp + 4], ebx
call fcn.004ad9f0
mov eax, dword [esp + 8]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x70]
mov dword [esp], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
call fcn.004095b0
mov eax, dword [esp + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
mov edx, dword [esp + 0x38]
mov dword [esp + 4], edx
call fcn.004095b0
mov eax, dword [esp + 8]
lea ecx, [0x7f2100]
mov dword [esp], ecx
lea ecx, [0x5b0d00]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.00478f40
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
call fcn.004095b0
mov eax, dword [esp + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
call fcn.004095b0
mov eax, dword [esp + 8]
lea ecx, [0x7f2120]
mov dword [esp], ecx
lea ecx, [0x5b0d00]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.00478f40
lea eax, [0x817d68]
mov dword [esp], eax
call fcn.00479790
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea eax, [0x58d240]
mov dword [esp + 0x60], eax
lea eax, [0x817d68]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x68], eax
mov byte [esp + 0x23], 1
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x5c], ecx
lea edx, [0x7f2140]
mov dword [esp], edx
lea ebx, [0x5b0d00]
mov dword [esp + 4], ebx
lea ebp, [esp + 0x58]
mov dword [esp + 8], ebp
call fcn.004787e0
movzx eax, byte [esp + 0x14]
test al, al
je 0x58d061
mov eax, dword [esp + 0xc]
lea ecx, [0x5ab4a0]
cmp eax, ecx
jne 0x58d216
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [eax + 8]
jmp 0x58d06d
lea ecx, [0x5ab4a0]
xor eax, eax
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebx
mov ebp, dword [esp + 0x30]
xor esi, esi
jmp 0x58d0a2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x6c
ret
inc esi
lea ecx, [0x5ab4a0]
cmp ebx, esi
jle 0x58d110
lea edi, [edx + esi*8]
mov ecx, dword [edi + 4]
cmp ecx, ebp
jne 0x58d09b
mov dword [esp + 0x38], esi
mov eax, dword [edi]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00403080
movzx eax, byte [esp + 0xc]
test al, al
jne 0x58d0e9
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x38]
jmp 0x58d09b
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
call eax
add esp, 0x6c
ret
inc ebx
cmp eax, ebx
jae 0x58d14d
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x5b0d00]
mov dword [esp + 0x10], eax
call fcn.0044d390
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
lea ecx, [0x5ab4a0]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], eax
lea esi, [edx + ebx*8 - 4]
mov dword [esi], ebp
mov ebp, dword [0x817f20]
lea esi, [edx + ebx*8 - 8]
test ebp, ebp
jne 0x58d173
mov ebp, dword [esp + 0x48]
jmp 0x58d183
call fcn.00466d20
mov ebp, dword [esp + 0x48]
mov dword [edi], ebp
mov ecx, dword [esi]
mov dword [edi + 4], ecx
mov dword [esi], ebp
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.004095b0
mov eax, dword [esp + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], ecx
call fcn.00409630
mov eax, dword [esp + 0xc]
lea ecx, [0x7f2140]
mov dword [esp], ecx
lea ecx, [0x5b0d00]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 8], ecx
lea ecx, [0x5ab4a0]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.00478f40
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov byte [esp + 0x23], 0
mov edx, dword [esp + 0x68]
mov eax, dword [edx]
call eax
add esp, 0x6c
ret
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0x5b1a80]
mov dword [esp + 8], eax
call fcn.004092b0
nop
call fcn.00436f70
add esp, 0x6c
ret
call fcn.00465910
jmp fcn.0058cd70