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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x40a040]
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 - 0x424], edx
mov esi, ecx
push 0
push 0
push 0
push 1
push str.Loader
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x401bbf
push 0
push 0x80000000
push 0
push 0
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x401bfa
xorps xmm0, xmm0
mov dword [ebp - 0x414], 0
xor ebx, ebx
movq qword [ebp - 0x41c], xmm0
xor edi, edi
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x414], ebx
lea eax, [ebp - 0x420]
mov dword [ebp - 4], ebx
push eax
push 0x400
lea eax, [ebp - 0x410]
mov dword [ebp - 0x420], ebx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401b44
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
nop dword [eax]
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x401b3e
push eax
lea eax, [ebp - 0x410]
push eax
push ebx
lea ecx, [ebp - 0x41c]
call fcn.00402640
lea eax, [ebp - 0x420]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push esi
call edi
mov ebx, dword [ebp - 0x418]
test eax, eax
jne 0x401b00
mov edi, dword [ebp - 0x41c]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x428]
call esi
mov eax, dword [ebp - 0x424]
sub ebx, edi
push ebx
mov dword [eax], ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x401c1b
mov eax, dword [ebp - 0x424]
push dword [eax]
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test edi, edi
je 0x401bbb
mov ecx, dword [ebp - 0x414]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x401bb1
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401bb1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.004050cf
add esp, 8
mov eax, esi
jmp 0x401bde
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Fail_to_start_WinInet.
call fcn.00402200
push 0x402420
mov ecx, eax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor eax, eax
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.00404e1d
mov esp, ebp
pop ebp
ret
push str.Fail_to_open_URL
lea ecx, [ebp - 0x41c]
call fcn.00402d90
push 0x4088a8
lea eax, [ebp - 0x41c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.Fail_to_allocate_bytes_to_buffer.
lea ecx, [ebp - 0x434]
call fcn.00402d90
push 0x4088a8
lea eax, [ebp - 0x434]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3