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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov rbx, rdx
mov rsi, rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Mozilla_5.0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r12, rax
test rax, rax
je 0x14003c5c7
cmp qword [rbx + 0x18], 0xf
jbe 0x14003c597
mov rbx, qword [rbx]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r15, rax
test rax, rax
jne 0x14003c5e1
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], r13b
jmp 0x14003c831
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov rbx, r13
mov qword [rsp + 0x40], rbx
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x48], r14
mov byte [rsp + 0x30], bl
lea r9, [rbp + 0x810]
mov r8d, 0x800
lea rdx, [rbp - 0x40]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14003c6b0
mov eax, dword [rbp + 0x810]
test eax, eax
je 0x14003c6b0
mov edi, eax
mov rax, r14
sub rax, rbx
cmp rdi, rax
ja 0x14003c66d
lea rax, [rbx + rdi]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp r14, 0xf
cmova rax, qword [rsp + 0x30]
add rbx, rax
mov r8d, edi
lea rdx, [rbp - 0x40]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x14003c683
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x40]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140051fb0
lea r9, [rbp + 0x810]
mov r8d, 0x800
lea rdx, [rbp - 0x40]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14003c6b0
mov r14, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
jmp 0x14003c622
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov r15d, 2
mov qword [rsp + 0x60], r15
mov ebx, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x68], rbx
mov eax, 0xa0d
mov word [rsp + 0x50], ax
mov byte [rsp + 0x52], 0
movups xmmword [rsp + 0x78], xmm0
movdqa xmm1, xmmword [reloc.WS2_32.dll_bind]
movdqu xmmword [rbp - 0x78], xmm1
mov eax, 0x6e7c
mov word [rsp + 0x78], ax
mov byte [rsp + 0x7a], 0
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x68]
call fcn.140050d70
mov rdi, rax
mov qword [rbp + 0x818], rax
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, rax
call fcn.140050af0
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14003c789
lea r9, [rsp + 0x50]
cmp rbx, 0xf
cmova r9, qword [rsp + 0x50]
mov qword [rsp + 0x20], r15
mov r8d, 2
mov rdx, r14
mov rcx, rdi
call fcn.1400512e0
mov r15, qword [rsp + 0x60]
lea r8, [r15 + r14]
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.140050af0
mov r14, rax
mov rbx, qword [rsp + 0x68]
cmp rax, 0xffffffffffffffff
jne 0x14003c740
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r13
mov qword [rsi + 0x18], r13
movups xmm0, xmmword [rdi]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsi + 0x10], xmm1
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
cmp rbx, 0xf
jbe 0x14003c7f1
lea rdx, [rbx + 1]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c7eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003c7eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401200e8
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14003c831
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003c82c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003c82c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401200e8
mov rax, rsi
mov rbx, qword [rsp + 0x900]
add rsp, 0x8c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret