Function at 0x46cd10
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x77c], ebx
je 0x46cf3c
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi + 8], eax
je 0x46cd6d
mov ecx, esi
call fcn.0046dc50
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esi + 0x77c]
push edx
push eax
push ecx
call fcn.0046cb30
mov edi, eax
mov eax, dword [esp + 0x30]
add esp, 0x20
cmp eax, ebx
je 0x46cdbe
cmp dword [esi + 8], ebx
jne 0x46cdbe
push 0x65
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
mov ecx, esi
call fcn.0046c1f0
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
call fcn.0046d430
mov ecx, dword [esi + 8]
mov ebp, eax
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
cmp edi, ebx
je 0x46cefc
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x46cefc
cmp ebp, ebx
je 0x46cefc
cmp dword [esi + 0x34], ebx
jne 0x46cefc
mov eax, dword [esp + 0x18]
mov dword [esi + 0x38], ecx
mov ecx, dword [esp + 0x14]
cmp eax, 0x64
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
jl 0x46cf3c
cmp ecx, 0x64
jl 0x46cf3c
mov ecx, dword [esi + 0x77c]
xor edx, edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x3c], edx
call fcn.0043bdf0
cmp eax, ebx
je 0x46ce75
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x34]
sub eax, ecx
mov ecx, dword [esp + 0x4c]
sub edx, eax
sub ecx, ebp
mov ebp, dword [esp + 0x20]
add edx, edi
mov edi, dword [esp + 0x1c]
lea edi, [edx + edi + 2]
mov edx, ebx
sub edx, ecx
lea edx, [edx + ebp + 2]
mov ebp, dword [esp + 0x38]
sub ebp, eax
lea eax, [ebp + 2]
cmp edi, eax
jle 0x46cebc
mov edi, eax
cmp edx, ebx
jge 0x46cec5
lea edx, [ebx + 2]
jmp 0x46ced4
mov eax, dword [esp + 0x3c]
sub eax, ecx
add eax, 2
cmp edx, eax
jle 0x46ced4
mov edx, eax
mov ecx, dword [esi + 8]
push 0x55
push 0
push 0
push edx
push edi
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [esi + 8]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
cmp eax, ebx
je 0x46cf0e
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x46cf20
mov ecx, dword [esp + 0x24]
mov edi, dword [esi + 8]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
cmp edi, eax
jne 0x46cf34
mov edx, dword [esi + 8]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push ebx
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret