Function at 0x587321
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5ed758]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call sym.GameDemo_u.exe_protected:_static_class_CWndShadow____cdecl_CWndShadow::FindShadowWindow_struct_HWND____
pop ecx
mov esi, eax
mov eax, dword [ebp + 0xc]
push 2
pop ebx
sub eax, ebx
je 0x5874c7
dec eax
je 0x587478
sub eax, ebx
je 0x587412
sub eax, 0xa
je 0x5873f7
sub eax, 9
je 0x5873b2
sub eax, 0x6a
je 0x587391
sub eax, 0x1b0
jne 0x5874d0
test byte [esi + 0xc], bl
je 0x5874d0
push edi
mov ecx, esi
call sym.GameDemo_u.exe_protected:_void___thiscall_CWndShadow::Update_struct_HWND____
jmp 0x5874d0
push edi
call sym.GameDemo_u.exe_protected:_static_int___cdecl_CWndShadow::GetShadowWindowIndex_struct_HWND____
pop ecx
test eax, eax
js 0x5874d0
push 1
push eax
mov ecx, sym.GameDemo_u.exe_class_DuiLib::CDuiValArray_CWndShadow::s_ShadowArray
call sym.GameDemo_u.exe_public:_bool___thiscall_DuiLib::CDuiValArray::Remove_int__int_
jmp 0x5874d0
mov al, byte [esi + 0xc]
test al, 1
je 0x5874d0
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jne 0x5873d7
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0xc], 0xf9
jmp 0x5874d0
test al, 4
jne 0x5874d0
push 8
push dword [esi + 4]
mov byte [esi + 0x18], 1
call dword [sym.imp.USER32.dll_ShowWindow]
or byte [esi + 0xc], 6
jmp 0x5874d0
xor ebx, ebx
cmp byte [esi + 0x18], bl
je 0x5874d0
push edi
mov ecx, esi
call sym.GameDemo_u.exe_protected:_void___thiscall_CWndShadow::Update_struct_HWND____
mov byte [esi + 0x18], bl
jmp 0x5874d0
mov al, byte [esi + 0xc]
test al, 1
je 0x5874d0
cmp dword [ebp + 0x10], ebx
je 0x587461
cmp dword [ebp + 0x10], 1
je 0x587461
test al, 4
je 0x587470
mov eax, dword [ebp + 0x14]
cmp ax, word [esi + 0x14]
ja 0x587448
shr eax, 0x10
cmp ax, word [esi + 0x16]
ja 0x587448
push edi
mov ecx, esi
call sym.GameDemo_u.exe_protected:_void___thiscall_CWndShadow::Update_struct_HWND____
jmp 0x58744c
mov byte [esi + 0x18], 1
test byte [esi + 0xc], bl
jne 0x587470
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
or byte [esi + 0xc], bl
jmp 0x587470
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0xc], 0xfd
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
jmp 0x5874d0
test byte [esi + 0xc], bl
je 0x5874d0
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
xor ebx, ebx
push 0x15
push ebx
push ebx
cmp dword [esi + 0x20], ebx
je 0x5874ad
mov eax, dword [ebp - 0x10]
sub eax, dword [esi + 0x28]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [esi + 0x24]
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x5874d0
movsx eax, byte [esi + 0xf]
movsx ecx, byte [esi + 0x11]
sub ecx, eax
add ecx, dword [ebp - 0x10]
push ecx
movsx ecx, byte [esi + 0x10]
sub ecx, eax
add ecx, dword [ebp - 0x14]
push ecx
jmp 0x5874a1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [esi + 8]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005a6e47
leave
ret 0x10