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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4042c0
mov eax, dword fs:[0]
push eax
mov eax, 0x10d0
call fcn.00404270
mov eax, dword [0x408008]
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 edi, edx
mov esi, ecx
push 0
push 0
push 0
push 1
push str.Downloader
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebx, eax
test ebx, ebx
je 0x40132b
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x401292
mov ecx, dword [esi]
add eax, ecx
jmp 0x401296
add eax, esi
mov ecx, esi
push ecx
push eax
push ecx
lea ecx, [ebp - 0x10dc]
call fcn.00402b90
cmp dword [eax + 0x14], 8
jb 0x4012ac
mov eax, dword [eax]
push 0
push 0x80000000
push 0
push 0
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edx, dword [ebp - 0x10c8]
mov esi, eax
cmp edx, 8
jb 0x401303
mov ecx, dword [ebp - 0x10dc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4012f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4012f9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00403558
add esp, 8
xor eax, eax
mov dword [ebp - 0x10cc], 0
mov dword [ebp - 0x10c8], 7
mov word [ebp - 0x10dc], ax
test esi, esi
jne 0x401332
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x40144e
push 0xb0
lea eax, [ebp - 0x10c4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 0x10
jb 0x401350
mov edi, dword [edi]
sub esp, 0xc
lea ecx, [ebp - 0x10c4]
push edi
call fcn.00402810
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], 0
cmp dword [ebp - 0x1074], 0
jne 0x4013a9
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
xor bl, bl
jmp 0x401441
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 0x40140a
nop dword [eax]
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x40140a
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 0x4013d0
lea ecx, [ebp - 0x10c0]
call fcn.00402790
test eax, eax
jne 0x401433
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.00401470
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.0040351a
mov esp, ebp
pop ebp
ret