Function at 0x401220
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403e4b
mov eax, dword fs:[0]
push eax
mov eax, 0x10e0
call fcn.00403df0
mov eax, dword [0x407008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10e8], edx
mov ebx, ecx
push 0
push 0
push 0
push 1
push str.Downloader
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x10e4], eax
test eax, eax
je 0x4013ea
cmp dword [ebx + 0x14], 0x10
mov edi, dword [ebx + 0x10]
jb 0x40128a
mov esi, dword [ebx]
add edi, esi
jmp 0x40128e
add edi, ebx
mov esi, ebx
mov eax, edi
mov dword [ebp - 0x10e0], 0
mov edx, 7
xor ecx, ecx
sub eax, esi
mov dword [ebp - 0x10d0], ecx
mov dword [ebp - 0x10cc], edx
cmp eax, edx
jbe 0x4012d9
mov byte [ebp - 0x10c8], cl
lea ecx, [ebp - 0x10e0]
push dword [ebp - 0x10c8]
push eax
call fcn.00402e70
mov edx, dword [ebp - 0x10cc]
xor ecx, ecx
mov dword [ebp - 0x10d0], ecx
lea eax, [ebp - 0x10e0]
mov dword [ebp - 0x10ec], eax
mov dword [ebp - 4], 0
cmp esi, edi
je 0x40134e
movsx ax, byte [esi]
movzx ebx, ax
cmp ecx, edx
jae 0x401321
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x10d0], eax
lea eax, [ebp - 0x10e0]
cmovae eax, dword [ebp - 0x10e0]
xor edx, edx
mov word [eax + ecx*2], bx
mov word [eax + ecx*2 + 2], dx
jmp 0x40133b
push ebx
mov byte [ebp - 0x10c8], 0
push dword [ebp - 0x10c8]
push ecx
lea ecx, [ebp - 0x10e0]
call fcn.00402bc0
mov edx, dword [ebp - 0x10cc]
inc esi
cmp esi, edi
je 0x40134e
mov ecx, dword [ebp - 0x10d0]
jmp 0x4012f0
mov ebx, dword [ebp - 0x10e4]
lea eax, [ebp - 0x10e0]
push 0
push 0x80000000
push 0
cmp edx, 8
mov dword [ebp - 4], 0xffffffff
push 0
cmovae eax, dword [ebp - 0x10e0]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edx, dword [ebp - 0x10cc]
mov esi, eax
cmp edx, 8
jb 0x4013c2
mov ecx, dword [ebp - 0x10e0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4013b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4013b8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004030d8
add esp, 8
xor eax, eax
mov dword [ebp - 0x10d0], 0
mov dword [ebp - 0x10cc], 7
mov word [ebp - 0x10e0], ax
test esi, esi
jne 0x4013f1
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x40150e
push 0xb0
lea eax, [ebp - 0x10c4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x10e8]
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x401415
mov eax, dword [eax]
sub esp, 0xc
lea ecx, [ebp - 0x10c4]
push eax
call fcn.004024e0
mov eax, dword [ebp - 0x10c4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x10c4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x10c8], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x1074], 0
jne 0x40146e
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
xor bl, bl
jmp 0x401501
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call edi
test eax, eax
je 0x4014ca
nop
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x4014ca
push 0
push eax
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x10c4]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call edi
test eax, eax
jne 0x401490
lea ecx, [ebp - 0x10c0]
call fcn.00402460
test eax, eax
jne 0x4014f3
push eax
mov eax, dword [ebp - 0x10c4]
lea ecx, [ebp - 0x10c4]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
mov bl, 1
lea ecx, [ebp - 0x10c4]
call fcn.00401530
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040309a
mov esp, ebp
pop ebp
ret