Function at 0x647220
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.00651f00
test eax, eax
je 0x6479b8
cmp eax, 2
jne 0x6472cb
cmp dword [esp + 0x24], eax
jne 0x6472cb
push esi
push edi
push ebx
call fcn.00648d80
add esp, 0xc
jmp 0x6479b8
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 + 0x78]
mov dword [eax + 4], ecx
mov ecx, ebx
mov dword [edx + 0x78], eax
call fcn.0064ae50
test eax, eax
je 0x64749e
mov esi, eax
mov ecx, edi
call fcn.0064ae00
mov dword [esp + 0x24], eax
test eax, eax
je 0x6473c2
test esi, esi
je 0x64735b
movsd xmm0, qword [esi + 0xc0]
comisd xmm0, xmmword [eax + 0xb8]
ja 0x6473c2
cmp byte [esi + 0xc8], 0
jne 0x64735b
cmp byte [eax + 0xc0], 0
jne 0x6473c2
cmp byte [eax + 0xc0], 0
jne 0x64749a
mov ecx, edi
call fcn.00649830
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 + 0xb0]
addsd xmm0, qword [esi + 0xa8]
mulsd xmm0, qword [0x6f8780]
movsd qword [esp], xmm0
push esi
call fcn.0065dd60
test al, al
je 0x64749a
push ebx
push esi
mov ecx, edi
call fcn.0065e7a0
push ebx
push dword [esp + 0x20]
mov ecx, edi
call fcn.0065e7a0
jmp 0x647423
cmp byte [esi + 0xc8], 0
jne 0x64749a
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.0065e0a0
test al, al
je 0x64749a
push edi
push esi
mov ecx, ebx
call fcn.0065eb60
push edi
push dword [esp + 0x28]
mov ecx, ebx
call fcn.0065eb60
cmp dword [ebx + 0x24], 9
jl 0x64747d
cmp dword [edi + 0x24], 9
jl 0x647437
push edi
mov ecx, ebx
call fcn.0064b9d0
cmp dword [ebx + 0x24], 9
jl 0x64747d
cmp dword [edi + 0x24], 9
jl 0x64747d
mov ecx, ebx
call fcn.0065e610
push eax
push dword [ebx + 0x18]
mov ecx, ebx
push edi
call fcn.0064c330
mov ecx, edi
call fcn.0065e5e0
push eax
push dword [edi + 0x18]
mov ecx, edi
push ebx
call fcn.0064bdd0
push edi
mov ecx, ebx
call fcn.0065c340
mov ecx, ebx
call fcn.0064bba0
cmp eax, 9
jg 0x64749a
cmp dword [ebx + 0x18], 0
je 0x64749a
cmp dword [edi + 0x18], 0
je 0x64749a
mov ecx, ebx
call fcn.0064ae50
mov esi, eax
test esi, esi
jne 0x647320
mov esi, dword [esp + 0x2c]
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x64754e
cmp dword [eax + 0x88], 0
je 0x6474c5
push edi
mov ecx, ebx
call fcn.006594e0
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x1c]
lea esp, [esp]
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 0x647540
mov ecx, dword [esp + 0x24]
test ecx, ecx
js 0x647540
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 0x6474d0
mov edi, dword [esp + 0x30]
push esi
push edi
push ebx
call fcn.00648d80
add esp, 0xc
mov dword [esp + 0x20], eax
cmp dword [ebx + 0x18], 0
je 0x6479b8
cmp dword [edi + 0x18], 0
je 0x6479b8
mov ecx, ebx
call fcn.0065a5c0
mov ecx, edi
call fcn.0065a560
mov eax, dword [esp + 0x20]
mov esi, dword [ebx + 0x18]
movsd xmm0, qword [0x6ce9f8]
test al, 1
jne 0x647617
comisd xmm0, xmmword [esi + 0xb0]
jbe 0x647617
cmp dword [esi + 0x80], 0
mov ecx, dword [ebx]
mov dword [esp + 0x1c], ecx
je 0x647617
push ecx
mov ecx, esi
call fcn.0064b3b0
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.005f4ec0
mov ecx, eax
call fcn.005d9b70
test al, al
je 0x64760b
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 0x64768e
comisd xmm0, xmmword [ecx + 0xa8]
jbe 0x64768e
cmp dword [ecx + 0x78], 0
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
je 0x64768e
push eax
call fcn.0064b100
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 0x64768e
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 0x647725
movsd xmm0, qword [ecx + 0xb8]
comisd xmm0, xmmword [0x6d2fc8]
jbe 0x647725
mov eax, dword [ebx]
add eax, 0x30
cmp dword [ecx + 0x80], 0
mov dword [esp + 0x1c], eax
je 0x647725
push eax
call fcn.0064b3b0
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.005f4ec0
mov ecx, eax
call fcn.005d9b70
test al, al
je 0x647725
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.0065e5e0
test byte [esp + 0x20], 8
mov ecx, eax
jne 0x6477b9
movsd xmm0, qword [ecx + 0xb0]
comisd xmm0, xmmword [0x6d2fc8]
jbe 0x6477b9
mov eax, dword [edi]
add eax, 0x20
cmp dword [ecx + 0x78], 0
mov dword [esp + 0x1c], eax
je 0x6477b9
push eax
call fcn.0064b100
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 0x6477b9
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 0x647809
mov al, byte [esi + 0x58]
test al, al
je 0x6477df
mov al, byte [esi + 0x78]
test al, al
jne 0x6477ff
mov edi, dword [edi + 0x18]
test edi, edi
je 0x6477fb
push edi
push esi
lea ecx, [esp + 0x44]
call fcn.0064f040
mov edi, dword [edi + 0x80]
test edi, edi
jne 0x6477e6
mov edi, dword [esp + 0x30]
mov esi, dword [esi + 0x88]
test esi, esi
jne 0x6477d1
push dword [esp + 0x2c]
lea ecx, [esp + 0x40]
call fcn.006500f0
mov edx, dword [esp + 0x2c]
xor esi, esi
movzx eax, byte [edx + 0x1a6]
dec eax
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x647987
mov dword [esp + 0x20], 1
jmp 0x647840
mov ecx, esi
mov eax, 1
shl eax, cl
movzx ecx, word [edx + 0x1a0]
mov dword [esp + 0x24], eax
test ecx, eax
je 0x64787d
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 0x64787d
inc esi
inc ecx
mov dword [esp + 0x20], ecx
jmp 0x64797d
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.0065d2f0
cmp byte [esp + 0x474], 0
mov edx, dword [esp + 0x2c]
jne 0x64791f
inc esi
inc dword [esp + 0x20]
jmp 0x64797d
movzx eax, word [edx + 0x1a0]
test dword [esp + 0x24], eax
je 0x64793a
push esi
mov ecx, edx
call fcn.0060fb00
dec dword [esp + 0x1c]
jmp 0x64796f
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 0x647962
push ecx
mov ecx, edx
call fcn.0060fb00
dec dword [esp + 0x1c]
jmp 0x64796f
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 0x647840
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 0x6479b8
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