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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100420db
mov eax, dword fs:[0]
push eax
mov eax, 0x10f0
call fcn.100418b0
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 0x1003b15e
cmp dword [esi + 0x14], 0xf
jbe 0x1003afbd
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 0x1003b17f
push 0xb0
lea eax, [ebp - 0x10dc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 8
lea ecx, [ebp - 0x10dc]
call fcn.1003f1e0
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 0x1003b05c
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x1003b05c
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 0x1003b022
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.1003f0f0
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.1003ab00
mov ecx, dword [ebp - 0x1018]
cmp ecx, 0xf
jbe 0x1003b0db
mov edx, dword [ebp - 0x102c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003b0d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1003b0d1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1004098b
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.1003f040
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.1004085b
mov esp, ebp
pop ebp
ret
push str.Failed_to_initialize_WinINet.
lea ecx, [ebp - 0x10f0]
call fcn.1003a820
push 0x1004aae8
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.1003a820
push 0x1004aae8
lea eax, [ebp - 0x10fc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3