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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x658191b3
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.65802910
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 0x65819002
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.658028d0
nop
mov ecx, dword [esp + 0x74]
lea edx, [ecx + 0x28]
mov dword [esp + 0x6c], edx
mov dword [esp], edx
call fcn.65802910
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 0x65818f3d
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.65802920
nop
mov eax, dword [esp + 0x74]
lea ecx, [eax + 0x38]
mov dword [esp + 0x6c], ecx
mov dword [esp], ecx
call fcn.65802910
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 0x65818f9c
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.65802920
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x74]
movzx edx, byte [ecx + 0x50]
test dl, dl
jne 0x65818ff8
mov ebp, dword fs:[0x14]
mov ebp, dword [ebp]
mov esi, dword [ebp + 0x18]
nop
inc dword [esi + 0x7c]
mov esi, dword [0x65a0e6d8]
mov dword [esp + 0x68], esi
mov edi, dword [0x65a0e6dc]
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 0x658190c3
mov edx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
jmp 0x65819006
add esp, 0x70
ret
movzx esi, byte [ecx + 0x20]
xchg esi, eax
test al, al
xchg esi, eax
je 0x6581906c
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.6585b420
movsd xmm0, qword [0x6599c4c0]
mulsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
call fcn.6585b380
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.658191c0
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 0x65819162
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.65819600
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp al, 1
ja 0x65819121
test al, al
jne 0x65819149
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
jmp 0x658190a6
cmp al, 2
je 0x6581912b
cmp al, 3
jne 0x65819144
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 0x658190a6
cmp al, 4
jne 0x6581919c
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 0x658190a6
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 0x6581918f
movzx ebp, byte [edx + 0x65]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x6581918f
mov dword [edx + 8], 0xfffffade
mov edx, dword [esp + 0x54]
mov ebp, dword [esp + 0x50]
jmp 0x65819006
lea eax, [0x658e8987]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.65835ef0
nop
call fcn.6585e6e0
jmp fcn.65818e00