Function at 0x402580
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506c80
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x675980]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push dword [0x67cbd8]
mov dword [ebp - 0x84], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x67cbd8]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
call esi
push 2
push 0xff
push 0
push dword [0x67cbd8]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
cmp dword [ebp - 0x84], 0x12
je 0x4028a3
push 1
push 0
push 0
push dword [0x67cbd8]
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x40262d
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push dword [0x67cbd8]
call esi
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0x3c
lea eax, [ebp - 0x6c]
movlpd qword [ebp - 0x68], xmm0
push eax
push dword [0x67cbfc]
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
call dword [sym.imp.USER32.dll_GetWindowInfo]
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x54]
push dword [0x67cbd8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x58]
mov dword [ebp - 0x30], eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x4026c2
push 0x40
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push eax
push dword [0x67cbd8]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x67cbd0]
lea edx, [ebp - 0x30]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0xe8]
mov eax, dword [0x67cbd0]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc0]
mov ecx, dword [0x67cbd0]
lea edx, [ebp - 0x98]
xorps xmm0, xmm0
movups xmmword [ebp - 0x98], xmm0
push edx
mov eax, dword [ecx]
push ecx
call dword [eax + 0xbc]
cmp dword [0x67cbf0], 0
je 0x402887
cmp byte [0x67cbe5], 0
je 0x402718
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [0x67cbfc]
jne 0x402887
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll_clock]
cdq
mov esi, eax
mov edi, edx
mov ebx, esi
sub ebx, dword [0x67cc08]
mov dword [0x67cc08], esi
sbb edx, dword [0x67cc0c]
cmp byte [0x67cbe4], 0
mov dword [0x67cc0c], edi
je 0x402855
mov ecx, esi
mov eax, edi
sub ecx, dword [0x67cc00]
sbb eax, dword [0x67cc04]
js 0x402791
jg 0x402763
cmp ecx, 0x64
jbe 0x402791
mov ecx, ebx
call fcn.00504e10
movss xmm1, dword [0x549228]
cvtsd2ss xmm0, xmm0
mov dword [0x67cc00], esi
mov dword [0x67cc04], edi
divss xmm1, xmm0
cvttss2si eax, xmm1
mov dword [0x67cbe8], eax
jmp 0x402796
mov eax, dword [0x67cbe8]
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x8c], esi
test eax, eax
jns 0x4027ba
neg eax
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.00403c80
mov byte [eax - 1], 0x2d
lea ecx, [eax - 1]
jmp 0x4027c6
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.00403c80
mov ecx, eax
add esp, 8
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea eax, [ebp - 0x13]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 4], 0xffffffff
cmp ecx, eax
je 0x402807
sub eax, ecx
push eax
push ecx
mov ecx, esi
call fcn.004030e0
mov eax, dword [ebp - 0x30]
sub esp, 0xc
add eax, 0xffffffce
xorps xmm3, xmm3
xorps xmm2, xmm2
mov dword [esp + 8], 0x3f800000
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [esp + 4], 0
mov dword [esp], 0x3f800000
addsd xmm0, qword [eax*8 + 0x549250]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [0x549224]
call fcn.00401e20
add esp, 0x24
cmp byte [0x67cbe6], 0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
je 0x402876
mov ecx, 0x11
sub ecx, ebx
lea eax, [ecx - 1]
cmp eax, 0x1c
ja 0x402876
push ecx
call esi
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [0x67cbf0]
add esp, 8
jmp 0x40288d
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x67cbd0]
push 0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc4]
push 1
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005048c4
mov esp, ebp
pop ebp
ret