Function at 0x4884a0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x28]
xor esi, esi
rep stosd dword es:[edi], eax
mov eax, dword [0xcbb62c]
push 1
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x4887f0
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.DLL_LoadIconA]
push 0x7f00
push esi
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.DLL_LoadCursorA]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x48], 5
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], str.MOHAA_WinConsole
call dword [sym.imp.USER32.DLL_RegisterClassA]
test ax, ax
je 0x4887de
push esi
lea ecx, [esp + 0x1c]
push 0x80ca0000
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0x21c
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], 0x1d0
call dword [sym.imp.USER32.DLL_AdjustWindowRect]
mov ebp, dword [sym.imp.USER32.DLL_GetDesktopWindow]
call ebp
mov edi, dword [sym.imp.USER32.DLL_GetDC]
push eax
call edi
mov ebx, dword [sym.imp.GDI32.DLL_GetDeviceCaps]
mov esi, eax
push 8
push esi
call ebx
push 0xa
push esi
mov dword [esp + 0x1c], eax
call ebx
push esi
mov dword [esp + 0x14], eax
call ebp
mov ebp, dword [sym.imp.USER32.DLL_ReleaseDC]
push eax
call ebp
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
sub edx, eax
sub ecx, esi
push 0
inc ecx
lea eax, [edx + 1]
mov edx, dword [0xcbb62c]
push edx
push 0
push 0
push ecx
mov dword [0x7fec28], eax
push eax
mov eax, dword [esp + 0x28]
mov dword [0x7fec2c], ecx
mov ecx, dword [esp + 0x2c]
add eax, 0xfffffe3e
cdq
sub eax, edx
mov esi, dword [sym.imp.USER32.DLL_CreateWindowExA]
sar eax, 1
push eax
lea eax, [ecx - 0x258]
cdq
sub eax, edx
sar eax, 1
push eax
push 0x80ca0000
push str.MOHAA_Console
push str.MOHAA_WinConsole
push 0
call esi
test eax, eax
mov dword [0x7fe7a0], eax
je 0x4887de
push eax
call edi
mov edi, eax
push 0x48
push 0x5a
push edi
call ebx
push eax
push 8
call dword [sym.imp.KERNEL32.DLL_MulDiv]
push str.Courier_New
push 0x31
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0x12c
push 0
push 0
neg eax
push 0
push eax
call dword [sym.imp.GDI32.DLL_CreateFontA]
mov edx, dword [0x7fe7a0]
push edi
push edx
mov dword [0x7fe7c4], eax
call ebp
mov eax, dword [0xcbb62c]
mov ecx, dword [0x7fe7a0]
push 0
push eax
push 0x65
push ecx
push 0x14
push 0x210
push 0x195
push 6
push 0x50800080
push 0
push str.edit
push 0
call esi
mov edx, dword [0xcbb62c]
mov dword [0x7fe7cc], eax
mov eax, dword [0x7fe7a0]
push 0
push edx
push 1
push eax
push 0x18
push 0x48
push 0x1b2
push 5
push 0x50000001
push 0
push str.button
push 0
call esi
mov edi, dword [sym.imp.USER32.DLL_SendMessageA]
push str.copy
push 0
push 0xc
push eax
mov dword [0x7fe7ac], eax
call edi
mov ecx, dword [0xcbb62c]
mov edx, dword [0x7fe7a0]
push 0
push ecx
push 3
push edx
push 0x18
push 0x48
push 0x1b2
push 0x52
push 0x50000001
push 0
push str.button
push 0
call esi
push str.clear
push 0
push 0xc
push eax
mov dword [0x7fe7a8], eax
call edi
mov eax, dword [0xcbb62c]
mov ecx, dword [0x7fe7a0]
push 0
push eax
push 2
push ecx
push 0x18
push 0x48
push 0x1b2
push 0x1ce
push 0x50000001
push 0
push str.button
push 0
call esi
push str.quit
push 0
push 0xc
push eax
mov dword [0x7fe7b0], eax
call edi
mov edx, dword [0xcbb62c]
mov eax, dword [0x7fe7a0]
push 0
push edx
push 0x64
push eax
push 0x186
push 0x20e
push 6
push 6
push 0x50a00844
push 0
push str.edit
push 0
call esi
mov ecx, dword [0x7fe7c4]
push 0
push ecx
push 0x30
push eax
mov dword [0x7fe7a4], eax
call edi
mov edx, dword [0x7fe7cc]
push 0x488390
push 0xfffffffffffffffc
push edx
call dword [sym.imp.USER32.DLL_SetWindowLongA]
mov ecx, dword [0x7fe7cc]
mov dword [0x7fec30], eax
mov eax, dword [0x7fe7c4]
push 0
push eax
push 0x30
push ecx
call edi
mov edx, dword [0x7fe7a0]
push 0xa
push edx
call dword [sym.imp.USER32.DLL_ShowWindow]
mov eax, dword [0x7fe7a0]
push eax
call dword [sym.imp.USER32.DLL_UpdateWindow]
mov ecx, dword [0x7fe7a0]
push ecx
call dword [sym.imp.USER32.DLL_SetForegroundWindow]
mov edx, dword [0x7fe7cc]
push edx
call dword [sym.imp.USER32.DLL_SetFocus]
mov dword [0x7fec20], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret