Function at 0x402fa8
Capabilities:
Get common file path
Get disk size
Get file attributes
Get memory capacity
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
xor esi, esi
xor edi, edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, 0xfa62c8f
jge 0x402fe9
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidthFloatA]
push esi
call dword [sym.imp.GDI32.dll_GetBkMode]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidth32W]
cmp edi, 0x207142
jg 0x402ffa
inc edi
cmp edi, 0x67d12
jl 0x402fbe
cmp dword [0x244ecec], 0x93
jne 0x4030a4
push esi
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edi, dword [sym.imp.GDI32.dll_CreateDCA]
push esi
push esi
push esi
push esi
call edi
push esi
push esi
lea eax, [ebp - 0x41c]
push eax
push esi
push esi
call dword [sym.imp.USER32.dll_GetMenuStringA]
push esi
push esi
call dword [sym.imp.USER32.dll_LoadMenuA]
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_InsertMenuItemW]
push esi
lea eax, [ebp - 0xc1c]
push eax
push esi
push 0x402a58
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push esi
push esi
push esi
push esi
call edi
xor eax, eax
lock bts dword [eax], 0
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
call dword [sym.imp.GDI32.dll_GetTextCharset]
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push esi
call fcn.00403b98
push esi
push esi
call fcn.00403bc7
push esi
call fcn.00403c7f
add esp, 0x10
push esi
call fcn.00403f11
add dword [0x244ecec], 0x1134b
push dword [0x244ecec]
mov eax, dword [0x4396dc]
push esi
mov dword [0x244fb28], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x244e778], eax
call fcn.00402f2e
mov edi, 0x1692e
push esi
push esi
call dword [sym.imp.USER32.dll_LoadMenuA]
push esi
call dword [sym.imp.USER32.dll_CharUpperA]
call ebx
dec edi
jne 0x4030d4
cmp dword [0x244ecec], esi
jbe 0x40315d
mov eax, dword [0x244fb28]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x244e778]
mov byte [ecx + edi], al
cmp dword [0x244ecec], 0x490
jne 0x403154
push esi
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.MSIMG32.dll_GradientFill]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
inc edi
cmp edi, dword [0x244ecec]
jb 0x4030f0
xor edi, edi
mov eax, dword [0x244ecec]
add eax, edi
cmp eax, 0x8d
jne 0x40319f
push esi
lea eax, [ebp - 0xc1c]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
push 0x402a88
push 0x402ad0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenEventW]
inc edi
cmp edi, 0x38681
jl 0x40315f
call fcn.00402e4b
xor edi, edi
call ebx
cmp edi, 0x61
jne 0x4031c9
mov dword [ebp - 4], esi
add dword [ebp - 4], 0x46ee
mov eax, dword [ebp - 4]
add dword [0x244e778], eax
inc edi
cmp edi, 0x674bd
jl 0x4031af
push 0x7b
pop edi
cmp dword [0x244ecec], 0x86
jne 0x403232
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
lea eax, [ebp - 0x41c]
push eax
push 0x402af0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push esi
lea eax, [ebp - 0xc1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x244ecec], 0xf
jne 0x403246
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
dec edi
jne 0x4031d5
push 0x402b08
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call dword [0x244e778]
pop edi
pop esi
pop ebx
leave
ret