Function at 0x405f70
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 0x40623f
cmp eax, 0x63
jne 0x40659b
mov eax, dword [ebx + 0xc]
cmp eax, 0x201
jne 0x4060a0
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 0x406051
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
cwde
cmp eax, ecx
jg 0x406051
test dx, dx
js 0x406051
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
movsx eax, dx
cmp eax, ecx
jg 0x406051
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
push edx
push dword [ebp - 0x4c]
call fcn.0041c820
test al, al
je 0x40635c
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 0x406390
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x406091
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 0x406389
cmp eax, 0x202
jne 0x406152
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.0041c820
test al, al
je 0x40613b
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [edi + 0x28]
test eax, eax
je 0x406107
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*4]
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa8], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [edi + 0xa8]
mov ecx, dword [edi + 0x54]
call fcn.0041be90
mov byte [edi + 0xb4], 0
mov eax, 1
mov dword [esi], 0
jmp 0x40659d
mov ecx, dword [ebx + 0x14]
movzx edx, cx
cmp eax, 0x200
jne 0x406220
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 0x40617b
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 0x40635c
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 0x4061bb
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.0041c820
test al, al
je 0x4061e6
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0xac], eax
mov eax, dword [ebp - 0x54]
mov dword [edi + 0xb0], eax
jmp 0x4061fa
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 0x40659d
cmp eax, 0xf
jne 0x40659b
sub esp, 0x10
mov ecx, edi
call fcn.0041c600
mov dword [esi], eax
mov eax, 1
jmp 0x40659d
mov eax, dword [ebx + 0xc]
cmp eax, 1
jne 0x40631b
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 0x4065bd
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push 0x4672a8
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00401d10
test al, al
jne 0x40629e
push 7
push 0x4672a8
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 0x4062ca
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp - 0x54]
movaps xmm0, xmmword [0x4685d0]
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 0x40659d
cmp eax, 0xf
jne 0x406334
sub esp, 0x10
call fcn.0041c090
mov dword [esi], eax
mov eax, 1
jmp 0x40659d
cmp eax, 0x14
jne 0x406349
mov dword [esi], 1
mov eax, 1
jmp 0x40659d
cmp eax, 2
jne 0x40636c
mov eax, dword [edi + 0x28]
test eax, eax
je 0x40635c
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi], 0
mov eax, 1
jmp 0x40659d
cmp eax, 0x201
jne 0x4063a6
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 0x40659d
cmp eax, 0x202
jne 0x4064fc
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 0x406404
push dword [edi + 0xa8]
mov ecx, dword [edi + 0x54]
call fcn.0041be90
mov dword [esi], 0
mov eax, 1
jmp 0x40659d
cmp eax, 3
jne 0x4064ec
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4064ec
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4064ec
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, 0xffffff98
mov dword [ebp - 0x4c], edx
cmp edx, eax
jl 0x40645c
mov eax, dword [ebp - 0x1c]
add eax, 0xffffff99
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
add eax, 0xffffffb1
mov dword [ebp - 0x50], ecx
cmp ecx, eax
jl 0x406475
mov eax, dword [ebp - 0x20]
add eax, 0xffffffb1
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 0x4f
push 0x68
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 0x40659d
cmp eax, 0x200
jne 0x40657c
cmp byte [edi + 0x90], 0
jne 0x40653c
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 0x40654b
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 0x40635c
mov dword [edi + 0xa4], 1
push 1
jmp 0x40638b
cmp eax, 0x2a3
jne 0x40659b
mov byte [edi + 0x90], 0
mov dword [edi + 0xa4], 0
push 1
jmp 0x40638b
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