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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
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, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
xor r14d, r14d
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 1]
lea rcx, str.Mozilla_5.0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
lea r15d, [r14 + 0xf]
mov qword [rdi + 0x18], r15
mov byte [rdi], r14b
mov dword [rsp + 0x34], 1
test rax, rax
je 0x18006b535
cmp qword [rbx + 0x18], r15
jbe 0x18006b339
mov rbx, qword [rbx]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
je 0x18006b4cb
lea r9, [rbp - 0x7c]
mov r8d, 0x7d0
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r8d, dword [rbp - 0x7c]
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.180001cf0
xor edx, edx
mov r8d, 0x7d0
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
cmp dword [rbp - 0x7c], r14d
jne 0x18006b361
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [rbp - 0x80], r14d
mov dword [rbp - 0x78], 4
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x80]
mov edx, 0x20000013
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, 1
jne 0x18006b52a
mov edx, dword [rbp - 0x80]
cmp edx, 0xc8
je 0x18006b52a
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], r14
mov qword [rax + 0x18], r15
mov byte [rax], r14b
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.180057580
mov ebx, 0x1000
mov rdx, qword [rsp + 0x50]
cmp rdx, r15
jbe 0x18006b47b
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, rbx
jb 0x18006b475
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006b475
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, r15
jbe 0x18006b4b6
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, rbx
jb 0x18006b4b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006b4b1
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], r15
jbe 0x18006b4c2
mov rdx, qword [rdi]
lea r8, str.HTTP_Error
jmp 0x18006b51c
mov edx, reloc.WS2_32.dll_select
cmp qword [rdi + 0x18], rdx
jb 0x18006b4f5
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], r14b
jmp 0x18006b509
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], r15
jbe 0x18006b515
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, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x18006b56f
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], r15
jbe 0x18006b55a
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
mov rbx, qword [rsp + 0x8b0]
add rsp, 0x870
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret