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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e5bc
mov eax, dword fs:[0]
push eax
sub esp, 0x5e4
mov eax, dword [0x46d040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5cc], 0
push str.https:__pastebin.com_raw_7i4CDmM3
lea ecx, [ebp - 0x444]
call fcn.0040f150
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 1
push str.WinINet
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x5c0], eax
cmp dword [ebp - 0x5c0], 0
je 0x406fec
lea ecx, [ebp - 0x444]
call fcn.0040e990
mov dword [ebp - 0x5d8], eax
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp - 0x5d8]
push eax
mov ecx, dword [ebp - 0x5c0]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x5c8], eax
cmp dword [ebp - 0x5c8], 0
je 0x406fa6
push 0xb0
push 0
lea edx, [ebp - 0x50c]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 1
lea ecx, [ebp - 0x50c]
call fcn.0040d860
mov byte [ebp - 4], 1
mov dword [ebp - 0x414], 0
lea eax, [ebp - 0x414]
push eax
push 0x400
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x5c8]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x406cff
cmp dword [ebp - 0x414], 0
jbe 0x406cff
lea eax, [ebp - 0x4fc]
mov dword [ebp - 0x5dc], eax
mov ecx, dword [ebp - 0x414]
xor edx, edx
push edx
push ecx
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x5dc]
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__]
nop
jmp 0x406ca6
mov ecx, dword [ebp - 0x5c8]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x5c0]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [ebp - 0x4f4]
mov dword [ebp - 0x5e0], eax
lea ecx, [ebp - 0x45c]
push ecx
mov ecx, dword [ebp - 0x5e0]
call fcn.0040ff00
mov edx, dword [ebp - 0x5cc]
or edx, 2
mov dword [ebp - 0x5cc], edx
mov byte [ebp - 4], 2
push 0xa8
push 0
lea eax, [ebp - 0x5b4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 1
push 1
lea ecx, [ebp - 0x45c]
push ecx
lea ecx, [ebp - 0x5b4]
call fcn.0040e700
mov byte [ebp - 4], 4
lea edx, [ebp - 0x42c]
mov dword [ebp - 0x5e4], edx
movzx eax, byte [ebp - 0x5c1]
push eax
mov ecx, dword [ebp - 0x5e4]
call fcn.004138f0
lea ecx, [ebp - 0x42c]
call fcn.00410eb0
nop
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x5b4]
push edx
call fcn.00412580
add esp, 8
mov dword [ebp - 0x5d0], eax
mov eax, dword [ebp - 0x5d0]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x5d0]
add edx, dword [ecx + 4]
mov ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::ios_base::operator_bool_void_const]
movzx eax, al
test eax, eax
je 0x406f27
push 0
push str.__t_r_n
lea ecx, [ebp - 0x42c]
call fcn.0040ec90
mov dword [ebp - 0x5ec], eax
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x5e8], ecx
mov edx, dword [ebp - 0x5e8]
cmp dword [edx + 0x10], 0
jae 0x406e1f
call fcn.00411590
nop
mov eax, dword [ebp - 0x5ec]
push eax
push 0
lea ecx, [ebp - 0x42c]
call fcn.00410900
nop
push 0xffffffffffffffff
push str.__t_r_n
lea ecx, [ebp - 0x42c]
call fcn.0040ebd0
add eax, 1
mov dword [ebp - 0x5d4], eax
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x5f0], ecx
mov edx, dword [ebp - 0x5f0]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp - 0x5d4]
jae 0x406e72
call fcn.00411590
nop
mov ecx, dword [ebp - 0x5d4]
push ecx
lea ecx, [ebp - 0x42c]
call fcn.00410690
nop
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x42c]
call fcn.00414b40
mov byte [ebp - 0x5b5], al
movzx eax, byte [ebp - 0x5b5]
test eax, eax
je 0x406f22
mov byte [ebp - 0x5b6], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x42c]
call fcn.004105a0
nop
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x554]
call fcn.0040e690
lea ecx, [ebp - 0x554]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
nop
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x45c]
call fcn.004105a0
nop
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a4]
call fcn.0040d7f0
lea ecx, [ebp - 0x4a4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.004105a0
nop
mov al, byte [ebp - 0x5b6]
jmp 0x407036
jmp 0x406da9
mov byte [ebp - 0x5b7], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x42c]
call fcn.004105a0
nop
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x554]
call fcn.0040e690
lea ecx, [ebp - 0x554]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
nop
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x45c]
call fcn.004105a0
nop
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a4]
call fcn.0040d7f0
lea ecx, [ebp - 0x4a4]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.004105a0
nop
mov al, byte [ebp - 0x5b7]
jmp 0x407036
push 0x10
push str.Error
push str.Failed_to_open_URL_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0x5c0]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov byte [ebp - 0x5b8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.004105a0
nop
mov al, byte [ebp - 0x5b8]
jmp 0x407036
push 0x10
push str.Error
push str.Failed_to_initialize_WinINet_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
nop
mov byte [ebp - 0x5b9], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x444]
call fcn.004105a0
nop
mov al, byte [ebp - 0x5b9]
jmp 0x407036
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045caa8
mov esp, ebp
pop ebp
ret