Function at 0x10068640
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1016c008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [0x101e0c0c]
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x114], ecx
mov ebx, dword [edi + 0x198c]
mov eax, dword [edi + 0x198c]
mov dword [ebp - 0x120], eax
movss xmm4, dword [ebx + 0xc8]
mov eax, dword [eax + 8]
movss xmm5, dword [ebx + 0xcc]
and eax, 4
movss xmm3, dword [ebx + 0x218]
or eax, 0x1000103
or dword [ebp + 0x10], eax
mov esi, dword [ebx + 0x1bc]
movss xmm2, dword [ebx + 0x214]
subss xmm4, dword [ebx + 0xc]
subss xmm5, dword [ebx + 0x10]
subss xmm3, dword [ebx + 0x10]
subss xmm2, dword [ebx + 0xc]
test esi, esi
je 0x10068709
mov edx, dword [esi + 0xc]
lea eax, [edx + 1]
test eax, eax
cmovns edx, eax
cmp edx, dword [esi + 0x2c]
jl 0x100686de
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
movss xmm2, dword [esi + 0x18]
lea ecx, [edx*8]
subss xmm2, dword [esi + 0x14]
mov eax, dword [esi + 0x34]
sub ecx, edx
mov edx, dword [ebp - 0x118]
mulss xmm2, dword [eax + ecx*4]
addss xmm2, dword [esi + 0x14]
subss xmm2, dword [ebx + 0x3c]
mov ecx, dword [ebp + 8]
subss xmm3, xmm5
xorps xmm5, xmm5
subss xmm2, xmm4
movss xmm4, dword [0x10162814]
mov esi, 1
cvttss2si eax, dword [ecx]
movd xmm1, eax
cvttss2si eax, dword [ecx + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
ucomiss xmm1, xmm5
cvtdq2ps xmm0, xmm0
lahf
xor ecx, ecx
test ah, 0x44
cmovnp ecx, esi
mov esi, 2
ucomiss xmm0, xmm5
lahf
xor ebx, ebx
test ah, 0x44
cmovnp ebx, esi
or ebx, ecx
comiss xmm5, xmm1
mov dword [ebp - 0x11c], ebx
jb 0x1006876d
addss xmm1, xmm2
maxss xmm1, xmm4
comiss xmm5, xmm0
jb 0x1006877a
addss xmm0, xmm3
maxss xmm0, xmm4
mov eax, dword [ebp - 0x114]
movss dword [edi + 0x1a5c], xmm1
movss dword [edi + 0x1a60], xmm0
mov dword [edi + 0x1a34], 1
test eax, eax
je 0x100687a6
push eax
push 0x10160da0
jmp 0x100687ac
push edx
push str._08X
lea eax, [ebp - 0x10c]
push 0x100
push eax
call fcn.10063400
movss xmm0, dword [edi + 0x1528]
lea ecx, [ebp - 0x10c]
add esp, 0x10
movss dword [ebp - 0x114], xmm0
xor edx, edx
mov dword [edi + 0x1528], 0
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.1006a070
mov esi, dword [edi + 0x198c]
add esp, 8
movss xmm0, dword [ebp - 0x114]
mov ebx, dword [ebp - 0x118]
movss dword [edi + 0x1528], xmm0
cmp word [esi + 0x84], 1
mov byte [ebp - 0x10d], al
mov eax, dword [ebp - 0x11c]
mov dword [esi + 0x54], ebx
mov dword [esi + 0x9c], eax
jne 0x10068843
mov edx, dword [ebp - 0x120]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov dword [edx + 0xc8], ecx
mov dword [edx + 0xcc], eax
mov eax, dword [ebp + 0x10]
test eax, 0x20000000
jne 0x1006887d
movss xmm0, dword [esi + 0xc8]
addss xmm0, dword [0x10162850]
movss dword [esi + 0xc8], xmm0
movss xmm0, dword [esi + 0xcc]
addss xmm0, dword [0x10162850]
movss dword [esi + 0xcc], xmm0
cmp dword [edi + 0x1aa4], ebx
jne 0x100688c2
test eax, 0x800000
jne 0x100688c2
cmp dword [esi + 0x13c], 0
jne 0x1006889e
cmp byte [esi + 0x145], 0
je 0x100688c2
mov ecx, esi
call fcn.1006df90
xor dl, dl
mov ecx, esi
call fcn.100704f0
lea ecx, [ebx + 1]
mov edx, esi
call fcn.10065c30
mov dword [edi + 0x19dc], 2
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 0x10d]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1012838d
mov esp, ebp
pop ebp
ret