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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x65819973
sub esp, 0x70
mov eax, dword [esp + 0x74]
test byte [eax], al
lea ecx, [eax + 0x40]
mov dword [esp + 0x6c], ecx
mov dword [esp], ecx
call fcn.65803080
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x78]
cmp ecx, eax
setb dl
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0x7c]
cmp ebp, ebx
xchg esi, ebx
sete bl
xchg esi, ebx
xchg edi, ebx
setl bl
xchg edi, ebx
and esi, edx
or edi, esi
xchg edi, eax
test al, al
xchg edi, eax
jne 0x658197c2
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], ebx
mov edx, ecx
sub ecx, eax
mov dword [esp + 0x58], ecx
mov ebx, dword [esp + 0x74]
mov ebp, dword [ebx + 0x4c]
mov dword [esp + 0x54], ebp
mov eax, ecx
mov edi, edx
mul ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x30], eax
nop
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
call fcn.65803040
nop
mov ecx, dword [esp + 0x74]
lea edx, [ecx + 0x28]
mov dword [esp + 0x6c], edx
mov dword [esp], edx
call fcn.65803080
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x20]
sub ecx, edx
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x34]
sbb ecx, edx
mov edx, dword [esp + 4]
mov dword [esp + 0x1c], edx
test edx, edx
xchg ebp, ebx
setne bl
xchg ebp, ebx
mov esi, dword [esp + 8]
mov dword [esp + 0x24], esi
test esi, esi
xchg edi, ebx
setne bl
xchg edi, ebx
mov ebx, dword [esp + 0x54]
imul ecx, ebx
mov esi, dword [esp + 0x50]
add ecx, esi
sar ebx, 0x1f
mov esi, dword [esp + 0x58]
imul ebx, esi
add ecx, ebx
mov dword [esp + 0x58], ecx
or ebp, edi
mov ebx, dword [esp + 8]
mov dword [esp + 0x2c], ebx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x658196fd
xor eax, eax
sub eax, edx
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
mov ecx, 0
mov ebx, dword [esp + 0x24]
sbb ecx, ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call fcn.65803090
nop
mov eax, dword [esp + 0x74]
lea ecx, [eax + 0x38]
mov dword [esp + 0x6c], ecx
mov dword [esp], ecx
call fcn.65803080
mov eax, dword [esp + 4]
test eax, eax
setne cl
mov edx, dword [esp + 8]
test edx, edx
setne bl
or ecx, ebx
mov ebx, dword [esp + 8]
test cl, cl
je 0x6581975c
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], eax
xor ecx, ecx
sub ecx, eax
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
mov ebx, 0
sbb ebx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
call fcn.65803090
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x74]
movzx edx, byte [ecx + 0x50]
test dl, dl
jne 0x658197b8
mov ebp, dword fs:[0x14]
mov ebp, dword [ebp]
mov esi, dword [ebp + 0x18]
nop
inc dword [esi + 0x7c]
mov esi, dword [0x65989040]
mov dword [esp + 0x68], esi
mov edi, dword [0x65989044]
mov dword [esp + 0x4c], edi
mov ebp, dword [ebp + 0x18]
mov dword [esp + 0x64], ebp
xor edx, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x54], edx
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x5c]
xor edx, edx
jmp 0x65819883
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
jmp 0x658197c6
add esp, 0x70
ret
movzx esi, byte [ecx + 0x20]
xchg esi, eax
test al, al
xchg esi, eax
je 0x6581982c
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
call fcn.6585a260
movsd xmm0, qword [0x65915ef0]
mulsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
call fcn.6585a1c0
mov ebp, dword [esp + 8]
mov eax, dword [esp + 0x40]
add ebp, eax
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x44]
adc edx, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x74]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
mov edi, esi
sub esi, eax
mov dword [esp + 0x30], esi
sub esi, ebp
mov dword [esp], ecx
sub edi, eax
mov eax, dword [esp + 0x58]
sbb eax, ebx
mov ecx, dword [esp + 0x30]
sub ecx, ebp
sbb eax, edx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebp
call fcn.65819980
add esp, 0x70
ret
mov edx, dword [esp + 0x48]
inc edx
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], ebp
mov ecx, dword [esp + 0x74]
mov ebp, dword [esp + 0x64]
cmp edx, edi
jge 0x65819922
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], edx
mov eax, dword [esi + edx*4]
test byte [eax], al
add eax, 0x948
mov dword [esp], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
call fcn.65819dc0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp al, 1
ja 0x658198e1
test al, al
jne 0x65819909
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
jmp 0x65819866
cmp al, 2
je 0x658198eb
cmp al, 3
jne 0x65819904
mov ebp, dword [esp + 0x50]
add ebp, ecx
mov ecx, dword [esp + 0x54]
adc ecx, edx
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
jmp 0x65819866
cmp al, 4
jne 0x6581995c
mov eax, dword [esp + 0x38]
add eax, ecx
mov ebx, dword [esp + 0x3c]
adc ebx, edx
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
jmp 0x65819866
nop
mov edx, dword fs:[0x14]
mov edx, dword [edx]
mov esi, dword [ebp + 0x7c]
lea edi, [esi - 1]
mov dword [ebp + 0x7c], edi
cmp esi, 1
jne 0x6581994f
movzx ebp, byte [edx + 0x65]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x6581994f
mov dword [edx + 8], 0xfffffade
mov edx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
jmp 0x658197c6
lea eax, [0x658ee275]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.65836520
nop
call fcn.6585d300
jmp fcn.658195c0