Function at 0x100a506f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x68
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ecx, [esi + 0x6e4]
call fcn.100036e6
xor edi, edi
cmp byte [esi + 0x6c1], 0
je 0x100a512a
cmp dword [esi + 0x788], edi
jne 0x100a512a
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100a5128
movsx eax, byte [esi + 0x6b0]
push eax
push edi
call fcn.100d87e0
pop ecx
pop ecx
test eax, eax
jne 0x100a5128
movsx eax, byte [esi + 0x6b1]
push eax
push edi
call fcn.100d87e0
mov edx, eax
pop ecx
pop ecx
test edx, edx
je 0x100a50db
sub edx, edi
jmp 0x100a50e4
push edi
call fcn.100db610
pop ecx
mov edx, eax
mov ecx, dword [esi + 0x260]
mov eax, dword [esi + 0x238]
add ecx, ecx
cmp byte [esi + 0x6c0], 0
mov ecx, dword [eax + ecx*8]
je 0x100a5105
mov eax, dword [ebp + 8]
sub ecx, eax
jmp 0x100a510d
add edi, dword [ebp + 8]
sub edx, dword [ebp + 8]
xor eax, eax
push edx
push edi
push eax
push ecx
mov ecx, esi
call fcn.100a4ef3
lea ecx, [esi + 0x67c]
call fcn.10001c63
jmp 0x100a559c
xor edi, edi
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.10011734
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x450]
mov dword [esp + 0x20], ecx
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.1001c346
mov ecx, dword [esi + 0x260]
mov byte [esp + 0xc], al
add ecx, ecx
mov eax, dword [esi + 0x304]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x238]
mov eax, dword [eax + ecx*8]
mov dword [esp + 0x2c], eax
lea eax, [esi + 0x67c]
cmp byte [eax], 0
je 0x100a518f
mov ecx, eax
call fcn.10001c63
lea eax, [esi + 0x67c]
push dword [esp + 0x14]
mov ecx, dword [eax + 0x48]
lea edx, [esi + 0x2a0]
push dword [esp + 0x10]
mov dword [esp + 0x20], edx
push dword [esp + 0x10]
mov eax, dword [ecx]
push dword [esp + 0x28]
push dword [esp + 0x30]
push 2
push edx
call dword [eax + 8]
mov ecx, dword [esi + 0x6c4]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x67c]
mov dword [eax + 0x50], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x4c], ecx
lea ecx, [esp + 0x60]
mov byte [eax], 1
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, dword [esi + 0x260]
mov eax, dword [esi + 0x238]
shl ecx, 4
push edi
mov eax, dword [ecx + eax]
sub eax, dword [ebp + 8]
push eax
push ecx
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call fcn.1000fdc9
push dword [esp + 0x24]
lea eax, [esp + 0x54]
push dword [esp + 0x24]
lea ecx, [esi + 0x2a0]
push eax
call fcn.100338a2
movss xmm0, dword [esp + 0x5c]
subss xmm0, dword [esp + 0x54]
ucomiss xmm0, dword [0x1011596c]
lahf
test ah, 0x44
jp 0x100a524c
lea esi, [esp + 0x60]
lea edi, [esp + 0x50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
xor edi, edi
mov eax, dword [esi + 0x6dc]
movss xmm0, dword [esp + 0x68]
movss xmm1, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x6d8]
mov dword [esp + 0x14], eax
movss dword [esp + 8], xmm1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
subss xmm0, xmm2
comiss xmm1, xmm0
jb 0x100a52c8
movd xmm0, dword [esi + 8]
mov ecx, esi
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
subss xmm0, dword [esp + 0x68]
addss xmm0, xmm2
cvttss2si eax, xmm0
push eax
call fcn.10011848
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x30]
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.10011734
movss xmm0, dword [eax]
movss dword [esp + 8], xmm0
movss xmm0, dword [eax + 4]
jmp 0x100a52ce
movss xmm0, dword [esp + 0x24]
movss dword [esp + 0xc], xmm0
cmp dword [esi + 0x2b0], edi
je 0x100a530b
mov eax, dword [esi]
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
mov eax, dword [eax + 8]
call eax
movss xmm0, dword [eax]
movss xmm1, dword [eax + 4]
addss xmm0, dword [esp + 8]
addss xmm1, dword [esp + 0xc]
movss dword [esp + 8], xmm0
movss dword [esp + 0xc], xmm1
mov ecx, dword [esi + 0x6c4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov edx, dword [esp + 0x2c]
movss xmm5, dword [esp + 8]
movss xmm4, dword [esp + 0x5c]
movss xmm1, dword [esp + 0xc]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movd xmm6, edx
cvtdq2ps xmm6, xmm6
subss xmm5, xmm0
movaps xmm0, xmm4
subss xmm0, xmm6
movss dword [esp + 0x30], xmm5
comiss xmm1, xmm0
jb 0x100a538e
movss xmm3, dword [esp + 0x54]
movaps xmm0, xmm3
addss xmm0, xmm4
mulss xmm0, dword [0x10115974]
comiss xmm1, xmm0
jb 0x100a538e
movaps xmm2, xmm1
subss xmm2, xmm6
comiss xmm3, xmm2
movss dword [esp + 0x34], xmm2
jbe 0x100a53a3
movaps xmm0, xmm3
subss xmm0, xmm2
movaps xmm2, xmm3
cvttss2si eax, xmm0
sub edx, eax
jmp 0x100a539d
movd xmm2, dword [esi + 0x304]
cvtdq2ps xmm2, xmm2
addss xmm2, xmm1
movss dword [esp + 0x34], xmm2
movd xmm0, dword [esp + 0x14]
lea esi, [esp + 0x30]
cvttss2si eax, xmm2
cvttss2si ecx, xmm4
add eax, edx
cvtdq2ps xmm0, xmm0
cmp ecx, eax
cmovge ecx, eax
sub esp, 0x10
mov edi, esp
addss xmm5, xmm0
movd xmm0, ecx
push dword [esp + 0x28]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x4c], xmm5
movss dword [esp + 0x50], xmm0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x24]
mov ecx, dword [edi + 0x6c4]
call fcn.100334c0
mov ecx, dword [edi + 0x6c4]
mov eax, dword [edi + 0x2d0]
add eax, 0x9c4
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [edi + 0x2d0]
movss xmm0, dword [eax + 0x9a4]
call fcn.100ef0d0
mov ecx, dword [edi + 0x6c4]
push eax
mov dword [esp + 0x30], eax
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ecx, dword [edi + 0x6c4]
lea edx, [edi + 0x670]
push edx
mov esi, dword [ecx]
call dword [esi + 0x48]
mov edx, dword [ebp + 0xc]
lea ecx, [edi + 0x67c]
test edx, edx
mov eax, 0x1010af64
cmovne eax, edx
push eax
call fcn.100018f5
mov ecx, dword [edi + 0x6c4]
lea edx, [esp + 0x40]
push edx
mov eax, dword [ecx]
call dword [eax + 0x18]
movss xmm0, dword [esp + 0x4c]
subss xmm0, dword [esp + 0x44]
mov ecx, dword [edi + 0x78c]
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x48]
subss xmm0, dword [esp + 0x40]
mov dword [esp + 0x20], eax
cvttss2si esi, xmm0
cmp dword [esp + 0x14], esi
cmovge esi, dword [esp + 0x14]
test ecx, ecx
je 0x100a54ac
mov eax, dword [esp + 0x2c]
imul eax, ecx
cmp eax, esi
cmovge eax, esi
mov esi, eax
mov ecx, dword [edi + 0x6c4]
mov eax, dword [ecx]
call dword [eax + 0x1c]
movss xmm1, dword [esp + 8]
movd xmm4, dword [esp + 0x20]
movss xmm3, dword [esp + 0x5c]
movd xmm0, eax
mov eax, dword [edi + 0x304]
cvtdq2ps xmm0, xmm0
movd xmm5, eax
subss xmm1, xmm0
movd xmm0, esi
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm5, xmm5
addss xmm0, xmm1
movss dword [esp + 0x40], xmm1
movss xmm1, dword [esp + 0xc]
cvtdq2ps xmm4, xmm4
movss dword [esp + 0x48], xmm0
addss xmm5, xmm1
movaps xmm0, xmm3
subss xmm0, xmm4
comiss xmm5, xmm0
jb 0x100a553e
movss xmm2, dword [esp + 0x54]
cdq
addss xmm2, xmm3
sub eax, edx
sar eax, 1
mulss xmm2, dword [0x10115974]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
comiss xmm0, xmm2
jb 0x100a553e
subss xmm1, xmm4
jmp 0x100a5541
movaps xmm1, xmm5
sub esp, 0x10
movss dword [esp + 0x54], xmm1
addss xmm4, xmm1
mov edi, esp
lea esi, [esp + 0x50]
push dword [esp + 0x28]
movss dword [esp + 0x60], xmm4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x24]
mov ecx, dword [esi + 0x6c4]
call fcn.100334c0
mov eax, dword [esi + 0x6c4]
push 4
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x6c4]
push 0
mov eax, dword [ecx]
call dword [eax + 0x2c]
cmp dword [ebp + 8], 0
je 0x100a559c
mov ecx, esi
call fcn.100a5647
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8