Function at 0x509290
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52f5b7
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5d3b14]
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 edi, ecx
mov dword [ebp - 0x34], edi
xor ebx, ebx
xor esi, esi
call dword [0x555370]
lea ecx, [eax + 0x24]
call dword [0x555f0c]
test al, al
jne 0x50932b
call dword [0x555370]
mov ecx, dword [eax + 0x60]
add eax, 0x5c
mov edi, dword [ecx + 0xc]
add edi, eax
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x55604c]
lea ecx, [edi + 4]
call esi
mov ebx, dword [eax]
call dword [0x555370]
mov ecx, dword [eax + 0x134]
add eax, 0x130
mov edi, dword [ecx + 0xc]
add edi, eax
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x55604c]
lea ecx, [edi + 4]
call esi
mov edi, dword [ebp - 0x34]
mov esi, dword [eax]
lea ecx, [ebp - 0x30]
call dword [0x55535c]
mov dword [ebp - 4], 0
cmp ebx, 2
jne 0x50936c
call dword [0x555370]
sub esp, 0x20
mov dword [ebp - 0x34], esp
lea ecx, [eax + 0xe0]
mov eax, esp
push eax
call dword [0x555280]
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call dword [0x555304]
cmp esi, 1
jne 0x50938b
lea ecx, [ebp - 0x30]
call dword [0x555334]
test al, al
je 0x50938b
push str.CVMUIView::UpdateView:_Invalid_viewType_state._n
call fcn.005167ad
add esp, 4
xor eax, eax
mov ecx, 5
test esi, esi
cmove eax, ecx
push eax
push dword [edi + 0x80]
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [0x555f38]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, eax
call dword [0x5554ac]
test eax, eax
je 0x509409
mov ecx, eax
call dword [0x554c14]
test al, al
je 0x509409
push str.CVMUIView::UpdateView___UnityOn._n
mov dword [ebp - 0x34], 1
call fcn.005167a7
mov eax, dword [edi + 0x188]
add esp, 4
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x74]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
push 0
push 0
push 0x18
call fcn.00508ed0
jmp 0x50946b
xor ebx, ebx
mov dword [ebp - 0x34], 1
cmp esi, 1
mov ecx, 0x574400
mov eax, 0x5743fc
cmovne eax, ecx
sete bl
push eax
push str.CVMUIView::UpdateView___showMks___s_._n
call fcn.005167a7
add esp, 8
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
push 0
push ebx
push 0x18
call fcn.00508ed0
xor eax, eax
mov ecx, 5
cmp esi, 1
cmove eax, ecx
push eax
push dword [edi + 0x74]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x188]
push 0
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5094ac
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x5094ac
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5094a3
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x5094ac
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call dword [0x555348]
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.005150f0
mov esp, ebp
pop ebp
ret