Function at 0x412970
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x488480]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
movups xmmword [ebp - 0x14], xmm0
mov ecx, dword [edi + 0x74]
test ecx, ecx
je 0x412b86
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
je 0x412b86
mov ecx, ebx
call fcn.0040bde0
mov ecx, dword [edi + 0x74]
mov edx, dword [ecx + eax*8 + 0x44]
mov ecx, dword [ecx + eax*8 + 0x48]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], edx
cmp ecx, eax
jle 0x412b86
imul ecx, dword [ebx + 8], 0xd
test byte [edi + 0x70], 2
je 0x4129e7
mov eax, dword [ebp + 0x14]
mov esi, eax
sub esi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], ecx
jmp 0x4129f6
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], eax
lea eax, [ecx + esi]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], eax
push ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
push ecx
lea ecx, [edi + 0x78]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
call fcn.0041ba10
mov ecx, ebx
call fcn.0040bde0
mov ecx, dword [edi + 0x74]
xorps xmm1, xmm1
mov ecx, dword [ecx + eax*8 + 0x48]
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
movd xmm3, ecx
cvtdq2pd xmm3, xmm3
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movaps xmm2, xmm0
divsd xmm0, qword [ebp - 0x30]
divsd xmm2, xmm3
addsd xmm0, qword [0x469850]
cvttsd2si eax, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [ebp - 0x28]
addsd xmm0, qword [0x469850]
cvttsd2si eax, xmm0
test eax, eax
jle 0x412a82
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm3
jmp 0x412a85
xorps xmm0, xmm0
movsd xmm3, qword [0x469858]
maxsd xmm1, xmm0
movaps xmm0, xmm1
addsd xmm0, xmm2
comisd xmm0, xmm3
jbe 0x412aa5
movaps xmm1, xmm3
subsd xmm1, xmm2
sub esp, 0x10
lea ecx, [edi + 0x78]
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm2
call fcn.0041c760
mov eax, dword [edi + 0x74]
mov ecx, edi
movups xmm0, xmmword [ebp + 0xc]
push dword [eax + 0x24]
sub esp, 0x10
mov eax, esp
push ebx
movups xmmword [eax], xmm0
call fcn.0040ee00
mov ecx, ebx
call fcn.0040bde0
test eax, eax
je 0x412b14
movups xmm0, xmmword [ebp - 0x14]
mov edx, dword [edi + 0x98]
lea ecx, [edi + 0x98]
sub esp, 0x10
mov eax, esp
push ebx
movups xmmword [eax], xmm0
call dword [edx + 0x18]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a0ec
mov esp, ebp
pop ebp
ret 0x14
push 5
push dword [edi + 0x9c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push 1
sub eax, ecx
push eax
mov eax, dword [ebp - 0x20]
sub eax, esi
push eax
push ecx
push esi
push dword [edi + 0x9c]
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [edi + 0x74]
mov esi, dword [eax + 0x38]
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
cdq
idiv esi
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [edi + 0x114], eax
cmp eax, 1
jge 0x412b6e
mov dword [edi + 0x114], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043a0ec
mov esp, ebp
pop ebp
ret 0x14
push 0
push dword [edi + 0x9c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, ebx
call fcn.0040bde0
test eax, eax
jne 0x412ba9
mov dword [edi + 0x114], 1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a0ec
mov esp, ebp
pop ebp
ret 0x14