Function at 0x140053720
Capabilities:
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 r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7e0]
sub rsp, 0x8e0
mov rax, qword [0x14013d080]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov rbx, rdx
mov qword [rbp - 0x78], rdx
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x30], rdx
mov dword [rbp - 0x28], 1
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 1]
lea rcx, str.Mozilla_5.0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov edi, r13d
mov qword [rbp - 0x10], r13
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 8], r14
mov byte [rbp - 0x20], dil
test rax, rax
je 0x140053a17
mov rdx, rbx
cmp qword [rbx + 0x18], r14
jbe 0x1400537bd
mov rdx, qword [rbx]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r15, rax
test rax, rax
je 0x140053a17
movzx ebx, byte [rsp + 0x30]
nop word [rax + rax]
lea r9, [rbp - 0x28]
mov r8d, 0x7d0
lea rdx, [rbp]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
mov esi, dword [rbp - 0x28]
mov rax, r14
sub rax, rdi
cmp rsi, rax
ja 0x140053842
lea rax, [rdi + rsi]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x20]
cmp r14, 0xf
cmova rax, qword [rbp - 0x20]
add rdi, rax
mov r8d, esi
lea rdx, [rbp]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rsi], 0
jmp 0x14005385b
mov qword [rsp + 0x20], rsi
lea r9, [rbp]
movzx r8d, bl
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.140006720
xor edx, edx
mov r8d, 0x7d0
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
cmp dword [rbp - 0x28], 0
je 0x14005387f
mov r14, qword [rbp - 8]
mov rdi, qword [rbp - 0x10]
jmp 0x1400537f0
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov r8d, 2
lea rdx, [0x14011f93c]
lea rcx, [rsp + 0x38]
call fcn.1400022c0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov r8d, 2
lea rdx, [0x14011f940]
lea rcx, [rsp + 0x58]
call fcn.1400022c0
nop
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x70]
call fcn.140005530
mov r14, rax
mov qword [rsp + 0x78], rax
mov rbx, r13
mov rdi, qword [rsp + 0x68]
lea rsi, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rsi, qword [rsp + 0x58]
mov rax, qword [r14 + 0x10]
mov r13, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x140053924
mov r13, qword [r14]
cmp rdi, rax
ja 0x14005398f
sub rax, rdi
cmp rbx, rax
ja 0x14005398f
test rdi, rdi
je 0x1400539de
lea r15, [rax + r13]
lea rcx, [rbx + r13]
movsx r12d, byte [rsi]
lea r8, [r15 + 1]
sub r8, rcx
mov edx, r12d
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14005398f
nop dword [rax]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400539db
inc rbx
lea r8, [r15 + 1]
sub r8, rbx
mov edx, r12d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140053960
xorps xmm0, xmm0
mov rbx, qword [rbp - 0x80]
movups xmmword [rbx], xmm0
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
movups xmm0, xmmword [r14]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r14], al
mov rcx, r14
call fcn.140005900
nop
lea rcx, [rsp + 0x58]
call fcn.140005900
nop
jmp 0x140053b6a
sub rbx, r13
cmp rbx, 0xffffffffffffffff
je 0x14005398f
lea r9, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova r9, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.140005230
add rbx, qword [rsp + 0x48]
jmp 0x140053902
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov r8d, 2
lea rdx, [0x14011f93c]
lea rcx, [rsp + 0x38]
call fcn.1400022c0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov r8d, 2
lea rdx, [0x14011f940]
lea rcx, [rsp + 0x58]
call fcn.1400022c0
nop
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x50]
call fcn.140005530
mov r14, rax
mov qword [rsp + 0x78], rax
mov rbx, r13
mov rdi, qword [rsp + 0x68]
lea rsi, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rsi, qword [rsp + 0x58]
mov rax, qword [r14 + 0x10]
mov r13, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x140053ab3
mov r13, qword [r14]
cmp rdi, rax
ja 0x140053b23
sub rax, rdi
cmp rbx, rax
ja 0x140053b23
test rdi, rdi
je 0x140053bb8
lea r15, [rax + r13]
lea rcx, [rbx + r13]
movsx r12d, byte [rsi]
lea r8, [r15 + 1]
sub r8, rcx
mov edx, r12d
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x140053b23
nop dword [rax]
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140053bb5
inc rbx
lea r8, [r15 + 1]
sub r8, rbx
mov edx, r12d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140053af0
xorps xmm0, xmm0
mov rbx, qword [rbp - 0x80]
movups xmmword [rbx], xmm0
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
movups xmm0, xmmword [r14]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r14], al
mov rcx, r14
call fcn.140005900
nop
lea rcx, [rsp + 0x58]
call fcn.140005900
nop
lea rcx, [rsp + 0x38]
call fcn.140005900
nop
lea rcx, [rbp - 0x20]
call fcn.140005900
nop
mov rcx, qword [rbp - 0x78]
call fcn.140005900
mov rax, rbx
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1400fa9f0
mov rbx, qword [rsp + 0x930]
add rsp, 0x8e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
sub rbx, r13
cmp rbx, 0xffffffffffffffff
je 0x140053b23
lea r9, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova r9, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.140005230
add rbx, qword [rsp + 0x48]
jmp 0x140053a91