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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x58c4f9
sub esp, 0x68
lea edi, [esp + 0x7c]
xor eax, eax
call fcn.00465fea
lea edi, [esp + 0x50]
call fcn.00465fea
mov ecx, dword [esp + 0x70]
cmp ecx, 2
jl 0x58c271
mov edx, dword [esp + 0x6c]
movzx ebx, byte [edx + 1]
movzx ebp, byte [edx]
shl ebp, 8
or ebx, ebp
movzx ebx, bx
mov dword [esp + 0x34], ebx
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
xor esi, esi
mov edi, 2
jmp 0x58c326
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp], ecx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
lea eax, [0x702fa8]
mov dword [esp], eax
mov dword [esp + 4], 0x33
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
lea edi, [esp + 0x7c]
lea esi, [esp + 0x50]
call fcn.004664c4
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x9c], eax
add esp, 0x68
ret
mov eax, dword [esp + 0x30]
lea esi, [eax + 1]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x70]
mov ecx, edi
mov edi, edx
mov edx, dword [esp + 0x6c]
cmp esi, ebx
jge 0x58c4b3
cmp ecx, edi
jb 0x58c4f1
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], edi
sub ebp, edi
mov esi, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, edi
add ebp, edx
mov dword [esp], ebp
sub ecx, edi
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
call fcn.00591250
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
test ecx, ecx
jne 0x58c42c
mov edx, dword [esp + 0x54]
inc edx
mov ebx, dword [esp + 0x50]
mov ecx, ebp
mov ebp, dword [esp + 0x58]
cmp ebp, edx
jae 0x58c3f2
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], ecx
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x6aa660]
mov dword [esp + 0x10], eax
call fcn.0044be60
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x54], edx
lea edx, [edx + edx*2]
mov dword [ebx + edx*4 - 8], esi
mov dword [ebx + edx*4 - 4], edi
mov ebp, dword [0x1eaa9f0]
lea edi, [ebx + edx*4 - 0xc]
mov esi, edx
mov edx, dword [esp + 0x2c]
add edx, eax
test ebp, ebp
jne 0x58c420
mov dword [ebx + esi*4 - 0xc], ecx
jmp 0x58c303
mov eax, ecx
call fcn.00465d80
jmp 0x58c303
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
test edx, edx
je 0x58c443
mov edx, dword [edx + 4]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ebx
lea eax, [0x6f77a9]
mov dword [esp], eax
mov dword [esp + 4], 0x16
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x44], ecx
lea edi, [esp + 0x7c]
lea esi, [esp + 0x50]
call fcn.004664c4
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x9c], eax
add esp, 0x68
ret
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ebp
lea edi, [esp + 0x7c]
lea esi, [esp + 0x50]
call fcn.004664c4
mov eax, dword [esp + 0x70]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
add esp, 0x68
ret
mov eax, edi
call fcn.00465e60
nop
call fcn.004649b0
jmp fcn.0058c210