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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x58e464
sub esp, 0x5c
mov byte [esp + 0x22], 0
mov eax, dword [esp + 0x78]
xor ecx, ecx
mov edx, eax
jmp 0x58e1fe
mov ebx, ecx
mov ecx, edx
mov edx, ebx
mov ebx, dword [esp + 0x7c]
cmp ebx, eax
jle 0x58e442
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov byte [esp + 0x23], cl
lea ecx, [esp + 0x64]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.0058a980
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x58e242
mov byte [esp + 0x22], 0
lea ecx, [eax - 1]
xor edx, edx
jmp 0x58e1f8
mov eax, dword [esp + 0x60]
mov edx, dword [eax + 8]
mov edi, esp
lea esi, [esp + 0x64]
call fcn.0045d09e
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
mov ebx, dword [edx]
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
movzx eax, byte [esp + 0x55]
test al, al
je 0x58e408
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
cmp byte [esp + 0x22], 0x1e
ja 0x58e44b
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
movzx eax, byte [esp + 0x22]
movzx ecx, byte [esp + 0x38]
add eax, ecx
mov byte [esp + 0x22], al
cmp al, 0x1e
jbe 0x58e3d7
mov byte [esp + 0x22], 0
mov eax, 2
test eax, eax
jne 0x58e3a4
movzx eax, byte [esp + 0x23]
cmp byte [esp + 0x56], al
jb 0x58e38d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x60]
movzx edx, byte [ecx + 4]
test dl, dl
je 0x58e367
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ebx
movzx edx, byte [esp + 0x51]
test dl, 0x10
jne 0x58e325
movzx edx, byte [esp + 0x56]
movzx ebx, byte [esp + 0x55]
mov ebp, dword [esp + 0x24]
add ebx, ebp
mov ecx, eax
mov eax, ebx
jmp 0x58e1f8
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x24]
cmp ecx, edx
jne 0x58e354
movzx edx, byte [esp + 0x80]
test dl, dl
je 0x58e350
mov dword [esp + 0x84], ecx
mov byte [esp + 0x88], 1
add esp, 0x5c
ret
mov ecx, eax
jmp 0x58e33d
mov dword [esp + 0x84], eax
mov byte [esp + 0x88], 0
add esp, 0x5c
ret
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ebx
movzx edx, byte [esp + 0x49]
test dl, 4
je 0x58e30c
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x24]
cmp ecx, edx
jmp 0x58e32f
mov eax, dword [esp + 0x28]
mov dword [esp + 0x84], eax
mov byte [esp + 0x88], 0
add esp, 0x5c
ret
cmp eax, 1
jne 0x58e3b2
mov eax, dword [esp + 0x24]
jmp 0x58e2e6
cmp eax, 2
je 0x58e3c0
mov eax, dword [esp + 0x28]
jmp 0x58e2e6
mov eax, dword [esp + 0x28]
mov dword [esp + 0x84], eax
mov byte [esp + 0x88], 0
add esp, 0x5c
ret
test cl, cl
jne 0x58e401
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
movzx ecx, byte [esp + 0x41]
and ecx, 3
mov byte [esp + 0x22], cl
mov eax, 1
jmp 0x58e2cb
xor eax, eax
jmp 0x58e2cb
movzx eax, byte [esp + 0x80]
test al, al
je 0x58e42b
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x84], eax
mov byte [esp + 0x88], 1
add esp, 0x5c
ret
mov eax, dword [esp + 0x28]
mov dword [esp + 0x84], eax
mov byte [esp + 0x88], 1
add esp, 0x5c
ret
mov ecx, ebx
mov eax, edx
jmp 0x58e32f
lea eax, [0x643700]
mov dword [esp], eax
lea eax, [0x6c85b8]
mov dword [esp + 4], eax
call fcn.00431bb0
nop
call fcn.0045b380
jmp fcn.0058e1d0