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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100424fb
mov eax, dword fs:[0]
push eax
mov eax, 0x10f0
call fcn.10041cd0
mov eax, dword [0x1004d040]
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 esi, edx
mov eax, ecx
mov dword [ebp - 0x10e0], eax
mov dword [ebp - 0x1014], eax
push 0
push 0
push 0
push 1
push str.User_Agent
mov dword [ebp - 0x1014], eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
je 0x1003b1ce
cmp dword [esi + 0x14], 0xf
jbe 0x1003b02d
mov esi, dword [esi]
push 0
push 0x80000000
push 0
push 0
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x1003b1ef
push 0xb0
lea eax, [ebp - 0x10dc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 8
lea ecx, [ebp - 0x10dc]
call fcn.1003ee10
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call ebx
test eax, eax
je 0x1003b0cc
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x1003b0cc
push 0
push eax
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x10cc]
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 ebx
test eax, eax
jne 0x1003b092
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
lea eax, [ebp - 0x102c]
push eax
lea ecx, [ebp - 0x10dc]
call fcn.1003ed20
mov esi, dword [ebp - 0x10e0]
lea edx, [ebp - 0x102c]
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov ecx, esi
movq qword [esi], xmm0
mov dword [esi + 8], 0
call fcn.1003ab70
mov ecx, dword [ebp - 0x1018]
cmp ecx, 0xf
jbe 0x1003b14b
mov edx, dword [ebp - 0x102c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003b141
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003b141
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10040dab
add esp, 8
mov eax, dword [ebp - 0x10dc]
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 0xf
mov byte [ebp - 0x102c], 0
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov ecx, dword [ebp - 0x10dc]
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x68]
mov dword [ebp + edx - 0x10e0], ecx
lea ecx, [ebp - 0x10c4]
call fcn.1003f4c0
lea ecx, [ebp - 0x10bc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x1074]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, esi
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.10040c7b
mov esp, ebp
pop ebp
ret
push str.Failed_to_initialize_WinINet.
lea ecx, [ebp - 0x10f0]
call fcn.1003a740
push 0x1004b170
lea eax, [ebp - 0x10f0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push str.Failed_to_open_URL.
lea ecx, [ebp - 0x10fc]
call fcn.1003a740
push 0x1004b170
lea eax, [ebp - 0x10fc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3