Function at 0x40c2c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x12c
mov eax, dword [0x4306e4]
mov dword [esp + 0x3c], 0x48
mov byte [esp + 0x64], 0
test eax, eax
je 0x40c302
mov edx, dword [0x430680]
test edx, edx
je 0x40c302
lea ecx, [esp + 0x3c]
mov dword [esp], edx
mov dword [esp + 4], ecx
call eax
sub esp, 8
test eax, eax
jne 0x40c470
xor esi, esi
mov eax, dword [0x430270]
mov dword [esp + 4], 0xfffffff0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
mov eax, dword [0x43069c]
sub esp, 8
test al, 1
jne 0x40c490
test al, 8
je 0x40c450
and ebx, 0xff30ffff
mov esi, 0x634
or ebx, 0x80000000
mov eax, dword [0x430270]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0xfffffff0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
sub esp, 0xc
test byte [0x43069c], 1
mov ecx, dword [0x430690]
mov edx, dword [0x430694]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
je 0x40c550
cmp byte [esp + 0x64], 0
je 0x40c480
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0xc], eax
mov eax, dword [0x430270]
sub ecx, ebp
sub edx, edi
mov dword [0x430274], ecx
mov dword [esp + 0x10], ecx
mov dword [0x430278], edx
mov dword [esp + 0x14], edx
mov dword [esp + 8], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x430270]
sub esp, 0x1c
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x430270]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ebx, dword [0x423194]
mov eax, dword [0x425d48]
sub esp, 4
mov dword [0x43068c], 1
mov dword [esp + 4], 0x74
mov dword [esp], eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebx + 0x68], eax
sub esp, 8
xor eax, eax
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret
test al, 4
je 0x40c5b0
and ebx, 0x7ffaffff
mov esi, 0x634
or ebx, 0xca0000
jmp 0x40c345
lea esi, [esp + 0x64]
jmp 0x40c304
xor edi, edi
xor ebp, ebp
xor eax, eax
xor ebx, ebx
jmp 0x40c3aa
lea edi, [esp + 0x84]
mov dword [esp + 8], 0x9c
mov dword [esp + 4], 0
mov dword [esp], edi
call dword [0x41b304]
mov eax, 0x9c
mov dword [esp + 0xac], 0x5c0000
mov word [esp + 0xa8], ax
mov eax, dword [0x430690]
mov dword [esp + 0xf0], eax
mov eax, dword [0x430694]
mov dword [esp + 0xf4], eax
mov eax, dword [0x430698]
mov dword [esp + 0xec], eax
mov eax, dword [0x4306a0]
mov dword [esp + 0xfc], eax
mov eax, dword [0x4306e8]
test eax, eax
je 0x40c610
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], esi
call eax
sub esp, 0x14
test eax, eax
jne 0x40c630
and ebx, 0xff30ffff
mov esi, 0x20
or ebx, 0x80000000
jmp 0x40c345
lea eax, [esp + 0x2c]
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_AdjustWindowRect]
sub esp, 0xc
cmp byte [esp + 0x64], 0
je 0x40c5d0
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x2c]
sub ebx, eax
sub ebx, ecx
sar ebx, 1
add ebx, eax
mov eax, dword [esp + 0x4c]
sub eax, edi
sub eax, edx
sar eax, 1
add eax, edi
mov edi, dword [esp + 0x30]
jmp 0x40c3aa
and ebx, 0x7ffbffff
mov esi, 0x634
or ebx, 0xcb0000
jmp 0x40c345
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [esp], 0
call edi
sub esp, 4
sub eax, dword [esp + 0x34]
mov dword [esp], 1
mov ebx, eax
call edi
sub esp, 4
sar ebx, 1
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
sub eax, edx
sar eax, 1
jmp 0x40c3aa
mov dword [esp + 4], 4
mov dword [esp], edi
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsA]
sub esp, 8
test eax, eax
je 0x40c531
lea esi, [esi]
mov eax, 0xffffffff
jmp 0x40c43f