Function at 0x43f420
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x4af890]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
mov eax, dword [0x6d7d64]
push 1
push eax
mov dword [ebp - 0x6c], 0x8c
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0x43e590
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push 0
mov dword [ebp - 0x88], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x9c]
push eax
mov dword [ebp - 0x80], 5
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], str.Q3_WinConsole
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x43f9ac
push 0
push 0x80cf0000
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0
push eax
mov dword [ebp - 0x50], 0x258
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x4c], 0x1b2
call dword [sym.imp.USER32.dll_AdjustWindowRect]
cmp dword [ebp + 0x14], 0
je 0x43f531
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
jmp 0x43f541
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x38], 0x28
push edi
push 2
push ecx
push eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
call dword [sym.imp.USER32.dll_MonitorFromPoint]
test eax, eax
je 0x43f59a
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoA]
test eax, eax
je 0x43f59a
mov edx, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x34]
sub edx, ebx
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
sub esi, eax
mov dword [ebp - 0x5c], eax
jmp 0x43f5d6
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
call ebx
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call esi
push 0xa
push edi
mov dword [ebp - 0x70], eax
call esi
push edi
mov esi, eax
mov dword [ebp - 0x5c], 0
call ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp - 0x70]
xor ebx, ebx
mov ecx, dword [ebp - 0x50]
mov edi, dword [ebp - 0x4c]
sub ecx, dword [ebp - 0x58]
sub edi, dword [ebp - 0x54]
inc ecx
inc edi
mov dword [0x6c8184], ecx
cmp dword [ebp + 0x14], 0
mov dword [0x6c8188], edi
je 0x43f5fb
mov eax, dword [ebp + 0x10]
jmp 0x43f615
sub edx, ecx
sub esi, edi
mov eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, ebx
mov dword [ebp + 0xc], eax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x5c]
push 0
push dword [0x6d7d64]
mov ebx, dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push 0
push edi
push ecx
push eax
push dword [ebp + 0xc]
push 0x80cf0000
push str.Quake_3_Console
push str.Q3_WinConsole
push 0
call ebx
mov dword [0x6c7d50], eax
test eax, eax
je 0x43f9a9
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push str.Terminal
push 0x31
push 0
mov esi, dword [sym.imp.GDI32.dll_CreateFontA]
push 0
push 0
push 1
push 0
push 0
push 0
push 0
push 0
push 0
push 0xfffffffffffffff8
push 0xfffffffffffffff4
call esi
push str.Tahoma
push 0
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xfffffffffffffff5
mov dword [0x6c7d74], eax
call esi
push 0
push dword [0x6d7d64]
mov dword [0x6c7d78], eax
push 0
push dword [0x6c7d50]
push 0x20
push 0x20
push 1
push 1
push 0x50000000
push 0
push str.msctls_statusbar32
push 0
call ebx
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push dword [0x6c7d78]
mov dword [0x6c7d5c], eax
push 0x30
push eax
call esi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x407
push dword [0x6c7d5c]
call esi
mov ecx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0xc]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push 2
push 0x404
push dword [0x6c7d5c]
call esi
push 0x48b3d2
push 0x100
push 0x401
push dword [0x6c7d5c]
call esi
lea eax, [ebp - 0x58]
push eax
push 0
push 0x40a
push dword [0x6c7d5c]
call esi
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
add ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x54]
sub edi, ecx
push 0
push dword [0x6d7d64]
mov dword [ebp - 0x50], eax
dec edi
push 1
push dword [0x6c7d5c]
sub eax, ebx
mov dword [ebp - 0x58], ebx
sub eax, 4
cdq
push edi
sub eax, edx
mov esi, eax
sar esi, 1
push esi
push ecx
push ebx
push 0x50000000
push str.copy
push str.button
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push dword [0x6d7d64]
mov dword [0x6c7d64], eax
lea eax, [ebx + 4]
push 3
push dword [0x6c7d5c]
add eax, esi
push edi
mov edi, dword [sym.imp.USER32.dll_CreateWindowExA]
push esi
push dword [ebp - 0x54]
push eax
push 0x50000000
push str.clear
push str.button
push 0
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push dword [0x6c7d78]
mov dword [0x6c7d60], eax
push 0x30
push dword [0x6c7d64]
call ebx
push 0
push dword [0x6c7d78]
push 0x30
push dword [0x6c7d60]
call ebx
mov ecx, dword [0x6c7d5c]
mov eax, dword [sym.imp.USER32.dll_GetClientRect]
test ecx, ecx
jne 0x43f814
mov esi, 0x16
jmp 0x43f827
lea edx, [ebp - 0x48]
push edx
push ecx
call eax
mov esi, dword [ebp - 0x3c]
sub esi, dword [ebp - 0x44]
mov eax, dword [sym.imp.USER32.dll_GetClientRect]
inc esi
lea ecx, [ebp - 0x58]
push ecx
push dword [0x6c7d50]
call eax
mov eax, dword [ebp - 0x50]
push 0
push dword [0x6d7d64]
add eax, 0xfffffffe
push 0x65
push dword [0x6c7d50]
push 0x10
push eax
mov eax, dword [ebp - 0x4c]
sub eax, esi
sub eax, 0x12
push eax
push 1
push 0x50800080
push 0
push str.edit
push 0
call edi
push 0
push dword [0x6d7d64]
mov dword [0x6c7d58], eax
mov eax, dword [ebp - 0x4c]
push 0x64
push dword [0x6c7d50]
sub eax, esi
sub eax, 0x18
push eax
mov eax, dword [ebp - 0x50]
add eax, 0xfffffffe
push eax
push 2
push 1
push 0x50a00944
push 0
push str.edit
push 0
call edi
push 0
push dword [0x6c7d74]
mov dword [0x6c7d54], eax
push 0x30
push eax
call ebx
push 0
push dword [0x6c7d74]
push 0x30
push dword [0x6c7d58]
call ebx
mov esi, dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x43ef10
push 0xfffffffffffffffc
push dword [0x6c7d58]
call esi
push 0x43f310
push 0xfffffffffffffffc
push dword [0x6c7d5c]
mov dword [0x6c818c], eax
call esi
push 0x43e390
push 0xfffffffffffffffc
push dword [0x6c7d54]
mov dword [0x6c8190], eax
call esi
mov dword [0x6c8194], eax
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x43f91f
cmp byte [eax], 0
je 0x43f91f
push eax
push dword [0x6c7d50]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0xa
push dword [0x6c7d50]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x6c7d50]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [0x6c7d50]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push 0x10000
push 0xc5
push dword [0x6c7d54]
call ebx
push 0
push 0
push 0xd5
push dword [0x6c7d54]
call ebx
push 0
push 0x200
push 0xc5
push dword [0x6c7d58]
mov dword [0x6c7d4c], eax
call ebx
push 0x6c7b40
call fcn.0040d680
call fcn.0043e550
push str.Server_is_not_running
call fcn.0043fb30
add esp, 8
mov dword [0x6c817c], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046cfaf
mov esp, ebp
pop ebp
ret