Function at 0x18004a840
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7a0]
sub rsp, 0x8a0
xor edi, edi
lea rcx, str.Mozilla_5.0
mov r15, rdx
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 1]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, edi
xorps xmm0, xmm0
mov qword [rbp - 0x80], rbx
mov esi, 0xf
mov qword [rbp - 0x78], rsi
mov r12, rax
movups xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x70], bl
test rax, rax
je 0x18004abc2
cmp qword [r15 + 0x18], 0x10
mov rdx, r15
jb 0x18004a8b7
mov rdx, qword [r15]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], edi
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r14, rax
test rax, rax
je 0x18004abc2
nop dword [rax + rax]
lea r9, [rbp + 0x7f0]
mov r8d, 0x7d0
lea rdx, [rbp - 0x30]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov edi, dword [rbp + 0x7f0]
mov rax, rsi
sub rax, rbx
cmp rdi, rax
ja 0x18004a93a
lea rax, [rbx + rdi]
cmp rsi, 0x10
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x30]
lea rax, [rsp + 0x70]
mov r8d, edi
cmovae rax, qword [rsp + 0x70]
add rbx, rax
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x18004a950
lea r9, [rbp - 0x30]
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.18004ed20
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x7d0
call sub.VCRUNTIME140.dll_memset
cmp dword [rbp + 0x7f0], 0
je 0x18004a977
mov rsi, qword [rbp - 0x78]
mov rbx, qword [rbp - 0x80]
jmp 0x18004a8e0
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
cmp qword [rbp - 0x78], 0x10
lea r13, [rsp + 0x70]
mov r12, qword [rsp + 0x70]
xorps xmm0, xmm0
mov r14d, 0x6e7c
mov edi, 2
movups xmmword [rbp - 0x50], xmm0
mov esi, 0xf
mov word [rbp - 0x50], r14w
mov r14, qword [rbp - 0x80]
movabs rbx, 0x7fffffffffffffff
movups xmmword [rsp + 0x30], xmm0
mov eax, 0xa0d
mov qword [rsp + 0x40], rdi
cmovae r13, r12
mov qword [rsp + 0x48], rsi
mov word [rsp + 0x30], ax
mov byte [rsp + 0x32], 0
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rsi
mov byte [rbp - 0x4e], 0
movups xmmword [rsp + 0x50], xmm0
cmp r14, rbx
ja 0x18004ada5
cmp r14, 0x10
jae 0x18004aa1a
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], rsi
movups xmm0, xmmword [r13]
movups xmmword [rsp + 0x50], xmm0
jmp 0x18004aa5b
mov rax, r14
or rax, rsi
cmp rax, rbx
ja 0x18004aa34
mov ecx, 0x16
mov rbx, rax
cmp rax, rcx
cmovb rbx, rcx
lea rdx, [rbx + 1]
call fcn.18004d700
lea r8, [r14 + 1]
mov qword [rsp + 0x50], rax
mov rdx, r13
mov qword [rsp + 0x60], r14
mov rcx, rax
mov qword [rsp + 0x68], rbx
call sub.VCRUNTIME140.dll_memcpy
xor r14d, r14d
mov ebx, r14d
nop dword [rax]
nop word [rax + rax]
cmp qword [rsp + 0x68], 0x10
lea rcx, [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
lea r9, [rbp - 0x50]
cmovae rcx, qword [rsp + 0x50]
mov r8, rbx
mov qword [rsp + 0x20], 2
call fcn.18004eb00
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18004aada
cmp rsi, 0x10
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x30]
mov r8d, 2
cmovae r9, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.18004d3f0
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rbx, rdi
jmp 0x18004aa70
mov rbx, qword [rbp + 0x7e0]
movups xmm1, xmmword [rsp + 0x60]
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], 0xf
movups xmm0, xmmword [rsp + 0x50]
mov byte [rsp + 0x50], r14b
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
cmp rsi, 0x10
jb 0x18004ab41
mov rcx, qword [rsp + 0x30]
lea rdx, [rsi + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ab3c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004ab3c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800fbf00
mov rax, qword [rbp - 0x78]
cmp rax, 0x10
jb 0x18004ab79
lea rdx, [rax + 1]
mov rax, r12
cmp rdx, 0x1000
jb 0x18004ab71
mov r12, qword [r12 - 8]
add rdx, 0x27
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004abbb
mov rcx, r12
call fcn.1800fbf00
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x18004abaf
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x18004abaa
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18004abbb
mov rcx, r8
call fcn.1800fbf00
mov qword [r15 + 0x10], r14
mov byte [r15], r14b
jmp 0x18004ad78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
mov qword [rsp + 0x48], rsi
movups xmmword [rsp + 0x30], xmm0
mov eax, 0xa0d
mov r12d, 2
movups xmm0, xmmword [rsp + 0x70]
mov word [rsp + 0x30], ax
mov rdx, rsi
mov rax, rdi
mov qword [rsp + 0x40], r12
movups xmmword [rbp - 0x70], xmm0
mov r13, rsi
mov byte [rsp + 0x32], bl
mov r14d, 0x6e7c
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
mov rcx, rdi
nop dword [rax]
nop dword [rax + rax]
cmp rdx, 0x10
lea rsi, [rbp - 0x70]
cmovae rsi, qword [rbp - 0x70]
cmp rax, 2
jb 0x18004ac89
add rax, 0xfffffffffffffffe
cmp rcx, rax
ja 0x18004ac89
lea rdi, [rsi + rax]
add rcx, rsi
lea r8, [rdi + 1]
mov edx, 0x7c
sub r8, rcx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x18004ac89
nop dword [rax]
cmp word [rbx], r14w
je 0x18004acec
inc rbx
lea r8, [rdi + 1]
sub r8, rbx
mov rcx, rbx
mov edx, 0x7c
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x18004ac60
movups xmm1, xmmword [rbp - 0x60]
mov rbx, qword [rbp + 0x7e0]
xor edi, edi
mov qword [rbp - 0x60], rdi
mov qword [rbp - 0x58], 0xf
movups xmm0, xmmword [rbp - 0x70]
mov byte [rbp - 0x70], dil
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
cmp r13, 0x10
jb 0x18004ad3b
mov rcx, qword [rsp + 0x30]
lea rdx, [r13 + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004ad36
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004ad36
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
je 0x18004ac89
cmp r13, 0x10
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
mov r8d, 2
cmovae r9, qword [rsp + 0x30]
lea rcx, [rbp - 0x70]
mov rdx, rbx
call fcn.18004d3f0
mov r12, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov rdx, qword [rbp - 0x58]
mov rax, qword [rbp - 0x60]
lea rcx, [rbx + r12]
jmp 0x18004ac20
call fcn.1800fbf00
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x18004ad71
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x18004ad6c
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18004ad9e
mov rcx, r8
call fcn.1800fbf00
mov qword [r15 + 0x10], rdi
mov byte [r15], dil
mov rax, rbx
mov qword [r15 + 0x18], 0xf
mov rbx, qword [rsp + 0x8e8]
add rsp, 0x8a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000bbf0
int3