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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x530
mov eax, dword [ecx]
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x41c2f0]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [0x41c2f4]
push edi
mov dword [ebp - 0x24], eax
call fcn.004013d2
mov ebx, dword [ebp - 0x10]
mov ecx, dword [0x41c2f8]
add ebx, 0x23f
mov eax, dword [0x41c2fc]
push 0x20
pop edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 0x14]
mov eax, edx
shl eax, 4
add eax, ecx
mov dword [ebp - 0xc], 0xedeb2e40
cmp dword [0x1ddbd00], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x1ddbcfc]
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp dword [0x1ddbd00], 0x3eb
mov dword [0x1ddbcfc], eax
mov eax, dword [0x1ddbc68]
cmove eax, dword [ebp - 0xc]
mov dword [0x1ddbc68], eax
lea eax, [ebx + edx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
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 [0x1ddbd00]
mov dword [0x1ddbcf8], 0xf4ea3dee
mov dword [ebp - 8], eax
cmp ecx, 0x213
jne 0x40157b
push 0
push str.vegiganivuvamokuguxuyedopa
push str.pitelofituledocisomupuliwacixofe
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
and dword [ebp - 0x54], 0
lea edi, [ebp - 0x50]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
xor edi, edi
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_LockFileEx]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetCommState]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea eax, [ebp - 0x530]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x30
lea eax, [ebp - 0x84]
mov dword [ebp - 0x88], edi
push edi
push eax
call fcn.004067d0
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
push edi
push str.Boxug_leb
call dword [sym.imp.KERNEL32.dll_CommConfigDialogW]
lea eax, [ebp - 0x38]
push eax
push edi
lea eax, [ebp - 0x9c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 8]
mov ecx, dword [0x1ddbd00]
mov edi, dword [ebp - 0x1c]
sub esi, eax
mov dword [ebp - 0x1c], esi
cmp ecx, 0xc
jne 0x40158d
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
nop
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x20]
mov eax, esi
shr eax, cl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0xc]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x2c]
add ebx, 0x61c88647
dec edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], edi
jne 0x40142f
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
pop edi
mov dword [ecx + 4], esi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret