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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x58ae61
sub esp, 0x74
lea edi, [esp + 0x84]
xor eax, eax
call fcn.00465fe8
lea edi, [esp + 0x54]
call fcn.00465fe8
mov ecx, dword [esp + 0x7c]
cmp ecx, 6
jl 0x58a927
mov edx, dword [esp + 0x78]
movzx ebx, byte [edx + 1]
movzx ebp, byte [edx]
shl ebp, 8
or ebx, ebp
mov word [esp + 0x54], bx
lea ebx, [ecx - 2]
cmp ebx, 1
jbe 0x58ae54
movzx ebx, byte [edx + 3]
movzx ebp, byte [edx + 2]
shl ebp, 8
or ebx, ebp
mov word [esp + 0x56], bx
lea ebp, [ecx - 4]
cmp ebp, 1
jbe 0x58ae48
movzx eax, byte [edx + 5]
movzx ebp, byte [edx + 4]
shl ebp, 8
or eax, ebp
mov word [esp + 0x58], ax
movzx eax, bx
mov ebx, eax
shl eax, 1
lea ebp, [eax + 6]
cmp ecx, ebp
jl 0x58a864
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
lea eax, [0x6b35e0]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ebx
call fcn.0044bce0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x78]
xor ebp, ebp
jmp 0x58a9ca
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp], ebp
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
lea eax, [0x7056d7]
mov dword [esp], eax
mov dword [esp + 4], 0x38
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x54]
call fcn.004664b0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xac], eax
add esp, 0x74
ret
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp], ecx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
lea eax, [0x704ecb]
mov dword [esp], eax
mov dword [esp + 4], 0x37
lea eax, [esp + 0x3c]
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 + 0x38], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x54]
call fcn.004664b0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xac], eax
add esp, 0x74
ret
lea ebp, [esi + 1]
mov esi, dword [esp + 0x80]
mov ecx, edx
mov edx, esi
cmp ebp, eax
jge 0x58ac02
mov esi, ebp
shl ebp, 1
lea edi, [ebp + 6]
cmp ecx, edi
jb 0x58ae41
sub edx, ebp
add edx, 0xfffffffa
neg edx
sar edx, 0x1f
and edi, edx
mov edx, ecx
sub ecx, ebp
add ecx, 0xfffffffa
cmp ecx, 1
jbe 0x58ae37
movzx ebp, byte [ebx + edi + 1]
movzx edi, byte [ebx + edi]
shl edi, 8
or ebp, edi
movzx ebp, bp
test ebp, ebp
je 0x58a9bc
cmp edx, ebp
jl 0x58ab3f
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x80]
sub eax, ebp
mov esi, eax
neg eax
sar eax, 0x1f
and eax, ebp
add eax, ebx
mov dword [esp], eax
sub edx, ebp
mov dword [esp + 4], edx
mov dword [esp + 8], esi
call fcn.00582790
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x24]
cmp edi, ecx
jae 0x58ae30
mov ecx, esi
lea esi, [eax + edi*8]
mov dword [esi], ebx
mov ebx, dword [0x1eaa9f0]
lea esi, [eax + edi*8 + 4]
test ebx, ebx
jne 0x58aa89
mov dword [esi], edx
jmp 0x58aa96
mov eax, edx
mov edx, edi
mov edi, esi
call fcn.00465d80
mov edi, edx
test ebp, ebp
jne 0x58aaad
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x78]
mov esi, edi
jmp 0x58a9bc
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
test ecx, ecx
je 0x58aac6
mov esi, dword [ecx + 4]
jmp 0x58aac8
mov esi, ecx
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x40], eax
lea eax, [0x6f9de8]
mov dword [esp], eax
mov dword [esp + 4], 0x1a
lea eax, [esp + 0x3c]
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 + 0x38], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x54]
call fcn.004664b0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xac], eax
add esp, 0x74
ret
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp], ebp
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
lea eax, [0x7056d7]
mov dword [esp], eax
mov dword [esp + 4], 0x38
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x54]
call fcn.004664b0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xac], eax
add esp, 0x74
ret
movzx eax, word [esp + 0x58]
mov ebp, dword [esp + 0x28]
lea esi, [ebp + eax*4 + 6]
cmp ecx, esi
jl 0x58ac5f
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], eax
lea ecx, [0x6b3b80]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.0044bce0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x80]
mov ebp, dword [esp + 0x7c]
xor esi, esi
jmp 0x58ad4e
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp], esi
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], eax
lea eax, [0x7056d7]
mov dword [esp], eax
mov dword [esp + 4], 0x38
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004cde70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x54]
call fcn.004664b0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xac], eax
add esp, 0x74
ret
mov edx, dword [esp + 0x34]
lea edx, [edx + esi*4 + 2]
mov ebx, dword [esp + 0x20]
movzx ebp, byte [ecx + ebx + 3]
movzx ebx, byte [ecx + ebx + 2]
shl ebx, 8
or ebp, ebx
mov word [edx], bp
inc esi
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x80]
mov ebp, edi
cmp esi, eax
jge 0x58add1
mov edi, ebx
lea ebx, [edx + esi*4]
lea edx, [edx + esi*4 + 6]
cmp ebp, edx
jb 0x58ae27
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x24], ebp
sub edi, ebx
lea ebp, [edi - 6]
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and edx, ebp
mov ebp, dword [esp + 0x7c]
mov edi, ebp
sub ebp, ebx
mov ebx, dword [esp + 0x24]
cmp esi, ebx
jae 0x58ae1e
lea ebx, [ebp - 6]
cmp ebx, 3
jbe 0x58ae12
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x34]
lea ebx, [ebx + esi*4]
movzx ebp, byte [ecx + edx + 1]
movzx edx, byte [ecx + edx]
shl edx, 8
or ebp, edx
mov word [ebx], bp
mov edx, dword [esp + 0x24]
add edx, 0xfffffff8
cmp edx, 1
ja 0x58ad22
jmp 0x58ae06
lea edi, [esp + 0x84]
lea esi, [esp + 0x54]
call fcn.004664b0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
add esp, 0x74
ret
mov eax, 1
mov ecx, edx
call fcn.00465e00
mov eax, 3
mov ecx, ebx
call fcn.00465e00
mov eax, esi
mov ecx, ebx
call fcn.00465e00
mov eax, edx
mov ecx, ebp
call fcn.00465e60
mov eax, edi
call fcn.00465e00
mov eax, 1
call fcn.00465e00
mov eax, edi
call fcn.00465e60
mov eax, 1
mov ecx, ebp
call fcn.00465e00
mov eax, 1
mov ecx, ebx
call fcn.00465e00
nop
call fcn.004649b0
jmp fcn.0058a780