Function at 0x4ea680
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6e4770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push edi
push eax
call sym.WnPicViewer.exe_protected:_static_class_std::map_struct_HWND_____class_UiLib::CShadowUI___struct_std::less_struct_HWND______class_std::allocator_struct_std::pair_struct_HWND____const__class_UiLib::CShadowUI________cdecl_UiLib::CShadowUI::GetShadowMap_void_
mov ecx, eax
call fcn.004e9900
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov esi, dword [eax]
cmp edi, 0xf
ja 0x4ea7d8
je 0x4ea7c2
mov eax, edi
sub eax, 2
je 0x4ea7b7
dec eax
je 0x4ea748
sub eax, 2
jne 0x4ea841
mov al, byte [esi + 0x10]
test al, 1
je 0x4ea841
cmp ecx, 2
je 0x4ea731
cmp ecx, 1
je 0x4ea731
test al, 4
je 0x4ea740
cmp bx, word [esi + 0x18]
ja 0x4ea710
mov eax, ebx
shr eax, 0x10
cmp ax, word [esi + 0x1a]
ja 0x4ea710
push dword [ebp - 0x18]
mov ecx, esi
call sym.WnPicViewer.exe_protected:_void___thiscall_UiLib::CShadowUI::Update_struct_HWND____
jmp 0x4ea714
mov byte [esi + 0x1c], 1
test byte [esi + 0x10], 2
jne 0x4ea740
push 8
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
or byte [esi + 0x10], 2
mov dword [esi + 0x18], ebx
jmp 0x4ea841
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x10], 0xfd
mov dword [esi + 0x18], ebx
jmp 0x4ea841
test byte [esi + 0x10], 2
je 0x4ea841
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp byte [esi + 0x11], 0
push 0x11
push 0
push 0
je 0x4ea78f
mov eax, dword [ebp - 0x10]
sub eax, dword [esi + 0xac]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [esi + 0xa8]
push eax
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4ea841
movsx ecx, byte [esi + 0x15]
movsx eax, byte [esi + 0x17]
sub eax, ecx
add eax, dword [ebp - 0x10]
push eax
movsx eax, byte [esi + 0x16]
sub eax, ecx
add eax, dword [ebp - 0x14]
push eax
push 0
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x4ea841
push dword [esi + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x4ea841
cmp byte [esi + 0x1c], 0
je 0x4ea841
push dword [ebp - 0x18]
mov ecx, esi
call sym.WnPicViewer.exe_protected:_void___thiscall_UiLib::CShadowUI::Update_struct_HWND____
mov byte [esi + 0x1c], 0
jmp 0x4ea841
mov eax, edi
sub eax, 0x18
je 0x4ea80f
sub eax, 0x6a
je 0x4ea7fd
sub eax, 0x1b0
jne 0x4ea841
test byte [esi + 0x10], 2
je 0x4ea841
push dword [ebp - 0x18]
mov ecx, esi
call sym.WnPicViewer.exe_protected:_void___thiscall_UiLib::CShadowUI::Update_struct_HWND____
jmp 0x4ea841
lea eax, [ebp - 0x18]
push eax
call sym.WnPicViewer.exe_protected:_static_class_std::map_struct_HWND_____class_UiLib::CShadowUI___struct_std::less_struct_HWND______class_std::allocator_struct_std::pair_struct_HWND____const__class_UiLib::CShadowUI________cdecl_UiLib::CShadowUI::GetShadowMap_void_
mov ecx, eax
call fcn.004ebc30
jmp 0x4ea841
mov al, byte [esi + 0x10]
test al, 1
je 0x4ea841
test ecx, ecx
jne 0x4ea82a
push ecx
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [esi + 0x10], 0xf9
jmp 0x4ea841
test al, 4
jne 0x4ea841
push 8
push dword [esi + 8]
mov byte [esi + 0x1c], 1
call dword [sym.imp.USER32.dll_ShowWindow]
or byte [esi + 0x10], 6
mov eax, dword [esi + 0xc]
push ebx
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x18]
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052dfa4
mov esp, ebp
pop ebp
ret 0x10