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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x944
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], 0x9e3779b9
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x34], edi
mov eax, dword [edi]
mov esi, dword [edi + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [0x41c2e8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41c2ec]
mov dword [ebp - 0x20], eax
call fcn.004013d2
mov eax, dword [0x41c2f4]
add dword [ebp - 0xc], 0x23f
mov edi, dword [str.o_Mn]
push 0x20
mov dword [ebp - 0x24], eax
pop ebx
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov eax, dword [ebp - 0x18]
shl eax, 4
add eax, edi
mov dword [ebp - 0x10], 0xedeb2e40
cmp dword [0x1a75280], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x1a7527c]
cmove eax, dword [ebp - 0x10]
and dword [ebp - 0x10], 0
cmp dword [0x1a75280], 0x3eb
mov dword [0x1a7527c], eax
mov eax, dword [0x1a751e8]
cmove eax, dword [ebp - 0x10]
mov dword [0x1a751e8], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x24]
xor eax, ecx
mov dword [ebp - 4], ecx
mov ecx, dword [0x1a75280]
mov dword [0x1a75278], 0xf4ea3dee
mov dword [ebp - 8], eax
cmp ecx, 0x213
jne 0x401574
push 0
push str.retimisoyimi
push str.heganikorayoxerigapubobufos
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea eax, [ebp - 0x940]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
and dword [ebp - 0x74], 0
lea eax, [ebp - 0x70]
push 0x30
push 0
push eax
call fcn.00407060
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push 0
push str.mozekuvapusugisasacogu_leb
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxA]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 8]
mov ecx, dword [0x1a75280]
sub esi, eax
mov dword [ebp - 0x30], esi
cmp ecx, 0xc
jne 0x401586
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
nop
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
mov eax, esi
shr eax, cl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
dec ebx
jne 0x40142d
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], esi
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret