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

Disassembly:
mov ecx, dword [0x817cc4]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0xc]
cmp eax, dword [ecx + 8]
jbe 0x59038c
sub esp, 0x8c
mov ecx, dword [esp + 0x90]
mov ebx, dword [ecx + 0x26c]
mov dword [esp + 0x30], ebx
mov ebp, dword [ecx + 0x268]
mov dword [esp + 0x60], ebp
mov esi, dword [ecx + 0x270]
mov dword [esp + 0x34], esi
xor eax, eax
jmp 0x59005d
lea edi, [esp + 0x64]
xor eax, eax
call fcn.00466f5b
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x70], edx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x74], ebx
mov ebp, dword [esp + 0x90]
mov dword [esp], ebp
lea edi, [esp + 4]
lea esi, [esp + 0x64]
call fcn.0046743e
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
call fcn.0058e500
movzx ecx, byte [esp + 0x59]
mov edx, dword [esp + 0x28]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x90]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x60]
mov esi, dword [esp + 0x34]
cmp eax, ebx
jge 0x590104
mov dword [esp + 0x28], eax
mov edx, dword [ecx + 0x190]
mov edi, dword [edx]
mov dword [esp + 0x3c], edi
lea edi, [esp]
xor eax, eax
call fcn.00466f5b
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x3c]
call ecx
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ecx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ecx
movzx ecx, byte [esp + 0x52]
test cl, cl
jne 0x5900db
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
movzx ecx, byte [esp + 0x4d]
test cl, 8
sete cl
jmp 0x5900dd
xor ecx, ecx
test cl, cl
je 0x58ffe7
mov eax, dword [esp + 0x90]
mov dword [esp], eax
call fcn.0058f1e0
mov eax, dword [esp + 0x90]
xor ecx, ecx
xor edx, edx
jmp 0x590186
mov dword [ecx + 0x26c], 0
mov dword [ecx + 0x270], 0
mov eax, dword [0x817f20]
test eax, eax
je 0x590138
mov eax, dword [ecx + 0x268]
call fcn.00466d20
mov dword [edi], eax
mov eax, dword [ecx + 0x25c]
mov dword [edi + 4], eax
mov dword [ecx + 0x268], 0
lea eax, [0x6abe8c]
mov dword [ecx + 0x25c], eax
mov dword [esp], ecx
call fcn.005920b0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
add esp, 0x8c
ret
inc ecx
mov ebx, dword [esp + 0x24]
lea edx, [edi + ebx]
mov dword [esp + 0x24], edx
cmp dword [eax + 0x184], ecx
jle 0x590249
cmp ecx, 0x20
jae 0x59037f
lea ebx, [eax + ecx*8]
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebx
cmp edx, 0x80
ja 0x590373
lea ebx, [edx - 0x80]
neg ebx
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and ebx, edx
movzx esi, byte [esp + 0x40]
movzx edi, byte [esp + 0x41]
add edi, esi
xchg edi, eax
movzx eax, al
xchg edi, eax
lea ebx, [eax + ebx + 0x1d4]
cmp edi, 0x80
ja 0x590367
xchg esi, eax
movzx eax, al
xchg esi, eax
cmp esi, edi
ja 0x59035e
sub edi, esi
lea edx, [esi - 0x80]
neg edx
neg edx
sar edx, 0x1f
and edx, esi
lea edx, [eax + edx + 0x100]
cmp ebp, edi
jg 0x590215
mov edi, ebp
cmp edx, ebx
je 0x59017e
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x38], edi
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], edi
call fcn.00467650
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x38]
jmp 0x59017e
nop
mov dword [eax + 0x184], 0
mov byte [eax + 0x180], 0
cmp edx, 0x80
ja 0x590352
lea edi, [esp + 0x78]
xor eax, eax
call fcn.00466f5b
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x80], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x84], edx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x88], ebx
mov ebp, dword [esp + 0x90]
mov dword [esp], ebp
lea edi, [esp + 4]
lea esi, [esp + 0x78]
call fcn.0046743e
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
call fcn.0058e500
movzx ecx, byte [esp + 0x59]
mov edx, dword [esp + 0x28]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x30]
cmp ecx, eax
jb 0x59034d
mov edx, dword [esp + 0x34]
sub edx, eax
sub ecx, eax
mov ebx, dword [esp + 0x90]
mov dword [ebx + 0x26c], ecx
mov dword [ebx + 0x270], edx
mov ecx, dword [0x817f20]
neg edx
sar edx, 0x1f
and edx, eax
mov eax, dword [esp + 0x60]
add eax, edx
test ecx, ecx
je 0x59031d
call fcn.00466d20
mov dword [edi], eax
mov ecx, dword [ebx + 0x268]
mov dword [edi + 4], ecx
mov dword [ebx + 0x268], eax
lea eax, [ebx + 0x1d4]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], pe_nt_image_headers32
add esp, 0x8c
ret
call fcn.00466dd0
mov ecx, edx
mov edx, pe_nt_image_headers32
call fcn.00466d90
mov eax, esi
mov ecx, edi
call fcn.00466dd0
mov ecx, edi
mov edx, pe_nt_image_headers32
call fcn.00466d90
mov eax, edx
mov ecx, pe_nt_image_headers32
call fcn.00466dd0
mov eax, ecx
mov ecx, 0x20
call fcn.00466d70
nop
call fcn.00465910
jmp fcn.0058ffa0