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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ae60
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x430
mov eax, dword [0x40f00c]
xor eax, ebp
mov dword [ebp - 0x14], 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 - 0x440], edi
mov dword [ebp - 0x438], edi
push 0
push 0
push 0
push 1
push str.HTTPGET
mov dword [ebp - 0x438], edi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x438], eax
test eax, eax
jne 0x406382
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_initializing_WinINet.
call fcn.004085b0
push 0x4087e0
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_____]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov ecx, edi
push 0
mov dword [edi + 0x14], 0xf
push 0x40c3d0
mov byte [edi], 0
mov dword [ebp - 4], 0xffffffff
call fcn.00405b80
jmp 0x40650c
cmp dword [esi + 0x14], 0x10
jb 0x40638a
mov esi, dword [esi]
push 0
push 0x80000000
push 0
push 0
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x43c], eax
test eax, eax
jne 0x4063db
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_opening_URL.
call fcn.004085b0
push 0x4087e0
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_____]
push dword [ebp - 0x438]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi], 0
jmp 0x406357
mov dword [ebp - 0x434], 0
xor esi, esi
mov dword [ebp - 0x420], 0xf
mov dword [ebp - 0x424], esi
mov byte [ebp - 0x434], 0
lea ecx, [ebp - 0x41c]
mov dword [ebp - 4], 3
push ecx
push 0x400
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x41c], esi
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4064cb
nop dword [eax]
mov edi, dword [ebp - 0x41c]
test edi, edi
je 0x4064c5
mov ecx, dword [ebp - 0x420]
mov eax, ecx
sub eax, esi
push edi
cmp edi, eax
ja 0x40647e
lea eax, [edi + esi]
cmp ecx, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x434]
cmovae eax, dword [ebp - 0x434]
add esi, eax
lea eax, [ebp - 0x418]
push eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x406497
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x440]
lea ecx, [ebp - 0x434]
push edi
call fcn.00408a70
lea eax, [ebp - 0x41c]
push eax
push 0x400
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x43c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4064c5
mov esi, dword [ebp - 0x424]
jmp 0x406430
mov edi, dword [ebp - 0x440]
push dword [ebp - 0x43c]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x438]
call esi
movups xmm0, xmmword [ebp - 0x434]
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x424]
movq qword [edi + 0x10], xmm0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00409c21
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret