Function at 0x4080f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp dword [ebp + 0x1c], 0
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, ecx
jne 0x408475
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x408136
push ecx
mov dword [edi + 0x24], eax
call fcn.00408ec0
mov dword [ebx], eax
cmp dword [edi + 0x24], 0
je 0x408475
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 2
jne 0x4081aa
mov dword [edi + 0x24], 1
call fcn.00416430
lea ecx, [edi + 0x28]
call fcn.0041b2ad
mov al, byte [edi + 0x54]
mov byte [esp + 0xf], al
mov eax, dword [edi + 0x78]
mov byte [edi + 0x54], 0
test eax, eax
je 0x408172
push 0
push 0
push 0x401
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [esp + 0xf], 0
je 0x408184
mov eax, dword [edi + 0x28]
lea ecx, [edi + 0x28]
push 0
call dword [eax + 0x24]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [ebx], 0
cmp dword [edi + 0x24], 0
je 0x408475
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x4a
jne 0x40825b
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40824a
cmp dword [eax + 4], 8
jne 0x40824a
mov eax, dword [eax + 8]
cmp dword [eax + 4], 0
mov esi, dword [eax]
je 0x40822b
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x408202
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x30
push dword [0x540e3c]
push dword [0x540e84]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [edi + 0xfc]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [edi + 0x28]
lea ecx, [edi + 0x28]
push 0
mov dword [edi + 0xf0], esi
call dword [eax + 0x24]
cmp esi, 0x64
jne 0x40824a
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x464
jne 0x4082c4
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x408290
cmp dword [edi + 0xfc], 0
jne 0x408290
push 0
push 0x64
push 0x2710
push dword [edi + 4]
mov dword [edi + 0xf8], eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [edi + 0xfc], eax
push 0x1a
lea ecx, [edi + 0x28]
call fcn.0041b34f
mov al, byte [edi + 0x54]
mov byte [esp + 0xf], al
mov eax, dword [edi + 0x78]
mov byte [edi + 0x54], 1
test eax, eax
je 0x4082bd
push 0
push 1
push 0x401
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [esp + 0xf], 1
jmp 0x4082fb
cmp eax, 0x465
jne 0x40831c
lea ecx, [edi + 0x28]
call fcn.0041b2ad
mov al, byte [edi + 0x54]
mov byte [esp + 0xf], al
mov eax, dword [edi + 0x78]
mov byte [edi + 0x54], 0
test eax, eax
je 0x4082f6
push 0
push 0
push 0x401
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [esp + 0xf], 0
je 0x408308
mov eax, dword [edi + 0x28]
lea ecx, [edi + 0x28]
push 0
call dword [eax + 0x24]
mov dword [ebx], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x7e8
jne 0x408391
mov eax, dword [ebp + 0x10]
sub eax, 5
je 0x408330
sub eax, 2
jne 0x40837d
cmp dword [ebp + 0x14], 0
jne 0x40837d
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x408365
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x30
push dword [0x540e3c]
push dword [0x540e84]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [edi + 0xfc]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebx], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x201
jne 0x4083e1
mov esi, dword [ebp + 0x14]
movzx eax, si
mov dword [esp + 0x10], eax
mov eax, esi
shr eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ClientToScreen]
push esi
push 0xf012
push 0x112
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x113
jne 0x408475
mov eax, dword [ebp + 0x10]
cmp eax, dword [edi + 0xfc]
jne 0x40846f
mov eax, dword [edi + 0xf8]
mov dword [esp + 0x10], 0
test eax, eax
je 0x408308
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x408308
cmp dword [esp + 0x10], 0x103
je 0x408308
push dword [edi + 0xfc]
mov dword [edi + 0xf8], 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push dword [edi + 4]
mov dword [edi + 0xfc], 0
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebx], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [ebx], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18