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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40942c
mov eax, dword fs:[0]
push eax
mov eax, 0x10e8
call fcn.00409310
mov eax, dword [0x40f040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x10e0], edi
push 0
push 0
push 0
push 1
push str.User_Agent
mov dword [ebp - 0x10e0], edi
mov dword [ebp - 0x10e4], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x10e0], eax
test eax, eax
je 0x401c0b
cmp dword [esi + 0x14], 0xf
jbe 0x401914
mov esi, dword [esi]
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
jne 0x401943
push dword [ebp - 0x10e0]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push str.Failed_to_open_URL.
jmp 0x401c10
push 0xb0
lea eax, [ebp - 0x10dc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x10dc], 0x40b3cc
lea ecx, [ebp - 0x1074]
mov dword [ebp - 0x10cc], 0x40b320
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
lea eax, [ebp - 0x10c4]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x10dc]
mov dword [ebp - 0x10e4], 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char____]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10dc]
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 eax, dword [ebp - 0x10dc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x10e0], eax
lea ecx, [ebp - 0x10c4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_0], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x108c], 0
mov dword [ebp - 0x1088], 0
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 2
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401a5e
nop dword [eax]
mov eax, dword [ebp - 0x1014]
test eax, eax
je 0x401a5e
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 dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x401a20
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x10e0]
call esi
mov byte [ebp - 4], 3
xorps xmm0, xmm0
mov edx, dword [ebp - 0x1088]
mov eax, edx
and al, 0x22
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 0xf
mov dword [ebp - 0x10e4], 0xa
movq qword [ebp - 0x10f0], xmm0
mov dword [ebp - 0x10e8], 0
movups xmmword [ebp - 0x102c], xmm0
mov byte [ebp - 0x102c], 0
cmp al, 2
je 0x401ae7
mov eax, dword [ebp - 0x10a4]
mov ecx, dword [eax]
test ecx, ecx
je 0x401ae7
mov eax, dword [ebp - 0x10b4]
cmp ecx, dword [ebp - 0x108c]
cmovb ecx, dword [ebp - 0x108c]
mov edx, dword [eax]
sub ecx, edx
jmp 0x401b1a
test dl, 4
jne 0x401b0e
mov eax, dword [ebp - 0x10a8]
mov esi, dword [eax]
test esi, esi
je 0x401b0e
mov eax, dword [ebp - 0x10b8]
mov edx, dword [eax]
mov eax, dword [ebp - 0x1098]
mov ecx, dword [eax]
add ecx, esi
sub ecx, edx
jmp 0x401b1a
mov ecx, dword [ebp - 0x10ec]
mov edx, dword [ebp - 0x10f0]
test edx, edx
je 0x401b2b
push ecx
push edx
lea ecx, [ebp - 0x102c]
call fcn.00406620
mov dword [ebp - 4], 4
lea edx, [ebp - 0x102c]
xorps xmm0, xmm0
mov ecx, edi
movq qword [edi], xmm0
mov dword [edi + 8], 0
call fcn.004013f0
mov ecx, dword [ebp - 0x1018]
cmp ecx, 0xf
jbe 0x401b89
mov edx, dword [ebp - 0x102c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401b7f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401b7f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00408430
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.00405f00
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, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004082d8
mov esp, ebp
pop ebp
ret
push str.Failed_to_initialize_WinINet.
lea ecx, [ebp - 0x10f0]
call fcn.00401180
push 0x40c768
lea eax, [ebp - 0x10f0]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3