Function at 0x50cfb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56505b
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x1b0], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp + 0x50]
push 0
mov dword [ebp - 0x1b4], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
lea eax, [ebp - 0x18c]
push 0x30
push 0
push eax
mov dword [ebp - 0x194], edi
call fcn.005290f0
add esp, 0xc
mov dword [ebp - 0x18c], 0x30
mov dword [ebp - 0x188], 8
mov dword [ebp - 0x184], 0x50f440
mov dword [ebp - 0x180], 0
push 0x7f00
push edi
mov dword [ebp - 0x17c], 0
mov dword [ebp - 0x178], edi
mov dword [ebp - 0x174], 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x18c]
push eax
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], str.HTMLROOTWINDOW
call fcn.00488800
movzx eax, ax
test ax, ax
je 0x50d13e
cmp dword [ebp + 0x34], 0
mov eax, 0x86cc0000
mov edi, 0x86c80000
cmovne edi, eax
mov eax, dword [ebp - 0x190]
test eax, eax
jne 0x50d0fb
mov ecx, dword [0x5ccda4]
call fcn.004c44f0
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push 0
push dword [ebp - 0x178]
push 0
push eax
mov eax, dword [ebx + 0xc]
sub eax, ecx
push eax
mov eax, dword [ebx + 8]
sub eax, edx
push eax
push ecx
push edx
push edi
push 0
push str.HTMLROOTWINDOW
push 1
call fcn.004172d0
mov edi, eax
test edi, edi
jne 0x50d145
push dword [ebp - 0x194]
push str.HTMLROOTWINDOW
call fcn.00471280
xor al, al
jmp 0x50d3a0
push dword [ebp + 0x30]
call fcn.00460f80
add esp, 4
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
call fcn.00510370
push 0x11c
mov byte [ebp - 0x198], al
lea eax, [ebp - 0x158]
push 0
push eax
call fcn.005290f0
add esp, 0x10
cmp dword [ebp - 0x1a0], 0
setne al
cmp dword [ebp + 0x38], 0
movzx eax, al
push dword [ebp - 0x19c]
push dword [ebp + 0x44]
push dword [ebp + 0x40]
push eax
setne al
movzx eax, al
push eax
push dword [ebp - 0x198]
push 0
push 0
push dword [ebp + 0x2c]
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x1a4]
call fcn.00409a20
push dword [ebp + 0x18]
lea eax, [ebp - 0x3c]
push dword [ebp - 0x1a8]
lea ecx, [ebp - 0x158]
push dword [ebp - 0x1ac]
push esi
push dword [ebp - 0x1b0]
push dword [ebp + 0x24]
push eax
push edi
call fcn.0050b650
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x50d1f7
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x158]
call fcn.0050c870
push 5
push dword [ebp - 0x8c]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x8c]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 5
push dword [ebp - 0x8c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 7
push dword [ebp - 0x8c]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp + 0x4c], 0
je 0x50d253
push dword [ebp - 0x8c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x5cb420]
test eax, eax
jne 0x50d263
xor bl, bl
jmp 0x50d350
cmp byte [ebp - 0x96], 0
mov dword [ebp - 0x15c], eax
je 0x50d346
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x15c]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
ja 0x50d346
test eax, eax
je 0x50d33c
cmp eax, 1
jne 0x50d328
push 3
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x50d32d
nop
mov esi, dword [ebp - 0x154]
test esi, esi
je 0x50d2fc
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi + 0x24]
cmp ecx, eax
je 0x50d2e3
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x50d2fc
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x37f
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
je 0x50d310
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 3
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x50d2c0
jmp 0x50d32d
cmp eax, 0xffffffff
je 0x50d33c
cmp byte [ebp - 0x96], 0
jne 0x50d276
jmp 0x50d346
mov dword [ebp - 0x9c], 2
cmp dword [ebp - 0x9c], 1
sete bl
mov ecx, dword [ebp - 0x1b4]
test ecx, ecx
je 0x50d372
lea eax, [ebp - 0x6c]
cmp ecx, eax
je 0x50d372
cmp dword [ebp - 0x58], 0x10
push dword [ebp - 0x5c]
cmovae eax, dword [ebp - 0x6c]
push eax
call fcn.0040a8a0
mov eax, dword [ebp - 0x190]
test eax, eax
je 0x50d383
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [ebp - 0x194]
push str.HTMLROOTWINDOW
call fcn.00471280
lea ecx, [ebp - 0x158]
call fcn.0050bcb0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret