Function at 0x46da20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4942be
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x4b6798]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push eax
call edi
test eax, eax
je 0x46db57
mov edx, dword [ebx + 0x18]
mov eax, dword [edx + 4]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, eax
je 0x46db57
push 0x10
call fcn.004739eb
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
xor esi, esi
mov dword [esp + 0x48], esi
cmp edi, esi
je 0x46dae0
mov byte [edi + 8], 7
and dword [edi + 8], 0xfffffeff
push 0x10
mov dword [edi + 0xc], esi
call fcn.004739eb
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x48], 1
cmp eax, esi
je 0x46dad6
mov esi, eax
call fcn.00451710
mov dword [edi], eax
mov dword [esp + 0x14], edi
jmp 0x46dae4
xor eax, eax
mov dword [edi], eax
mov dword [esp + 0x14], edi
jmp 0x46dae4
mov dword [esp + 0x14], esi
push str.TAB_UNLOAD
lea edi, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0044ed00
mov dword [esp + 0x48], 2
mov ecx, dword [esp + 0x14]
push str.type
push ecx
call fcn.0044f840
mov esi, eax
mov eax, edi
call fcn.0044ef80
mov eax, edi
mov dword [esp + 0x48], 0xffffffff
call fcn.0044ef10
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
push edx
push 0
push 0x83ee
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 4], 0
je 0x46dc3e
cmp byte [ebx + 0xd], 0
je 0x46dc3e
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x46dc1f
mov edx, dword [eax + 4]
push edx
call edi
test eax, eax
je 0x46dc1f
mov eax, dword [esp + 0x24]
and eax, 0xffffff05
or eax, 5
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x1c]
push ecx
mov edx, str.beforeunload
lea esi, [esp + 0x30]
mov eax, ebx
mov dword [esp + 0x4c], 3
call fcn.0046c1a0
lea eax, [esp + 0x1c]
mov byte [esp + 0x48], 5
call fcn.0044ef10
mov eax, esi
call fcn.0044f5d0
test al, al
je 0x46dbf4
mov eax, dword [ebx + 0x18]
mov edx, dword [0x4de6c4]
mov eax, dword [eax + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_SetParent]
mov ecx, dword [ebx + 0x18]
push ecx
call fcn.004392b0
mov eax, dword [ebx + 0x18]
mov edx, dword [eax + 4]
push edx
call edi
test eax, eax
je 0x46dc0e
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.0044ef10
mov edx, dword [ebx + 4]
mov ecx, ebx
call fcn.00459b10
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebx + 0x18]
mov ecx, dword [ebx + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 0x150]
test eax, eax
je 0x46dc69
cmp dword [ebx + 0x154], 0
je 0x46dc69
add eax, 8
push eax
call fcn.00442800
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4