Function at 0x10087430
Capabilities:
Accept command line arguments
Get hostname
Get memory capacity
Get session user name
Set console window title

Disassembly:
mov ecx, 0x100f0818
jmp 0x10087500
push 0xffffffffffffffff
push 0x100b7fe1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x33c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x1c], ebp
lea ecx, [ebp + 0x10c]
call sub.MFC42.DLL_CString::CString
xor ebx, ebx
mov ecx, ebp
mov dword [esp + 0x354], ebx
mov dword [ebp], ebx
call fcn.10087970
test dword [ebp + 4], 0x10000
je 0x1008783f
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x1008783f
mov dword [ebp], 1
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x20
push eax
push 0x100ec968
push str.CONOUT_
call dword [sym.imp.MSVCRT.dll_freopen]
add esp, 0xc
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov word [esp + 0x10], 0x50
mov word [esp + 0x12], 0x32
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
push esi
call edi
push 0x1f
push esi
mov word [esp + 0x18], bx
mov word [esp + 0x1a], bx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
push 0xfa0
push 0x1f
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
mov word [esp + 0x10], 0x50
mov word [esp + 0x12], 0x1f40
mov ecx, dword [esp + 0x10]
push ecx
push esi
call edi
call sub.MFC42.DLL_AfxGetModuleState
cmp dword [eax + 4], ebx
je 0x100875ff
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x6c]
jmp 0x10087601
xor eax, eax
mov esi, 0x104
lea edx, [esp + 0x248]
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x40]
push ecx
push edx
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x10087640
mov byte [esp + 0x40], bl
lea eax, [esp + 0x14]
lea ecx, [esp + 0x144]
push eax
push ecx
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x10087662
mov byte [esp + 0x144], bl
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov esi, dword [sym.imp.MSVCRT.dll_printf]
push str.WARNING_:_DO_NOT_MANUALLY_CLOSE_THIS_CONSOLE___n_n
call esi
add esp, 4
lea ecx, [esp + 0x10]
push 0x50
push 0x3d
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [eax]
push eax
call esi
add esp, 4
lea ecx, [esp + 0x10]
call fcn.100ae920
lea ecx, [esp + 0x40]
push ecx
push str.Computer_name_:__s_n
call esi
add esp, 8
lea edx, [esp + 0x144]
push edx
push str.User_name_____:__s_n
call esi
add esp, 8
push 0x100e7904
call esi
add esp, 4
push str.Memory_information_n
call esi
mov eax, dword [esp + 0x28]
add esp, 4
push eax
push str._tPercent_of_memory_in_use__________:__ld____n
call esi
mov ecx, dword [esp + 0x30]
add esp, 8
shr ecx, 0xa
push 0x100ec8bc
push ecx
push 7
push str._tTotal_size_of_physical_memory_____:__ld__s_n
call esi
mov edx, dword [esp + 0x3c]
add esp, 0x10
shr edx, 0xa
push 0x100ec8bc
push edx
push 7
push str._tSize_of_physical_memory_available_:__ld__s_n
call esi
mov eax, dword [esp + 0x40]
add esp, 0x10
shr eax, 0xa
push 0x100ec8bc
push eax
push 7
push str._tTotal_size_of_paging_file_________:__ld__s_n
call esi
mov ecx, dword [esp + 0x44]
add esp, 0x10
shr ecx, 0xa
push 0x100ec8bc
push ecx
push 7
push str._tSize_of_paging_file_available_____:__ld__s_n
call esi
mov edx, dword [esp + 0x48]
add esp, 0x10
shr edx, 0xa
push 0x100ec8bc
push edx
push 7
push str._tTotal_size_of_virtual_memory______:__ld__s_n
call esi
mov eax, dword [esp + 0x4c]
add esp, 0x10
shr eax, 0xa
push 0x100ec8bc
push eax
push 7
push str._tSize_of_virtual_memory_available__:__ld__s_n
call esi
add esp, 0x10
push 0x100e7904
call esi
add esp, 4
push str.Process_information_n
call esi
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._tProcess_ID_:__ld_n
call esi
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._tThread_ID__:__ld_n
call esi
add esp, 8
push 0x100e7904
call esi
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push str.Command_line_:__s_n
call esi
add esp, 8
lea ecx, [esp + 0x10]
push 0x50
push 0x3d
call sub.MFC42.DLL_CString::CString_5
mov ecx, dword [eax]
push ecx
call esi
add esp, 4
lea ecx, [esp + 0x10]
call fcn.100ae920
push 0x100e7904
call esi
add esp, 4
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x1008783f
push str.GetConsoleWindow
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10087838
call eax
cmp eax, ebx
je 0x10087838
push ebx
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov edi, eax
cmp edi, ebx
je 0x10087838
push 1
push 0xf060
push edi
call dword [sym.imp.USER32.dll_EnableMenuItem]
push edi
call dword [sym.imp.USER32.dll_DestroyMenu]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x34c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x348
ret