Function at 0x4066b0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4563f8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x47106c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x18]
mov dword [ebp - 0x48], esi
test eax, eax
je 0x406981
cmp eax, 0x63
jne 0x406cdd
mov eax, dword [ebx + 0xc]
cmp eax, 0x201
jne 0x4067e0
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebx + 0x14]
movzx eax, dx
shr edx, 0x10
mov dword [ebp - 0x4c], eax
test ax, ax
js 0x406791
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
cwde
cmp eax, ecx
jg 0x406791
test dx, dx
js 0x406791
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
movsx eax, dx
cmp eax, ecx
jg 0x406791
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
push edx
push dword [ebp - 0x4c]
call fcn.00401bd0
test al, al
je 0x406a9e
mov eax, dword [ebp - 0x50]
push 0
mov dword [edi + 0xac], eax
mov eax, dword [ebp - 0x48]
push 0
push dword [edi + 0x28]
mov dword [edi + 0xb0], eax
mov byte [edi + 0xb4], 1
jmp 0x406ad2
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4067d1
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [edi + 0x28]
push 0xffffffffffffffe6
push esi
call dword [sym.imp.USER32.dll_GetClassLongW]
and eax, 0xfffdffff
push eax
push 0xffffffffffffffe6
push esi
call dword [sym.imp.USER32.dll_SetClassLongW]
push dword [edi + 4]
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SetParent]
mov esi, dword [ebp - 0x48]
mov dword [edi + 0xa4], 0
jmp 0x406acb
cmp eax, 0x202
jne 0x406894
mov eax, dword [ebx + 0x14]
lea edx, [ebp - 0x4c]
push edx
movzx ecx, ax
lea edx, [ebp - 0x50]
push edx
shr eax, 0x10
push eax
push ecx
call fcn.00401bd0
test al, al
je 0x40687d
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x406847
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [edi + 0x28]
push 0xffffffffffffffe6
push esi
call dword [sym.imp.USER32.dll_GetClassLongW]
and eax, 0xfffdffff
push eax
push 0xffffffffffffffe6
push esi
call dword [sym.imp.USER32.dll_SetClassLongW]
push dword [edi + 4]
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SetParent]
mov esi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
push 0
push 0
push dword [edi + 4]
lea eax, [eax + ecx*2]
mov dword [edi + 0xa4], 0
add eax, ecx
mov dword [edi + 0xa8], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [edi + 0xa8]
mov ecx, dword [edi + 0x54]
call fcn.00401320
mov byte [edi + 0xb4], 0
mov eax, 1
mov dword [esi], 0
jmp 0x406cdf
mov ecx, dword [ebx + 0x14]
movzx edx, cx
cmp eax, 0x200
jne 0x406962
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x58], edx
mov edx, eax
shr ecx, 0x10
and edx, 1
mov dword [ebp - 0x50], ecx
test al, 2
je 0x4068bd
or edx, 2
and al, 0x10
mov dword [ebp - 0x4c], eax
mov eax, edx
or eax, 4
cmp byte [ebp - 0x4c], 0
movzx ecx, ax
movzx eax, dx
cmove ecx, eax
test cx, cx
jne 0x406a9e
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x48], eax
call dword [sym.imp.USER32.dll_GetCapture]
mov ecx, dword [ebp - 0x48]
cmp eax, ecx
je 0x4068fd
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [edi + 0x28]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x58]
call fcn.00401bd0
test al, al
je 0x406928
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0xac], eax
mov eax, dword [ebp - 0x54]
mov dword [edi + 0xb0], eax
jmp 0x40693c
mov dword [edi + 0xac], 0xffffffff
mov dword [edi + 0xb0], 0xffffffff
push 0
push 0
push dword [ebp - 0x48]
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [esi], 0
mov eax, 1
jmp 0x406cdf
cmp eax, 0xf
jne 0x406cdd
sub esp, 0x10
mov ecx, edi
call fcn.004019a0
mov dword [esi], eax
mov eax, 1
jmp 0x406cdf
mov eax, dword [ebx + 0xc]
cmp eax, 1
jne 0x406a5d
lea eax, [ebp - 0x34]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push ecx
mov esi, esp
mov dword [ebp - 0x54], esi
call fcn.00402120
mov ecx, eax
test ecx, ecx
je 0x406cff
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push str.Alignment
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00401d10
test al, al
jne 0x4069e0
push 9
push str.Alignment
mov ecx, esi
call fcn.00401e30
sub esp, 0x10
mov dword [ebp - 4], 0xffffffff
movups xmm0, xmmword [ebp - 0x34]
mov eax, esp
lea ecx, [edi + 0x58]
push dword [edi + 4]
movups xmmword [eax], xmm0
call fcn.00401260
mov eax, dword [edi + 0x28]
test eax, eax
je 0x406a0c
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp - 0x54]
movaps xmm0, xmmword [0x4685e0]
lea eax, [edi + 0x44]
mov esi, dword [edi + 4]
push eax
push 0x4718b0
movups xmmword [ebp - 0x24], xmm0
call fcn.00402280
add esp, 8
movzx eax, ax
lea ecx, [edi + 0x24]
push eax
push 1
push 0
push 0x40000000
push 0
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.00402410
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov eax, 1
jmp 0x406cdf
cmp eax, 0xf
jne 0x406a76
sub esp, 0x10
call fcn.00401430
mov dword [esi], eax
mov eax, 1
jmp 0x406cdf
cmp eax, 0x14
jne 0x406a8b
mov dword [esi], 1
mov eax, 1
jmp 0x406cdf
cmp eax, 2
jne 0x406aae
mov eax, dword [edi + 0x28]
test eax, eax
je 0x406a9e
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi], 0
mov eax, 1
jmp 0x406cdf
cmp eax, 0x201
jne 0x406ae8
movzx eax, word [ebx + 0x14]
xor ecx, ecx
cmp ax, 0x17
setg cl
add ecx, 2
mov dword [edi + 0xa4], ecx
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esi], 0
mov eax, 1
jmp 0x406cdf
cmp eax, 0x202
jne 0x406c3e
lea eax, [ebp - 0x44]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [edi + 0xa4]
push 0
push 0
push dword [edi + 4]
mov dword [ebp - 0x54], eax
mov dword [edi + 0xa4], 1
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 0x54]
cmp eax, 2
jne 0x406b46
push dword [edi + 0xa8]
mov ecx, dword [edi + 0x54]
call fcn.00401320
mov dword [esi], 0
mov eax, 1
jmp 0x406cdf
cmp eax, 3
jne 0x406c2e
mov eax, dword [edi + 0x28]
test eax, eax
je 0x406c2e
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x406c2e
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x24]
push eax
push dword [edi + 4]
call esi
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call esi
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
add eax, 0xffffffa8
mov dword [ebp - 0x4c], edx
cmp edx, eax
jl 0x406b9e
mov eax, dword [ebp - 0x1c]
add eax, 0xffffffa9
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
add eax, 0xffffffab
mov dword [ebp - 0x50], ecx
cmp ecx, eax
jl 0x406bb7
mov eax, dword [ebp - 0x20]
add eax, 0xffffffab
mov dword [ebp - 0x50], eax
mov esi, dword [edi + 0x28]
push 0xffffffffffffffe6
push esi
call dword [sym.imp.USER32.dll_GetClassLongW]
or eax, 0x20000
push eax
push 0xffffffffffffffe6
push esi
call dword [sym.imp.USER32.dll_SetClassLongW]
push 0x88
push 0xffffffffffffffec
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SetParent]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 0x55
push 0x58
push dword [ebp - 0x50]
push dword [ebp - 0x4c]
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SetCapture]
mov esi, dword [ebp - 0x48]
mov dword [esi], 0
mov eax, 1
jmp 0x406cdf
cmp eax, 0x200
jne 0x406cbe
cmp byte [edi + 0x90], 0
jne 0x406c7e
mov eax, dword [edi + 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x18], 0x32
call dword [sym.imp.USER32.dll_TrackMouseEvent]
test eax, eax
setne al
mov byte [edi + 0x90], al
mov eax, dword [ebx + 0x10]
mov edx, eax
and edx, 1
test al, 2
je 0x406c8d
or edx, 2
and al, 0x10
mov dword [ebp - 0x54], eax
mov eax, edx
or eax, 4
cmp byte [ebp - 0x54], 0
movzx ecx, ax
movzx eax, dx
cmove ecx, eax
test cx, cx
jne 0x406a9e
mov dword [edi + 0xa4], 1
push 1
jmp 0x406acd
cmp eax, 0x2a3
jne 0x406cdd
mov byte [edi + 0x90], 0
mov dword [edi + 0xa4], 0
push 1
jmp 0x406acd
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004360ea
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x18
push 0x80004005
call fcn.004028d0
int3