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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x6b3701
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x73d6e0]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
push edi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
lea edx, [esp + 0x24]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push edx
mov word [esi + 0x1a7], 0x10c
mov byte [esi + 0x1a6], 0
mov dword [esi + 0x1a0], 0
mov ecx, dword [edi + 0x18]
mov eax, dword [ebx + 0x18]
push ecx
push edi
mov dword [esp + 0x2c], ecx
mov ecx, ebx
push eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], eax
call fcn.00651d40
test eax, eax
je 0x6471fa
cmp eax, 2
jne 0x646b0b
cmp dword [esp + 0x24], eax
jne 0x646b0b
push esi
push edi
push ebx
call fcn.00648b60
add esp, 0xc
jmp 0x6471fa
push 1
lea ecx, [ebx + 4]
push 8
call fcn.005cdc20
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 1
mov dword [eax], ecx
mov ecx, dword [edx + 0x80]
mov dword [eax + 4], ecx
lea ecx, [edi + 4]
push 8
mov dword [edx + 0x80], eax
call fcn.005cdc20
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [edx + 0x80]
mov dword [eax + 4], ecx
mov ecx, ebx
mov dword [edx + 0x80], eax
call fcn.0064ae50
test eax, eax
je 0x646cdf
mov esi, eax
mov ecx, edi
call fcn.0064ae50
mov dword [esp + 0x24], eax
test eax, eax
je 0x646c03
test esi, esi
je 0x646ba1
movsd xmm0, qword [esi + 0xc0]
comisd xmm0, xmmword [eax + 0xc0]
ja 0x646c03
cmp byte [esi + 0xc8], 0
jne 0x646ba1
cmp byte [eax + 0xc8], 0
jne 0x646c03
cmp byte [eax + 0xc8], 0
jne 0x646cdb
mov ecx, edi
call fcn.00649910
mov esi, dword [esp + 0x24]
lea ecx, [edi + 4]
push ecx
sub esp, 8
mov dword [esp + 0x28], eax
mov ecx, eax
movsd xmm0, qword [esi + 0xb8]
addsd xmm0, qword [esi + 0xb0]
mulsd xmm0, qword [0x6f8780]
movsd qword [esp], xmm0
push esi
call fcn.0065df80
test al, al
je 0x646cdb
push ebx
push esi
mov ecx, edi
call fcn.0065ea10
push ebx
push dword [esp + 0x20]
mov ecx, edi
jmp 0x646c5f
cmp byte [esi + 0xc8], 0
jne 0x646cdb
mov ecx, ebx
call fcn.00649910
movsd xmm0, qword [esi + 0xb8]
lea ecx, [ebx + 4]
addsd xmm0, qword [esi + 0xb0]
push ecx
sub esp, 8
mov dword [esp + 0x30], eax
mov ecx, eax
mulsd xmm0, qword [0x6f8780]
movsd qword [esp], xmm0
push esi
call fcn.0065df80
test al, al
je 0x646cdb
push edi
push esi
mov ecx, ebx
call fcn.0065ea10
push edi
push dword [esp + 0x28]
mov ecx, ebx
call fcn.0065ea10
cmp dword [ebx + 0x24], 9
jl 0x646cbe
cmp dword [edi + 0x24], 9
jl 0x646c78
push edi
mov ecx, ebx
call fcn.0064b940
cmp dword [ebx + 0x24], 9
jl 0x646cbe
cmp dword [edi + 0x24], 9
jl 0x646cbe
mov ecx, ebx
call fcn.0065e610
push eax
push dword [ebx + 0x18]
mov ecx, ebx
push edi
call fcn.0064c160
mov ecx, edi
call fcn.0065e610
push eax
push dword [edi + 0x18]
mov ecx, edi
push ebx
call fcn.0064c160
push edi
mov ecx, ebx
call fcn.0065c2a0
mov ecx, ebx
call fcn.0064bba0
cmp eax, 9
jg 0x646cdb
cmp dword [ebx + 0x18], 0
je 0x646cdb
cmp dword [edi + 0x18], 0
je 0x646cdb
mov ecx, ebx
call fcn.0064ae50
mov esi, eax
test esi, esi
jne 0x646b66
mov esi, dword [esp + 0x2c]
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x646d8e
cmp dword [eax + 0x88], 0
je 0x646d06
push edi
mov ecx, ebx
call fcn.00659350
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x1c]
lea ebx, [ebx]
movsd xmm0, qword [edi + 0x50]
mov ecx, esi
push edi
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd xmm0, qword [edi + 0xb0]
movsd qword [esp], xmm0
call fcn.0060f840
movsd xmm0, qword [edi + 0x70]
lea ecx, [edi + 0x30]
push ecx
sub esp, 0x10
mov dword [esp + 0x38], eax
mov ecx, esi
movsd qword [esp + 8], xmm0
movsd xmm0, qword [edi + 0xb8]
movsd qword [esp], xmm0
call fcn.0060f840
test eax, eax
jns 0x646d80
mov ecx, dword [esp + 0x24]
test ecx, ecx
js 0x646d80
mov eax, 1
shl eax, cl
not eax
and word [esi + 0x1a0], ax
and word [esi + 0x1a2], ax
mov edi, dword [edi + 0x88]
test edi, edi
jne 0x646d10
mov edi, dword [esp + 0x30]
push esi
push edi
push ebx
call fcn.00648b60
add esp, 0xc
mov dword [esp + 0x20], eax
cmp dword [ebx + 0x18], 0
je 0x6471fa
cmp dword [edi + 0x18], 0
je 0x6471fa
mov ecx, ebx
call fcn.0065a5c0
mov ecx, edi
call fcn.0065a5c0
mov eax, dword [esp + 0x20]
mov esi, dword [ebx + 0x18]
movsd xmm0, qword [0x6ce9f8]
test al, 1
jne 0x646e57
comisd xmm0, xmmword [esi + 0xb0]
jbe 0x646e57
cmp dword [esi + 0x80], 0
mov ecx, dword [ebx]
mov dword [esp + 0x1c], ecx
je 0x646e57
push ecx
mov ecx, esi
call fcn.0064b2c0
push dword [esp + 0x1c]
mov ecx, dword [edi]
lea eax, [esp + 0x450]
sub esp, 8
fstp qword [esp + 0x30]
movsd xmm0, qword [esp + 0x30]
movsd qword [esp], xmm0
push eax
call fcn.005d88f0
mov ecx, eax
call fcn.005d9b70
test al, al
je 0x646e4b
push dword [esp + 0x1c]
movsd xmm0, qword [esp + 0x28]
mov ecx, dword [esp + 0x30]
sub esp, 0x10
movsd qword [esp + 8], xmm0
xorps xmm0, xmm0
movsd qword [esp], xmm0
call fcn.0060f5c0
mov eax, dword [esp + 0x20]
movsd xmm0, qword [0x6ce9f8]
mov ecx, dword [edi + 0x18]
test al, 4
jne 0x646ed1
comisd xmm0, xmmword [ecx + 0xb0]
jbe 0x646ed1
cmp dword [ecx + 0x80], 0
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
je 0x646ed1
push eax
call fcn.0064b2c0
push dword [esp + 0x1c]
mov ecx, dword [ebx]
lea eax, [esp + 0x450]
sub esp, 8
fstp qword [esp + 0x30]
movsd xmm0, qword [esp + 0x30]
movsd qword [esp], xmm0
push eax
call fcn.005d88f0
mov ecx, eax
call fcn.005d9b70
test al, al
je 0x646ed1
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
xorps xmm0, xmm0
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x38]
movsd qword [esp], xmm0
call fcn.0060f5c0
mov ecx, ebx
call fcn.0065e610
test byte [esp + 0x20], 2
mov ecx, eax
jne 0x646f68
movsd xmm0, qword [ecx + 0xb8]
comisd xmm0, xmmword [0x6d2fc8]
jbe 0x646f68
mov eax, dword [ebx]
add eax, 0x30
cmp dword [ecx + 0x80], 0
mov dword [esp + 0x1c], eax
je 0x646f68
push eax
call fcn.0064b2c0
push dword [esp + 0x1c]
mov ecx, dword [edi]
lea eax, [esp + 0x450]
sub esp, 8
fstp qword [esp + 0x30]
movsd xmm0, qword [esp + 0x30]
movsd qword [esp], xmm0
push eax
call fcn.005d88f0
mov ecx, eax
call fcn.005d9b70
test al, al
je 0x646f68
push dword [esp + 0x1c]
movsd xmm0, qword [esp + 0x28]
mov ecx, dword [esp + 0x30]
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd xmm0, qword [0x6f8788]
movsd qword [esp], xmm0
call fcn.0060f5c0
mov ecx, edi
call fcn.0065e610
test byte [esp + 0x20], 8
mov ecx, eax
jne 0x646fff
movsd xmm0, qword [ecx + 0xb8]
comisd xmm0, xmmword [0x6d2fc8]
jbe 0x646fff
mov eax, dword [edi]
add eax, 0x30
cmp dword [ecx + 0x80], 0
mov dword [esp + 0x1c], eax
je 0x646fff
push eax
call fcn.0064b2c0
push dword [esp + 0x1c]
mov ecx, dword [ebx]
lea eax, [esp + 0x450]
sub esp, 8
fstp qword [esp + 0x30]
movsd xmm0, qword [esp + 0x30]
movsd qword [esp], xmm0
push eax
call fcn.005d88f0
mov ecx, eax
call fcn.005d9b70
test al, al
je 0x646fff
push dword [esp + 0x1c]
movsd xmm0, qword [0x6f8788]
mov ecx, dword [esp + 0x30]
sub esp, 0x10
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x38]
movsd qword [esp], xmm0
call fcn.0060f5c0
lea ecx, [esp + 0x3c]
call fcn.006455c0
mov dword [esp + 0x4c0], 0
test esi, esi
je 0x647053
mov al, byte [esi + 0x58]
test al, al
je 0x647025
mov al, byte [esi + 0x78]
test al, al
jne 0x647049
mov edi, dword [edi + 0x18]
test edi, edi
je 0x647045
lea esp, [esp]
push edi
push esi
lea ecx, [esp + 0x44]
call fcn.0064ee40
mov edi, dword [edi + 0x88]
test edi, edi
jne 0x647030
mov edi, dword [esp + 0x30]
mov esi, dword [esi + 0x88]
test esi, esi
jne 0x647017
push dword [esp + 0x2c]
lea ecx, [esp + 0x40]
call fcn.0064ff30
mov edx, dword [esp + 0x2c]
xor esi, esi
movzx eax, byte [edx + 0x1a6]
dec eax
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x6471c9
mov dword [esp + 0x20], 1
mov ecx, esi
mov eax, 1
shl eax, cl
movzx ecx, word [edx + 0x1a0]
mov dword [esp + 0x24], eax
test ecx, eax
je 0x6470bf
mov ecx, dword [esp + 0x20]
mov eax, 1
movzx edi, word [edx + 0x1a0]
shl eax, cl
test edi, eax
mov edi, dword [esp + 0x30]
je 0x6470bf
inc esi
inc ecx
mov dword [esp + 0x20], ecx
jmp 0x6471bf
movsd xmm0, qword [edx + esi*8 + 0xe8]
lea eax, [esp + 0x44c]
addsd xmm0, qword [edx + esi*8 + 0xe0]
mov ecx, dword [ebx]
sub esp, 8
mulsd xmm0, qword [0x6f8780]
movsd qword [esp], xmm0
push eax
movsd qword [esp + 0x40], xmm0
call fcn.005d88f0
movsd xmm0, qword [0x6b7ea0]
lea eax, [esp + 0x44c]
push dword [edi]
movsd qword [esp + 0x470], xmm0
lea ecx, [esp + 0x460]
movss xmm0, dword [0x6cf3f8]
cvtps2pd xmm0, xmm0
push eax
sub esp, 8
mov byte [esp + 0x484], 0
unpcklpd xmm0, xmm0
movups xmmword [esp + 0x46c], xmm0
movsd xmm0, qword [esp + 0x44]
movsd qword [esp], xmm0
push dword [ebx]
call fcn.0065d110
cmp byte [esp + 0x474], 0
mov edx, dword [esp + 0x2c]
jne 0x647161
inc esi
inc dword [esp + 0x20]
jmp 0x6471bf
movzx eax, word [edx + 0x1a0]
test dword [esp + 0x24], eax
je 0x64717c
push esi
mov ecx, edx
call fcn.0060fb00
dec dword [esp + 0x1c]
jmp 0x6471b1
mov ecx, dword [esp + 0x20]
mov eax, 1
movzx edi, word [edx + 0x1a0]
shl eax, cl
test edi, eax
mov edi, dword [esp + 0x30]
je 0x6471a4
push ecx
mov ecx, edx
call fcn.0060fb00
dec dword [esp + 0x1c]
jmp 0x6471b1
push esi
mov ecx, edx
call fcn.0060fbc0
inc esi
inc dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
push esi
call fcn.0060fbc0
mov edx, dword [esp + 0x2c]
cmp esi, dword [esp + 0x1c]
jl 0x647082
mov dword [esp + 0x4c0], 0xffffffff
lea eax, [esp + 0x3c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x4c0], 0xffffffff
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x48]
je 0x6471fa
push eax
call fcn.005701e0
add esp, 4
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.005472b9
mov esp, ebp
pop ebp
ret