Function at 0x406ee9
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and byte [ebp - 1], 0
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
push edi
cmp byte [ebx + 0x24bc], 0
lea esi, [ebx + 0x24bc]
mov dword [ebx + 0x2f1c], eax
jne 0x407015
call fcn.00405dd2
test al, al
jne 0x406f82
cmp byte [ebx + 0x26c4], al
jne 0x406f82
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00406197
mov edi, eax
pop ecx
cmp edi, 1
pop ecx
jle 0x406f66
mov eax, dword [ebp - 8]
push dword [eax + 4]
call fcn.00429eb0
cmp eax, 0x104
pop ecx
jae 0x406f66
mov eax, dword [ebp - 8]
push dword [eax + 4]
push esi
call fcn.00429850
and dword [ebx + 0x29d0], 0
pop ecx
pop ecx
test edi, edi
jle 0x406f79
mov eax, dword [ebp - 8]
dec edi
push dword [eax + edi*4]
call fcn.00428730
pop ecx
jmp 0x406f66
push dword [ebp - 8]
call fcn.00428730
pop ecx
cmp byte [esi], 0
jne 0x407015
lea edi, [ebx + 0x23b8]
mov ecx, ebx
push edi
call fcn.004092dc
push edi
push esi
mov dword [ebx + 0x29d0], eax
call fcn.00429850
cmp byte [esi], 0
pop ecx
pop ecx
jne 0x407008
cmp byte [ebx + 0x29d8], 0
je 0x406ffb
cmp dword [ebp + 0x10], 0
je 0x406ff3
lea esi, [ebx + 0x2f24]
push esi
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebx + 0x2f2c]
sub eax, dword [esi]
cmp eax, 0x100
jge 0x406fe5
mov dword [ebx + 0x29dc], 0x80
fld qword [ebx + 0x29f0]
fstp qword [ebx + 0x29e8]
jmp 0x407002
fld qword [ebx + 0x29f8]
jmp 0x406feb
mov byte [ebx + 0x2a20], 1
mov byte [ebp - 1], 1
jmp 0x407015
push 0x444fe0
push esi
call fcn.00429850
pop ecx
pop ecx
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x407067
mov esi, dword [ebp + 8]
push 0x65
push esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0x4064b3
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 0x43e6e8
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x40713e
mov dword [ebx + 0x2a24], esi
cmp dword [ebp + 0x10], edi
lea eax, [ebx + 0x2f24]
push eax
je 0x40707e
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x40708b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
lea edi, [ebx + 0x2f34]
lea esi, [ebx + 0x2f24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x2f28]
mov edx, dword [ebx + 0x2f30]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x2f24]
push 0
push dword [ebp + 8]
sub edx, eax
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x10]
lea esi, [ebx + 0x2f24]
push 0
push edi
push edx
mov edx, dword [ebx + 0x2f2c]
sub edx, ecx
push edx
push eax
push ecx
mov eax, 0x43e6e8
push 0x80000000
push eax
push eax
push 8
call dword [sym.imp.USER32.dll_CreateWindowExA]
test edi, edi
mov dword [ebx + 0x2f18], eax
je 0x4070f0
mov dword [ebx + 0x2f18], edi
mov eax, dword [ebx + 0x2f18]
test eax, eax
je 0x40713e
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 5
push dword [ebx + 0x2f18]
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
push esi
push dword [ebx + 0x2f18]
call edi
cmp byte [ebp - 1], 0
je 0x40712f
mov ecx, ebx
call fcn.00418fd5
cmp byte [ebp - 1], 0
sete al
push eax
mov ecx, ebx
call fcn.0040c484
test eax, eax
jge 0x407143
or eax, 0xffffffff
jmp 0x40714e
push esi
push dword [ebx + 0x2f18]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc