Function at 0x18006afa0
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data
Reference http user-agent string
Send data

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x770]
sub rsp, 0x870
mov rax, qword [0x18029aa40]
xor rax, rsp
mov qword [rbp + 0x760], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
xor r15d, r15d
mov dword [rsp + 0x34], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 1]
lea rcx, str.Mozilla_5.0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
lea r12d, [r15 + 0xf]
mov qword [rdi + 0x18], r12
mov byte [rdi], r15b
mov dword [rsp + 0x34], 1
test rax, rax
je 0x18006b24a
cmp qword [rsi + 0x18], r12
jbe 0x18006b02f
mov rsi, qword [rsi]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x80001040
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rsi, rax
test rax, rax
je 0x18006b1e0
mov r8d, dword [rbx + 0x10]
cmp qword [rbx + 0x18], r12
jbe 0x18006b067
mov rbx, qword [rbx]
lea r9, [rbp - 0x74]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetWriteFile]
mov ebx, 0x7d0
lea r9, [rbp - 0x7c]
mov r8d, ebx
lea rdx, [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r8d, dword [rbp - 0x7c]
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.180001cf0
mov r8, rbx
xor edx, edx
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
cmp dword [rbp - 0x7c], r15d
jne 0x18006b07c
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [rbp - 0x80], r15d
mov dword [rbp - 0x78], 4
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x80]
mov edx, 0x20000013
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, 1
jne 0x18006b23f
mov edx, dword [rbp - 0x80]
cmp edx, 0xc8
je 0x18006b23f
lea rcx, [rsp + 0x60]
call fcn.18004f7c4
mov dword [rsp + 0x34], 3
mov r9d, ntohs
lea r8, str.HTTP_Error:
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.180002bf0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x48], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r12
mov byte [rax], r15b
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.180057580
mov ebx, 0x1000
mov rdx, qword [rsp + 0x50]
cmp rdx, r12
jbe 0x18006b190
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, rbx
jb 0x18006b18a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006b18a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800b3a88
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, r12
jbe 0x18006b1cb
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, rbx
jb 0x18006b1c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006b1c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800b3a88
mov rdx, rdi
cmp qword [rdi + 0x18], r12
jbe 0x18006b1d7
mov rdx, qword [rdi]
lea r8, str.HTTP_Error
jmp 0x18006b231
mov edx, reloc.WS2_32.dll_select
cmp qword [rdi + 0x18], rdx
jb 0x18006b20a
mov rbx, qword [rdi]
mov qword [rdi + 0x10], rdx
mov r8d, edx
lea rdx, str.Failed_to_open_URL
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x12], r15b
jmp 0x18006b21e
lea r9, str.Failed_to_open_URL
mov r8b, byte [rsp + 0x30]
mov rcx, rdi
call fcn.18004f440
mov rdx, rdi
cmp qword [rdi + 0x18], r12
jbe 0x18006b22a
mov rdx, qword [rdi]
lea r8, str.Error
mov r9d, reloc.WS2_32.dll_recv
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x18006b284
lea r9, str.Failed_to_open_Internet_connection
mov r8b, byte [rsp + 0x30]
mov edx, Ordinal_35
mov rcx, rdi
call fcn.18004f440
mov rdx, rdi
cmp qword [rdi + 0x18], r12
jbe 0x18006b26f
mov rdx, qword [rdi]
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.Error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rax, rdi
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.1800b3aa0
add rsp, 0x870
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret