Function at 0x437940
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x52ad60]
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
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov al, byte [ebp + 8]
mov edx, 0xff
mov ecx, 0x14
test al, al
mov esi, edx
cmovne esi, ecx
xor edi, edi
test al, al
mov dword [ebp - 0x38], ecx
mov ecx, dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov byte [ebp - 0x2d], 0
cmovne edi, edx
jne 0x4379a9
mov dword [ebp - 0x38], 0xffffffec
jmp 0x437b93
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
test eax, eax
jne 0x437b43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x34]
push eax
push str.doFadeWindow_SetLayeredWindowAttributes__d
push edi
call fcn.00404c40
mov eax, dword [0x52a6d0]
add esp, 0xc
mov ecx, 0x52a6d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov eax, str.doF_deWindow
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x437a23
movzx esi, ax
mov ecx, esi
call fcn.00405570
test eax, eax
je 0x437a32
push esi
push eax
lea ecx, [ebp - 0x34]
call fcn.00404ab0
jmp 0x437a32
push 0xc
push str.doF_deWindow
lea ecx, [ebp - 0x34]
call fcn.004046f0
mov dword [ebp - 4], 1
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
push edi
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00431540
add esp, 4
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebx + 0x5c]
mov edx, dword [eax]
mov edi, dword [ecx]
lea eax, [edx - 0x10]
sub edi, 0x10
or esi, 0xffffffff
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], eax
cmp eax, edi
je 0x437ac4
cmp dword [edi + 0xc], 0
jl 0x437abb
mov eax, dword [edx - 0x10]
cmp eax, dword [edi]
jne 0x437abb
mov ecx, dword [ebp - 0x3c]
call fcn.004047b0
mov dword [ebp - 0x3c], eax
mov ecx, esi
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x437ab1
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
add eax, 0x10
mov dword [ecx], eax
jmp 0x437ac4
push dword [edx - 0xc]
push edx
call fcn.004046f0
mov ecx, dword [ebx + 0x64]
test ecx, ecx
je 0x437add
push 2
push dword [ebp - 0x44]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebx + 0x60]
push eax
call fcn.004018e0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x437afd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x437b1d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x34]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x437b3e
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x2d]
jmp 0x437ba7
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x437b8a
lea esp, [esp]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x437b60
mov al, byte [ebp + 8]
mov ecx, dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
test al, al
je 0x437bc5
cmp esi, edi
jl 0x437bc9
push 2
push edi
push 0
push dword [ebx + 4]
call ecx
mov al, 1
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.004b3a11
mov esp, ebp
pop ebp
ret 8
cmp esi, edi
jle 0x437b9b
push 2
push esi
push 0
push dword [ebx + 4]
call ecx
test eax, eax
je 0x437c13
push 0x27
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x52f408]
lea edx, [ecx + 2]
lea eax, [ecx + 1]
imul edx, eax
imul edx, ecx
and edx, 0x80000003
jns 0x437bfe
dec edx
or edx, 0xfffffffc
inc edx
cmp edx, 3
jne 0x437c0b
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
add esi, dword [ebp - 0x38]
jmp 0x437b8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x34]
push eax
push str.doFadeWindow_SetLayeredWindowAttributes__d
push edi
call fcn.00404c40
mov eax, dword [0x52a6d0]
add esp, 0xc
mov ecx, 0x52a6d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov eax, str.doFadeWindow
mov dword [ebp - 4], 4
test eax, 0xffff0000
jne 0x437c6b
movzx esi, ax
mov ecx, esi
call fcn.00405570
test eax, eax
je 0x437c7a
push esi
push eax
lea ecx, [ebp - 0x34]
call fcn.00404ab0
jmp 0x437c7a
push 0xc
push str.doFadeWindow
lea ecx, [ebp - 0x34]
call fcn.004046f0
mov dword [ebp - 4], 5
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
push edi
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.00431540
add esp, 4
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebx + 0x5c]
mov edx, dword [eax]
mov edi, dword [ecx]
lea eax, [edx - 0x10]
sub edi, 0x10
or esi, 0xffffffff
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
cmp eax, edi
je 0x437d0c
cmp dword [edi + 0xc], 0
jl 0x437d03
mov eax, dword [edx - 0x10]
cmp eax, dword [edi]
jne 0x437d03
mov ecx, dword [ebp - 0x40]
call fcn.004047b0
mov dword [ebp - 0x40], eax
mov ecx, esi
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x437cf9
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
add eax, 0x10
mov dword [ecx], eax
jmp 0x437d0c
push dword [edx - 0xc]
push edx
call fcn.004046f0
mov ecx, dword [ebx + 0x64]
test ecx, ecx
je 0x437d25
push 2
push dword [ebp - 0x48]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebx + 0x60]
push eax
call fcn.004018e0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x437d45
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x437d65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x437b3e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, byte [ebp - 0x2d]
jmp 0x437ba7