Function at 0x450f58
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp edi, 0x80000000
jne 0x45112d
mov eax, dword [0x4a28cc]
mov dword [0x4aeef0], 1
test eax, eax
jne 0x450fd6
mov eax, dword [ebx + 4]
mov dword [0x4aeef4], eax
cmp eax, 4
jne 0x450fbc
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x14]
mov ebx, dword [ebx + 0x10]
mov dword [0x4a31e4], eax
mov dword [0x4a31e8], edx
mov dword [0x4a31ec], ecx
mov dword [0x4a31f0], ebx
mov eax, dword [0x4a31f4]
cmp eax, 1
je 0x451305
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
xor eax, eax
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x450ff1
push dword [0x4a28cc]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x450fff
push 9
push dword [0x4a28cc]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 8]
cmp eax, 0x80000000
je 0x451013
mov eax, dword [ebx + 0xc]
cmp eax, 0x80000000
jne 0x45101a
mov edi, 0x16
jmp 0x45101f
mov edi, 0x14
mov eax, dword [ebx + 0x14]
cmp eax, 0x80000000
je 0x451033
mov eax, dword [ebx + 0x10]
cmp eax, 0x80000000
jne 0x451036
or edi, 1
mov eax, dword [ebx + 4]
cmp eax, 1
je 0x451338
cmp eax, 2
je 0x451108
cmp eax, 4
jne 0x4510d4
lea eax, [ebp - 0x24]
push eax
push dword [0x4a28d4]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x20
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
push 0x21
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x14], eax
push 0xf
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
add ecx, dword [ebx + 0x10]
push edi
mov edx, dword [ebx + 0x14]
lea esi, [edx + esi*2]
mov edx, dword [ebp - 0x10]
lea edx, [ecx + edx*2]
add edx, dword [ebp - 0x14]
add edx, eax
push edx
push esi
push dword [ebx + 0xc]
push dword [ebx + 8]
push 0
push dword [0x4a28cc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 2
push 0x227
push dword [0x4a2460]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x45111e
cmp eax, 3
jne 0x4510f1
push 1
push dword [0x4a28cc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call fcn.004581b8
pop ecx
jmp 0x45111e
push 0xfffffffffffffffc
call fcn.004581b8
pop ecx
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 3
push dword [0x4a28cc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call fcn.004581b8
pop ecx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp edi, 0x400
jl 0x451143
mov eax, dword [0x4affb0]
add eax, 0x400
cmp edi, eax
jle 0x451152
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x451367
mov eax, dword [ebx]
test eax, eax
je 0x451177
push 7
call fcn.004581b8
pop ecx
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 0x1d
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
sub esi, dword [ebp - 0x10]
mov ecx, dword [0x4a31f4]
mov edx, esi
shr edx, 0x1f
add esi, edx
and esi, 0xfffffffe
cmp ecx, 1
je 0x451305
mov edx, dword [0x4a31e0]
cmp edx, 1
je 0x451305
mov edx, dword [0x4a2424]
mov edx, dword [edx + edi*4 - 0x1000]
test edx, edx
je 0x451305
push 0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, eax
test edi, edi
je 0x451305
mov edx, dword [edi + 0x184]
cmp edx, 1
je 0x451305
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x4b0004]
je 0x451218
mov edx, dword [edi + 0x180]
test edx, edx
jne 0x451229
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x180]
test edx, edx
jne 0x451229
push edi
call fcn.00455d24
pop ecx
mov edx, dword [ebx + 4]
cmp edx, 1
je 0x451353
cmp edx, 2
je 0x451317
cmp edx, 4
jne 0x4512e4
push dword [edi]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x45125d
push 9
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x451273
push 9
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xa
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 9
mov edx, dword [ebx + 0x14]
imul edx, dword [edi + 0x138]
add edx, esi
add edx, eax
mov dword [ebp - 0x14], edx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, dword [ebp - 0x10]
push 1
add edx, esi
mov esi, dword [ebx + 0x10]
imul esi, dword [edi + 0x13c]
add edx, esi
mov esi, dword [ebx + 8]
imul esi, dword [edi + 0x138]
lea ecx, [edx + eax + 1]
push ecx
mov edx, dword [ebx + 0xc]
imul edx, dword [edi + 0x13c]
mov ebx, dword [ebp - 0x14]
push ebx
push edx
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_MoveWindow]
lea edx, [ebp - 0x34]
push edx
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
call fcn.004581b8
pop ecx
jmp 0x451329
cmp edx, 3
jne 0x4512fd
push 1
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call fcn.004581b8
pop ecx
jmp 0x451329
push 0xfffffffffffffffc
call fcn.004581b8
pop ecx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 3
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call fcn.004581b8
pop ecx
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
xor eax, eax
mov esp, ebp
pop ebp
ret
push 6
push dword [0x4a28cc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call fcn.004581b8
pop ecx
jmp 0x45111e
push 6
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call fcn.004581b8
pop ecx
jmp 0x451329
push 0xfffffffffffffffc
call fcn.004581b8
pop ecx
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
mov eax, 0xffffffff
mov esp, ebp
pop ebp
ret