Function at 0x480040
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5298f0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x595cb8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [ebp + 8], 0
mov byte [ebp - 0xd], 0
jne 0x480089
mov ebx, 0x14
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x18], 0xff
mov dword [ebp - 0x28], ebx
jmp 0x48009c
mov ebx, 0xff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0xffffffec
push str._TRANSLUCENCY_TIMEOUT
lea ecx, [ebp - 0x24]
call fcn.0041f870
push str.1_clock
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.0041f870
push str.doFadeWindow
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0041f910
mov byte [ebp - 4], 2
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x4800e7
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x38]
call fcn.00420f70
mov esi, eax
mov byte [ebp - 4], 4
call fcn.00500108
push eax
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.00420ee0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00420f70
push 0x17
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00420ee0
add esp, 0x10
mov byte [ebp - 4], 7
cmp dword [edi + 0x24], 0
je 0x48015a
push 0
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [edi + 0x20]
push eax
call fcn.004210a0
mov byte [ebp - 4], 6
or esi, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48017b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov eax, esi
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x480199
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4801b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4801d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4801f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x480211
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48022f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x480250
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
cmp esi, 0xffffffff
je 0x480270
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
nop dword [eax]
cmp byte [ebp - 0xd], 0
je 0x48029c
cmp ebx, dword [ebp - 0x18]
jl 0x4802a1
cmp esi, 0xffffffff
je 0x480287
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x4802e1
push 0x80004005
call fcn.0041f2a0
cmp ebx, dword [ebp - 0x18]
jle 0x48027b
push 2
movzx eax, bl
push eax
push 0
push dword [edi - 0x58]
mov dword [edi + 0x70], ebx
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push dword [edi + 0x70]
mov ecx, dword [edi + 0x6c]
push dword [edi + 0x2c]
call fcn.0044e800
push 0x17
cmp esi, 0xffffffff
je 0x4802d6
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add ebx, dword [ebp - 0x28]
jmp 0x480270
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, dword [ebp - 0x28]
jmp 0x480270
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, str.2_clock
mov dword [ebp - 4], 8
test eax, 0xffff0000
jne 0x480319
movzx esi, ax
mov ecx, esi
call fcn.0041f3d0
test eax, eax
je 0x480326
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0041fbd0
jmp 0x480326
push str.2_clock
lea ecx, [ebp - 0x14]
call fcn.0041fa30
push str.doFadeWindow
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 9
call fcn.0041f910
mov byte [ebp - 4], 0xa
call fcn.0040f350
mov ecx, eax
test ecx, ecx
jne 0x480353
push 0x80004005
call fcn.0041f2a0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x38], ebx
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 0xb
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x40]
call fcn.00420f70
mov esi, eax
mov byte [ebp - 4], 0xc
call fcn.00500108
push eax
mov edx, esi
lea ecx, [ebp - 0x3c]
call fcn.00420ee0
add esp, 8
mov byte [ebp - 4], 0xd
cmp dword [edi + 0x24], 0
je 0x4803a4
push 0
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x20]
push eax
call fcn.004210a0
mov byte [ebp - 4], 0xc
or esi, 0xffffffff
mov edx, dword [ebp - 0x3c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4803c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, esi
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4803e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
lea edx, [ebx - 0x10]
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4803fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, esi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48041c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x48043b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x18]
push 2
push ebx
push 0
push dword [edi - 0x58]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov ecx, dword [edi + 0x6c]
push ebx
push dword [edi + 0x2c]
call fcn.0044e800
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x48047f
mov eax, dword [edi]
mov ecx, edi
push 0
push 0
call dword [eax + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 2
jne 0x480498
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x2c]
call esi
push 0
push dword [edi - 0x58]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4