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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x3c]
cmp eax, dword [ecx + 8]
jbe 0x590689
sub esp, 0xbc
call fcn.0058e970
mov eax, dword [esp]
mov dword [esp + 0xb8], eax
call fcn.0058e970
mov eax, dword [esp]
mov dword [esp + 0xb4], eax
call fcn.0058e970
mov eax, dword [esp]
mov dword [esp + 0xb0], eax
call fcn.0058e970
mov eax, dword [esp]
mov dword [esp + 0xac], eax
call fcn.0058e970
mov eax, dword [esp]
mov dword [esp + 0xa8], eax
call fcn.0058e970
mov eax, dword [esp]
mov dword [esp + 0xa4], eax
call fcn.0058e970
mov eax, dword [esp]
mov dword [esp + 0xa0], eax
call fcn.0058e970
mov eax, dword [esp]
mov dword [esp + 0x9c], eax
call fcn.0058e970
mov eax, dword [esp]
mov dword [esp + 0x98], eax
call fcn.0058e970
mov eax, dword [esp]
mov dword [esp + 0x94], eax
call fcn.0058e970
mov eax, dword [esp]
mov dword [esp + 0x90], eax
call fcn.0058e970
mov eax, dword [esp]
mov dword [esp + 0x8c], eax
call fcn.0058e970
mov eax, dword [esp]
mov dword [esp + 0x88], eax
call fcn.0058e970
mov eax, dword [esp]
mov dword [esp + 0x84], eax
call fcn.0058e970
mov eax, dword [esp]
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 4], eax
call fcn.0058ebb0
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 4], eax
call fcn.0058f960
mov eax, 1
jmp 0x59041e
mov dword [esp + 0x24], eax
mov ecx, dword [esp + eax*4 + 0x48]
mov edx, dword [esp + eax*4 + 0x44]
mov ebx, dword [esp + 0x48]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0xc], ecx
call fcn.0058fa10
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0xf
jl 0x5903ee
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
mov ecx, dword [esp + 0xd4]
mov dword [esp + 4], ecx
call fcn.0058f840
mov eax, dword [esp + 0xc0]
mov ecx, dword [eax]
mov dword [ecx], 1
mov dword [esp], eax
mov ecx, dword [esp + 0xd4]
mov dword [esp + 4], ecx
call fcn.0058f960
call fcn.0058e970
mov eax, dword [esp + 0xd4]
mov dword [esp + 4], eax
call fcn.0058f800
mov eax, dword [esp + 8]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xc8]
mov ebx, dword [esp + 0xcc]
mov ebp, dword [esp + 0xc0]
xor esi, esi
jmp 0x5904a1
inc esi
mov eax, dword [esp + 0x44]
cmp ebx, esi
jle 0x5904da
mov dword [esp + 0x38], esi
movzx edi, byte [edx + esi]
xchg edi, eax
mov byte [esp + 0x17], al
xchg edi, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], 4
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x34], eax
jmp 0x590583
mov dword [esp], ebp
mov dword [esp + 4], ecx
call fcn.0058f9b0
mov eax, dword [esp + 8]
mov dword [esp + 0xd8], eax
add esp, 0xbc
ret
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov ecx, dword [esp + 0xc0]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov edx, dword [esp + 0xd4]
mov dword [esp + 0xc], edx
call fcn.0058fa10
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0058e8f0
mov eax, dword [esp + 8]
mov dword [esp], eax
call fcn.0058e890
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 8], ecx
call fcn.0058f260
mov eax, dword [esp + 0x34]
inc eax
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xc8]
mov ebx, dword [esp + 0xcc]
mov ebp, dword [esp + 0xc0]
mov esi, dword [esp + 0x38]
movzx edi, byte [esp + 0x17]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
cmp eax, 2
jge 0x59049c
mov edx, dword [esp + eax*4 + 0x3c]
mov dword [esp + 0x1c], edx
mov dword [esp], ebp
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
call fcn.0058fa10
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0xc], ecx
call fcn.0058fa10
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0xc], ecx
call fcn.0058fa10
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0xc], ecx
call fcn.0058fa10
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jl 0x590683
movzx eax, byte [esp + 0x17]
mov edx, eax
shr al, cl
cmp ecx, 8
sbb ebx, ebx
and eax, ebx
and eax, 0xf
mov dword [esp + 0x18], eax
xor ecx, ecx
jmp 0x590679
mov dword [esp + 0x20], ecx
mov dword [esp], eax
lea edx, [ecx + 1]
mov dword [esp + 0x30], edx
mov dword [esp + 4], edx
call fcn.0058e8f0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x20]
mov ecx, dword [esp + ecx*4 + 0x48]
mov edx, dword [esp + 0x44]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0058f260
mov eax, dword [esp + 0x18]
movzx edx, byte [esp + 0x17]
mov ecx, dword [esp + 0x30]
cmp ecx, 0xf
jl 0x590635
jmp 0x5904f8
call fcn.0043a6e0
nop
call fcn.00475ee0
jmp fcn.00590220