Function at 0x4e9180
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x3f8
push ebx
push ebp
push esi
push edi
call fcn.004e0630
mov eax, dword [0x5f92f0]
push eax
call dword [sym.imp.USER32.dll_GetTopWindow]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x4e91d6
push esi
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x4e91d6
mov ecx, dword [0x5f92f0]
push 0
push 0
push 0xb
push ecx
mov dword [esp + 0x2c], 1
call dword [sym.imp.USER32.dll_SendMessageA]
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4e91de
mov dword [esp + 0x1c], 0
mov edx, dword [0x5f92ec]
mov edi, dword [sym.imp.USER32.dll_GetSystemMenu]
push 1
push edx
call edi
mov eax, dword [0x5f92ec]
push 0
push eax
call edi
mov ebp, eax
test ebp, ebp
je 0x4e9547
xor edx, edx
mov ecx, 0x17f4
call fcn.0041f1a0
mov ebx, dword [sym.imp.USER32.dll_InsertMenuA]
push eax
push 0x109
push 0x409
push 0
push ebp
call ebx
xor edx, edx
mov ecx, 0x17f3
call fcn.0041f1a0
mov ecx, dword [0x5f18ec]
neg ecx
push eax
sbb ecx, ecx
push 0x105
and ecx, 8
or ecx, 0x400
push ecx
push 1
push ebp
call ebx
push 0x5a4bec
push 0
push 0xc00
push 2
push ebp
call ebx
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov esi, eax
test esi, esi
je 0x4e9318
xor edx, edx
mov ecx, 0x17d5
call fcn.0041f1a0
mov edi, dword [sym.imp.USER32.dll_AppendMenuA]
push eax
push pe_nt_image_headers32
push 0
push esi
call edi
xor edx, edx
mov ecx, 0x17d6
call fcn.0041f1a0
push eax
push 0x101
push 0
push esi
call edi
xor edx, edx
mov ecx, 0x17d7
call fcn.0041f1a0
push eax
push 0xfa
push 0
push esi
call edi
xor edx, edx
mov ecx, 0x17d8
call fcn.0041f1a0
push eax
push esi
push 0x410
push 3
push ebp
call ebx
push 0x5a4bec
push 0
push 0xc00
push 4
push ebp
call ebx
mov eax, dword [0x5eeee0]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_LoadMenuA]
mov dword [esp + 0x14], 5
je 0x4e9307
push 0x3c
push eax
call edi
mov esi, eax
test esi, esi
jne 0x4e9325
mov edx, dword [0x5f92e8]
push 0x3c
push edx
call edi
mov esi, eax
test esi, esi
jne 0x4e9325
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3f8
ret
mov al, byte [0x5ee658]
test al, al
je 0x4e933c
push 0
push 0xc3
push esi
call dword [sym.imp.USER32.dll_DeleteMenu]
mov eax, dword [0x5bfca0]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_CheckMenuItem]
je 0x4e934f
push 8
jmp 0x4e9351
push 0
push 0x6e
push esi
call edi
mov eax, dword [0x5bfdfc]
test eax, eax
je 0x4e9363
push 8
jmp 0x4e9365
push 0
push 0x6f
push esi
call edi
mov eax, dword [0x5bfdbc]
test eax, eax
je 0x4e9377
push 8
jmp 0x4e9379
push 0
push 0x70
push esi
call edi
mov eax, dword [0x5f8b8c]
test eax, eax
je 0x4e938b
push 8
jmp 0x4e938d
push 0
push 0xd2
push esi
call edi
mov eax, dword [0x5bfc9c]
test eax, eax
je 0x4e93a9
push 8
push 0x78
push esi
call edi
push 0
jmp 0x4e93b2
push 0
push 0x78
push esi
call edi
push 8
push 0x79
push esi
call edi
mov eax, dword [0x5ee9a8]
test eax, eax
je 0x4e93d1
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov dword [0x5ee9a8], 0
mov eax, dword [0x5bfca0]
test eax, eax
je 0x4e9404
mov eax, dword [0x5f92ec]
push eax
call dword [sym.imp.USER32.dll_GetMenu]
mov ecx, dword [0x5f92ec]
push esi
push ecx
mov edi, eax
call dword [sym.imp.USER32.dll_SetMenu]
test edi, edi
je 0x4e94bd
push edi
jmp 0x4e94b7
mov edx, dword [0x5f92ec]
push edx
call dword [sym.imp.USER32.dll_GetMenu]
mov edi, eax
mov eax, dword [0x5f92ec]
push 0
push eax
call dword [sym.imp.USER32.dll_SetMenu]
push edi
call dword [sym.imp.USER32.dll_DestroyMenu]
push 0
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
test edi, edi
je 0x4e949a
nop
push 0x400
push 0x3e7
lea ecx, [esp + 0x28]
push ecx
push 0
push esi
call dword [sym.imp.USER32.dll_GetMenuStringA]
test eax, eax
jle 0x4e949a
push 0x400
push 0
push esi
call dword [sym.imp.USER32.dll_RemoveMenu]
lea edx, [esp + 0x20]
push edx
push edi
mov edi, dword [esp + 0x1c]
push 0x410
push edi
push ebp
call ebx
inc edi
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x10]
push 0
inc edi
push esi
mov dword [esp + 0x18], edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
test edi, edi
jne 0x4e9440
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4e94b6
mov eax, dword [esp + 0x14]
push 0x5a4bec
push 0
push 0xc00
push eax
push ebp
call ebx
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
mov edx, 1
xor ecx, ecx
call fcn.004df7b0
mov eax, dword [0x5bfc9c]
test eax, eax
jne 0x4e9543
call fcn.004e7850
mov esi, eax
test esi, esi
je 0x4e9543
lea edx, [esp + 0x10]
mov ecx, 0x8e
call fcn.004e9100
mov ebp, eax
test ebp, ebp
je 0x4e9543
xor edx, edx
mov ecx, 0x9f
call fcn.004e9100
mov edi, eax
test edi, edi
je 0x4e9543
mov edx, dword [esp + 0x10]
push 0x400
push 0x3e7
lea ecx, [esp + 0x28]
push ecx
push edx
push esi
call dword [sym.imp.USER32.dll_GetMenuStringA]
test eax, eax
jle 0x4e9543
mov eax, dword [esp + 0x10]
push 0x400
push eax
push esi
call dword [sym.imp.USER32.dll_RemoveMenu]
lea ecx, [esp + 0x20]
push ecx
push ebp
push 0x410
push 0
push edi
call ebx
mov esi, dword [esp + 0x18]
mov edx, dword [0x5f92ec]
push edx
call dword [sym.imp.USER32.dll_DrawMenuBar]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e9592
push 3
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5f92f0]
push 0
push 1
push 0xb
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, esi
call fcn.00561000
mov ecx, eax
call fcn.00499c40
mov ecx, dword [0x5f92ec]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3f8
ret