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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
cmp dword [0x1ddb870], 0x594
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x24], esi
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 0x18], edi
jne 0x401436
push 0
lea eax, [ebp - 0x84c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x41b310]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
mov dword [ebp - 0x30], eax
mov eax, dword [0x41b314]
mov dword [ebp - 0x2c], eax
call fcn.004013f9
mov edx, dword [ebp - 4]
mov ecx, dword [0x41b318]
add edx, 0x23f
mov eax, dword [0x41b31c]
push 0x20
mov dword [ebp - 4], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], eax
pop esi
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov eax, edi
mov dword [ebp - 0x10], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x1ddb870], 0xfa9
mov dword [ebp - 0xc], eax
mov eax, dword [0x1ddb86c]
cmove eax, dword [ebp - 0x10]
and dword [ebp - 0x10], 0
cmp dword [0x1ddb870], 0x3eb
mov dword [0x1ddb86c], eax
mov eax, dword [0x1ddb260]
cmove eax, dword [ebp - 0x10]
mov dword [0x1ddb260], eax
lea eax, [edx + edi]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
xor ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
xor eax, ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x1ddb870]
mov dword [0x1ddb868], 0xf4ea3dee
mov dword [ebp - 8], eax
cmp ecx, 0x213
jne 0x40157b
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov eax, dword [ebp - 8]
mov ecx, dword [0x1ddb870]
mov edx, dword [ebp - 4]
sub ebx, eax
mov dword [ebp - 0x18], ebx
cmp ecx, 0xc
jne 0x401590
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, dword [ebp - 4]
mov eax, ebx
shl eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 0xc], eax
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
nop
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
mov eax, ebx
shr eax, cl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add edx, 0x61c88647
xor eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor ecx, eax
mov dword [ebp - 4], edx
sub edi, ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], edi
dec esi
jne 0x401472
mov esi, dword [ebp - 0x24]
mov dword [esi], edi
pop edi
mov dword [esi + 4], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret