Function at 0x405060
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x78], 0x214
mov dword [ebp - 8], 0x204
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], 0x214
mov dword [ebp - 0x74], 0x64
mov dword [ebp - 0x70], 0x64
mov dword [ebp - 0x6c], 0xc8
mov dword [ebp - 0x68], 0xc8
mov byte [ebp - 0x1d], 0
mov ecx, dword [ebp - 0x84]
mov byte [ecx + 0x143], 1
mov edx, dword [ebp - 0x84]
cmp dword [edx + 0x24], 0
je 0x4054d3
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4054d3
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0xfffffffffffffff0
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
push 0
mov edx, dword [ebp - 0x5c]
push edx
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov ecx, dword [ebp - 0x6c]
sub ecx, dword [ebp - 0x74]
sub ecx, 0x62
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x68]
sub edx, dword [ebp - 0x70]
sub edx, 0x62
mov dword [ebp - 0x54], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
sub ecx, 1
mov dword [ebp - 0x88], ecx
cmp dword [ebp - 0x88], 6
ja case.0x405178.5
mov edx, dword [ebp - 0x88]
jmp dword [edx*4 + 0x40555a]
push 6
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x84]
movzx eax, byte [edx + 0x140]
test eax, eax
jne 0x4051b4
push 0
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x34]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x64], 0x204
jmp 0x405386
push 3
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea ecx, [ebp - 0x50]
push ecx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edx, dword [ebp - 0x48]
sub edx, dword [ebp - 0x50]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x3c]
sub edx, dword [ebp - 0x54]
add edx, dword [ebp - 0x58]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x64], 0x204
jmp 0x405386
push 1
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x24]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x40], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x64], 0
jmp 0x405386
push 9
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp dword [ebp + 8], 0
je 0x405308
cmp dword [ebp + 0xc], 0
je 0x405308
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x58]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x1d], 1
jmp 0x405340
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x24]
sub edx, dword [ebp - 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x50]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x44]
sub ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x3c], ecx
jmp 0x405386
push 1
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x54]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x50]
push eax
push 0
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x34], ecx
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x38]
mov dword [edx + 0x30], eax
mov ecx, dword [ebp - 0x84]
cmp dword [ecx + 0x18], 0
je 0x4053ea
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x18]
push edx
call fcn.00405580
add esp, 0xc
mov eax, dword [ebp - 0x84]
cmp dword [eax + 0x3c], 0
je 0x40545e
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x60]
jne 0x405406
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x34]
je 0x40545e
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x38]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x84]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x84]
add eax, 0x3c
push eax
call fcn.00404870
add esp, 0xc
mov ecx, dword [ebp - 0x84]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x8c], edx
cmp dword [ebp - 0x8c], 1
je 0x405484
cmp dword [ebp - 0x8c], 2
je 0x40549f
cmp dword [ebp - 0x8c], 3
je 0x4054ba
jmp 0x4054d3
push 0
push 0
push str.onMaximized
push 0x4441d4
mov ecx, dword [ebp - 0x84]
call fcn.004057a0
jmp 0x4054d3
push 0
push 0
push str.onMinimized
push 0x4441fc
mov ecx, dword [ebp - 0x84]
call fcn.004057a0
jmp 0x4054d3
push 0
push 0
push str.onRestored
push 0x444224
mov ecx, dword [ebp - 0x84]
call fcn.004057a0
mov eax, dword [ebp - 0x84]
mov byte [eax + 0x143], 0
push 0
mov ecx, dword [ebp - 0x84]
call fcn.00405dd0
movzx ecx, byte [ebp - 0x1d]
test ecx, ecx
je 0x40553b
mov edx, dword [ebp - 0x84]
cmp dword [edx + 0x148], 0
je 0x405520
push 0
push 0
push 0x756
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 0x148]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x80
push 0
push 0
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x24]
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
jmp 0x405554
push 0x85
push 0
push 0
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.USER32.dll_RedrawWindow]
mov esp, ebp
pop ebp
ret 0xc