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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x58b830
sub esp, 0x74
lea edi, [esp + 0x84]
xor eax, eax
call fcn.00465fe7
lea edi, [esp + 0x50]
call fcn.00465fe7
mov ecx, dword [esp + 0x7c]
cmp ecx, 6
jl 0x58b5c6
mov edx, dword [esp + 0x78]
movzx ebx, byte [edx + 1]
movzx ebp, byte [edx]
shl ebp, 8
or ebx, ebp
mov word [esp + 0x50], bx
lea ebx, [ecx - 2]
cmp ebx, 1
jbe 0x58b823
lea ebx, [ecx - 4]
movzx ebp, byte [edx + 3]
movzx esi, byte [edx + 2]
shl esi, 8
or ebp, esi
cmp ebx, 1
jbe 0x58b817
movzx eax, bp
movzx ebx, byte [edx + 5]
movzx ebp, byte [edx + 4]
shl ebp, 8
or ebx, ebp
test eax, eax
je 0x58b35f
cmp ecx, eax
jl 0x58b503
mov word [esp + 0x22], bx
mov ebx, dword [esp + 0x80]
sub ebx, eax
mov esi, ebx
neg ebx
sar ebx, 0x1f
and ebx, eax
add ebx, edx
mov dword [esp], ebx
sub ecx, eax
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
call fcn.00582790
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
test edx, edx
jne 0x58b479
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
movzx ebx, word [esp + 0x22]
movzx eax, bx
mov ebx, eax
shl eax, 2
add eax, 6
cmp ecx, eax
jl 0x58b3b6
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], eax
lea eax, [0x6b3e80]
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 + 0x78]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x80]
xor ebp, ebp
jmp 0x58b68b
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
lea eax, [0x703580]
mov dword [esp], eax
mov dword [esp + 4], 0x34
lea eax, [esp + 0x40]
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 + 0x34], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x50]
call fcn.004664a6
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xb0], eax
add esp, 0x74
ret
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
test ebx, ebx
je 0x58b490
mov ebx, dword [ebx + 4]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
lea eax, [0x6f7793]
mov dword [esp], eax
mov dword [esp + 4], 0x16
lea eax, [esp + 0x38]
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 + 0x34], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x50]
call fcn.004664a6
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xb0], eax
add esp, 0x74
ret
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
lea eax, [0x703580]
mov dword [esp], eax
mov dword [esp + 4], 0x34
lea eax, [esp + 0x40]
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 + 0x34], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x50]
call fcn.004664a6
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xb0], eax
add esp, 0x74
ret
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp], ecx
call fcn.00409720
mov eax, dword [esp + 4]
lea ecx, [0x69b600]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
lea eax, [0x702d77]
mov dword [esp], eax
mov dword [esp + 4], 0x33
lea eax, [esp + 0x38]
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 + 0x34], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x50]
call fcn.004664a6
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xb0], eax
add esp, 0x74
ret
mov edi, dword [esp + 0x2c]
lea esi, [esi + edi*4 + 2]
mov edx, edi
mov edi, dword [esp + 0x24]
mov ebx, esi
movzx esi, byte [ecx + edi + 3]
movzx edi, byte [ecx + edi + 2]
shl edi, 8
or esi, edi
mov word [ebx], si
lea ebp, [edx + 1]
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x80]
cmp ebp, eax
jge 0x58b702
mov esi, ebp
shl ebp, 2
lea edi, [ebp + 6]
cmp edx, edi
jb 0x58b80e
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x60]
sub ebx, ebp
add ebx, 0xfffffffa
neg ebx
sar ebx, 0x1f
and edi, ebx
sub edx, ebp
mov ebp, dword [esp + 0x2c]
cmp ebp, esi
jae 0x58b805
lea esi, [edx - 6]
cmp esi, 3
jbe 0x58b7f9
mov dword [esp + 0x24], edi
mov esi, dword [esp + 0x30]
lea ebx, [esi + ebp*4]
movzx ebp, byte [ecx + edi + 1]
movzx edi, byte [ecx + edi]
shl edi, 8
or ebp, edi
mov word [ebx], bp
add edx, 0xfffffff8
cmp edx, 1
ja 0x58b65b
jmp 0x58b7ed
lea eax, [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
call fcn.00591930
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test eax, eax
je 0x58b7b8
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
test ecx, ecx
je 0x58b745
mov ecx, dword [ecx + 4]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
lea eax, [0x6f7793]
mov dword [esp], eax
mov dword [esp + 4], 0x16
lea eax, [esp + 0x38]
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 + 0x34], ecx
lea edi, [esp + 0x84]
lea esi, [esp + 0x50]
call fcn.004664a6
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xb0], eax
add esp, 0x74
ret
lea edi, [esp + 0x84]
lea esi, [esp + 0x50]
call fcn.004664a6
mov eax, dword [esp + 0x28]
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
add esp, 0x74
ret
mov eax, 1
mov ecx, edx
call fcn.00465e00
mov eax, 3
mov ecx, esi
call fcn.00465e00
mov eax, ebp
mov ecx, esi
call fcn.00465e00
mov eax, edi
mov ecx, edx
call fcn.00465e60
mov eax, 1
mov ecx, ebx
call fcn.00465e00
mov eax, 1
mov ecx, ebx
call fcn.00465e00
nop
call fcn.004649b0
jmp fcn.0058b270