Function at 0x407810
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
mov esi, ecx
cmp eax, 0x105
ja 0x407a06
je 0x407940
cmp eax, 0x20
ja 0x407852
je 0x407845
sub eax, 2
jne case.0x4078e5.14
push eax
call dword [sym.imp.user32.dll_PostQuitMessage]
pop edi
pop esi
ret 0x14
push 0
call dword [sym.imp.user32.dll_SetCursor]
pop edi
pop esi
ret 0x14
sub eax, 0x100
je 0x4078ce
sub eax, 1
jne case.0x4078e5.14
mov eax, dword [esp + 0x14]
add eax, 0xfffffff7
cmp eax, 0x1b
ja case.0x4078e5.14
movzx eax, byte [eax + 0x407ba8]
jmp dword [eax*4 + 0x407b8c]
call fcn.00404820
pop edi
pop esi
ret 0x14
call fcn.00404740
pop edi
pop esi
ret 0x14
call fcn.004047b0
pop edi
pop esi
ret 0x14
lea ecx, [esi + 0xa8]
call fcn.00448b20
pop edi
pop esi
ret 0x14
lea ecx, [esi + 0xa8]
call fcn.00452fd0
pop edi
pop esi
ret 0x14
lea ecx, [esi + 0xa8]
call fcn.00440d10
pop edi
pop esi
ret 0x14
mov eax, dword [esp + 0x14]
add eax, 0xfffffff3
cmp eax, 0x13
ja case.0x4078e5.14
movzx ecx, byte [eax + 0x407bdc]
jmp dword [ecx*4 + 0x407bc4]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0x10
push edx
call dword [sym.imp.user32.dll_PostMessageA]
pop edi
pop esi
ret 0x14
mov ecx, esi
call fcn.004047d0
pop edi
pop esi
ret 0x14
push 0xffffd8f1
push 0xffffd8f1
lea ecx, [esi + 0xa8]
call fcn.00452bb0
pop edi
pop esi
ret 0x14
mov ecx, esi
call fcn.004046f0
pop edi
pop esi
ret 0x14
mov ecx, esi
call fcn.00404760
pop edi
pop esi
ret 0x14
cmp dword [esp + 0x14], 0xd
jne case.0x4078e5.14
mov edi, 1
xor dword [esi + 0x88574], edi
mov eax, dword [esi + 0x88574]
cmp eax, edi
jne 0x407978
call fcn.00406b80
test eax, eax
jne case.0x4078e5.14
pop edi
mov dword [esi + 0x88574], eax
pop esi
ret 0x14
test eax, eax
jne case.0x4078e5.14
cmp dword [esi + 0x88578], edi
jne 0x40799d
mov ecx, dword [esi + 0x20]
push edi
lea eax, [esi + 0x8a23c]
push eax
call fcn.004043a0
pop edi
pop esi
ret 0x14
push 0
push 0
call dword [sym.imp.user32.dll_ChangeDisplaySettingsA]
mov ecx, dword [esi + 0x20]
push 0
push 0xc80000
push 0
call fcn.004917a7
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx + 0x20]
push 5
push edx
call dword [sym.imp.user32.dll_ShowWindow]
mov ecx, dword [esi + 0x20]
lea eax, [esi + 0x8a1ec]
push eax
call fcn.004962f3
mov eax, dword [esi + 0x8a218]
mov ecx, dword [esi + 0x5968]
mov edx, dword [esi + 0x5964]
push 0x40
add ecx, eax
push ecx
push edx
neg eax
push eax
mov eax, dword [0x5b95f8]
push 0
push 0
push eax
call dword [sym.imp.user32.dll_SetWindowPos]
pop edi
pop esi
ret 0x14
cmp eax, 0x200
ja 0x407b73
je 0x407a58
sub eax, 0x111
je 0x407a33
sub eax, 2
jne case.0x4078e5.14
lea ecx, [esi + 0xa8]
call fcn.00434190
pop edi
pop esi
ret 0x14
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push 0x111
push ecx
mov ecx, esi
call fcn.00407690
pop edi
pop esi
ret 0x14
mov eax, dword [esp + 0x18]
movzx edx, ax
shr eax, 0x10
mov edi, 1
mov dword [esi + 0x8a1cc], edx
mov dword [esi + 0x8a1d0], eax
cmp dword [esi + 0x88574], edi
jne case.0x4078e5.14
cmp dword [esi + 0x88578], 0
jne 0x407ae3
test eax, eax
jne 0x407ab8
mov eax, dword [esi + 0x5968]
mov ecx, dword [esi + 0x5964]
mov edx, dword [esp + 0xc]
push 0x40
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.user32.dll_SetWindowPos]
mov dword [esi + 0x8a21c], edi
pop edi
pop esi
ret 0x14
cmp dword [esi + 0x8a21c], edi
jne case.0x4078e5.14
mov eax, dword [esi + 0x8a218]
mov ecx, dword [esi + 0x5968]
mov edx, dword [esi + 0x5964]
push 0x40
add ecx, eax
push ecx
push edx
neg eax
push eax
push 0
jmp 0x407b57
test eax, eax
jne 0x407b2d
mov ecx, dword [esi + 0x8a174]
mov eax, dword [esi + 0x8a218]
mov edx, dword [esi + 0x8a170]
push ebx
mov ebx, dword [esi + 0x8a17c]
sub ebx, ecx
push 0x40
add ebx, eax
push ebx
mov ebx, dword [esi + 0x8a178]
sub ebx, edx
push ebx
add ecx, eax
push ecx
mov ecx, dword [esp + 0x20]
push edx
push 0
push ecx
call dword [sym.imp.user32.dll_SetWindowPos]
pop ebx
mov dword [esi + 0x8a21c], edi
pop edi
pop esi
ret 0x14
cmp dword [esi + 0x8a21c], edi
jne case.0x4078e5.14
mov eax, dword [esi + 0x8a174]
mov edx, dword [esi + 0x8a17c]
mov ecx, dword [esi + 0x8a170]
push 0x40
sub edx, eax
push edx
mov edx, dword [esi + 0x8a178]
sub edx, ecx
push edx
push eax
push ecx
mov eax, dword [esp + 0x20]
push 0
push eax
call dword [sym.imp.user32.dll_SetWindowPos]
pop edi
mov dword [esi + 0x8a21c], 0
pop esi
ret 0x14
sub eax, 0x202
jne case.0x4078e5.14
mov dword [esi + 0x89dac], 1
pop edi
pop esi
ret 0x14