Function at 0x401403
Capabilities:
Get common file path
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x850
cmp dword [0x4405478], 0x594
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x24], esi
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x18], ebx
jne 0x401439
push 0
lea eax, [ebp - 0x850]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x41b310]
lea ecx, [ebp - 0x10]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b314]
mov dword [ebp - 0x30], eax
call fcn.004013f9
mov edx, dword [ebp - 0x10]
mov ecx, dword [0x41b318]
add edx, 0x23f
mov eax, dword [0x41b31c]
push 0x20
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
pop esi
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov eax, ebx
mov dword [ebp - 0xc], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x4405478], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x4405474]
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp dword [0x4405478], 0x3eb
mov dword [0x4405474], eax
mov eax, dword [0x4404e68]
cmove eax, dword [ebp - 0xc]
mov dword [0x4404e68], eax
lea eax, [edx + ebx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
xor ebx, ebx
xor ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x28]
xor eax, ecx
mov dword [ebp - 4], ecx
mov ecx, dword [0x4405478]
mov dword [0x4405470], 0xf4ea3dee
mov dword [ebp - 8], eax
cmp ecx, 0x213
jne 0x40156b
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommState]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea eax, [ebp - 0x450]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
lea eax, [ebp - 0x3c]
push eax
push ebx
lea eax, [ebp - 0x50]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov eax, dword [ebp - 8]
mov ecx, dword [0x4405478]
sub edi, eax
mov dword [ebp - 0x34], edi
cmp ecx, 0xc
jne 0x40157c
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x34]
nop
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x1c]
mov eax, edi
shr eax, cl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
xor edx, eax
mov dword [ebp - 4], edx
call fcn.00401400
mov edx, dword [ebp - 0x10]
add edx, 0x61c88647
mov dword [ebp - 0x10], edx
dec esi
je 0x4015e0
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
jmp 0x401475
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret