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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x490]
sub rsp, 0x590
mov rax, qword [0x140084010]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor r15d, r15d
mov dword [rsp + 0x38], r15d
movsd xmm0, qword [str.lIN]
movsd qword [rsp + 0x48], xmm0
movzx eax, word [0x140077920]
mov word [rsp + 0x50], ax
movzx eax, byte [0x140077922]
mov byte [rsp + 0x48], 0x55
xor byte [rsp + 0x49], 0x3a
xor byte [rsp + 0x4a], 0x3b
xor byte [rsp + 0x4b], 0x3c
xor byte [rsp + 0x4c], 0x3d
xor byte [rsp + 0x4d], 0x3e
xor byte [rsp + 0x4e], 0x3f
xor byte [rsp + 0x4f], 0x40
xor byte [rsp + 0x50], 0x41
xor byte [rsp + 0x51], 0x42
xor al, 0x43
mov byte [rsp + 0x52], al
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 1]
lea rcx, [rsp + 0x48]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r14, rax
test rax, rax
jne 0x14005441a
cmp byte [rsp + 0x52], al
jne 0x1400543ab
xor byte [rsp + 0x48], 0x39
xor byte [rsp + 0x49], 0x3a
xor byte [rsp + 0x4a], 0x3b
xor byte [rsp + 0x4b], 0x3c
xor byte [rsp + 0x4c], 0x3d
xor byte [rsp + 0x4d], 0x3e
xor byte [rsp + 0x4e], 0x3f
xor byte [rsp + 0x4f], 0x40
xor byte [rsp + 0x50], 0x41
xor byte [rsp + 0x51], 0x42
mov byte [rsp + 0x52], 0x43
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400543e5
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rbx]
jb 0x1400543e0
mov rdi, qword [rcx - 8]
sub rcx, rdi
add rdx, 0x27
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400547ff
mov rcx, rdi
call fcn.14006c06c
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.14006bdb0
mov rbx, qword [rsp + 0x5d0]
add rsp, 0x590
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
cmp byte [rsp + 0x52], 0
jne 0x140054458
xor byte [rsp + 0x48], 0x39
xor byte [rsp + 0x49], 0x3a
xor byte [rsp + 0x4a], 0x3b
xor byte [rsp + 0x4b], 0x3c
xor byte [rsp + 0x4c], 0x3d
xor byte [rsp + 0x4d], 0x3e
xor byte [rsp + 0x4e], 0x3f
xor byte [rsp + 0x4f], 0x40
xor byte [rsp + 0x50], 0x41
xor byte [rsp + 0x51], 0x42
mov byte [rsp + 0x52], 0x43
lea rdi, [rsp + 0x48]
xor eax, eax
mov ecx, 0xb
rep stosb byte [rdi], al
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rsi, rax
lea rdi, [rsp + 0x38]
mov ecx, 8
test rax, rax
jne 0x1400544a7
rep stosb byte [rdi], al
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1400543ab
xor eax, eax
rep stosb byte [rdi], al
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov qword [rsp + 0x68], r15
lea r9, [rsp + 0x38]
mov r8d, 0x400
lea rdx, [rbp + 0x80]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14005452b
nop dword [rax + rax]
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140054584
lea r9, [rbp + 0x80]
add r9, rax
lea r8, [rbp + 0x80]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x58]
call fcn.140065d30
lea r9, [rsp + 0x38]
mov r8d, 0x400
lea rdx, [rbp + 0x80]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1400544e0
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140054819
mov rdx, qword [rsp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054806
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140054806
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x58]
cmp rcx, qword [rsp + 0x60]
jne 0x1400545f0
test rcx, rcx
je 0x1400543ab
mov rdx, qword [rsp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400545d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400547f8
call fcn.14006c06c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
jmp 0x1400543ab
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov rdi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14005460f
mov rdi, qword [rbx]
lea rax, [0x140077ca8]
mov qword [rsp + 0x70], rax
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x38], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rsi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x78], rax
mov byte [rbp - 0xc], 0
mov byte [rbp - 0x17], 0
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 8], r15
mov rax, qword [0x1400880c0]
mov qword [rbp - 0x14], rax
mov qword [rbp - 0x20], r15
mov r8d, 0x22
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.14005bc60
test rax, rax
jne 0x1400546ec
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rsi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
cmp qword [rbp - 8], 0
je 0x140054779
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
sub r8, rdx
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x78]
call fcn.14005bbb0
test rax, rax
jne 0x140054759
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rdi, rbx
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140054772
mov rax, qword [rbx]
mov qword [rbx + 0x10], r15
mov byte [rax], 0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rsi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.14005ad20
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400543ab
mov rdx, qword [rsp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400545d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400545d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14006c06c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400543e5
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400543e0
add rdx, 0x27
mov rdi, qword [rcx - 8]
sub rcx, rdi
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x1400543dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3