Function at 0x4d7820
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
mov ecx, dword [0x6e4274]
test ecx, ecx
je 0x4d7a1d
push ebx
push edi
call sym.WnPicViewer.exe_public:_wchar_t_const____thiscall_UiLib::CDuiString::operator_wchar_t_const__void_const
push 0x642138
mov ecx, 0x6e41f0
mov dword [ebp - 4], eax
mov byte [0x6e41ec], 0
call fcn.004d9fc0
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor ebx, ebx
xor edi, edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [ebp - 4]
jne 0x4d7a12
push 1
push 0
push 0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
movq qword [ebp - 0xc], xmm0
push eax
movdqu xmmword [ebp - 0x1c], xmm0
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4d7a22
mov eax, dword [ebp - 0x1c]
cmp eax, 0x100
je 0x4d79e7
cmp eax, 0x104
je 0x4d79e7
cmp eax, 0x101
je 0x4d79e7
cmp eax, 0x105
je 0x4d79e7
cmp eax, 0x102
je 0x4d79e7
cmp eax, 0x286
je 0x4d79e7
cmp eax, 0x201
je 0x4d79b6
cmp eax, 0x204
je 0x4d79b6
cmp eax, 0xa1
je 0x4d79b6
cmp eax, 0xa4
je 0x4d79b6
cmp eax, 0x203
je 0x4d79b6
cmp eax, 0x202
je 0x4d7986
cmp eax, 0x205
je 0x4d7986
cmp eax, 0xa2
je 0x4d7986
cmp eax, 0xa5
je 0x4d7986
cmp eax, 0x7b
je 0x4d7986
cmp eax, 0x200
je 0x4d7973
cmp eax, 0x20a
je 0x4d7973
cmp eax, 0x10
jne 0x4d7969
mov eax, dword [ebp - 0x20]
cmp eax, dword [esi + 4]
jne 0x4d79ed
mov ebx, 1
jmp 0x4d79ed
cmp eax, 0x12
jne 0x4d79ed
lea edi, [eax - 0x11]
jmp 0x4d79ed
push dword [ebp - 0x20]
mov ecx, esi
call sym.WnPicViewer.exe_public:_bool___thiscall_UiLib::CMenuWnd::IsMenuWnd_struct_HWND____
test al, al
jne 0x4d79ed
jmp 0x4d7a35
push dword [ebp - 0x20]
mov ecx, esi
call sym.WnPicViewer.exe_public:_bool___thiscall_UiLib::CMenuWnd::IsMenuWnd_struct_HWND____
test al, al
jne 0x4d79ed
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
call dword [eax + 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x20]
mov ecx, esi
call sym.WnPicViewer.exe_public:_bool___thiscall_UiLib::CMenuWnd::IsMenuWnd_struct_HWND____
test al, al
jne 0x4d79ed
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x10
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4d7a35
mov eax, dword [esi + 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
test ebx, ebx
jne 0x4d7a12
test edi, edi
je 0x4d7a35
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
call dword [eax + 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 0x4ff
push 0xa
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [ebp - 4]
je 0x4d7875
mov eax, dword [esi + 0x10]
lea ecx, [esi + 0x10]
call dword [eax + 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret