Function at 0x14006ddc0
Capabilities:
Connect to http server
Create http request
Query remote server for available data
Read data from internet
Receive data
Reference http user-agent string
Send data
Send http request

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
cmp qword [rcx + 8], 0
je 0x14006de68
mov r12, rdx
cmp qword [rdx + 8], 0
je 0x14006de68
mov rdi, r9
mov rbx, r8
mov r15, rcx
mov dword [rsp + 0x20], 0
lea rcx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__rv:109.0__Gecko_20100101_Firefox_117.
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenA]
test rax, rax
je 0x14006de6f
mov rbp, rax
mov r13, qword [r15 + 8]
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rsi, [0x1400c67c0]
nop
mov ecx, dword [rsi + r14*4 + 0x10]
cmp ecx, eax
je 0x14006de95
mov ecx, dword [rsi + r14*4 + 0x14]
cmp ecx, eax
je 0x14006de86
mov ecx, dword [rsi + r14*4 + 0x18]
cmp ecx, eax
je 0x14006de8b
mov ecx, dword [rsi + r14*4 + 0x1c]
cmp ecx, eax
je 0x14006de91
add r14, 4
cmp r14, 0x80
jne 0x14006de30
mov eax, 0xffffffff
jmp 0x14006de98
xor edi, edi
jmp 0x14006e282
lea r8, str.InternetOpenA___failed.
xor edi, edi
xor ecx, ecx
xor edx, edx
call fcn.140007a90
jmp 0x14006e282
inc r14
jmp 0x14006de95
add r14, 2
jmp 0x14006de95
add r14, 3
mov eax, r14d
shl rax, 4
mov rcx, qword [rax + rsi + 0x218]
mov r14, qword [rax + rsi + 0x210]
add r14, rcx
add rcx, r13
inc rcx
mov qword [rax + rsi + 0x218], rcx
mov rdx, qword [r15]
mov r8, qword [r15 + 8]
mov rcx, r14
call fcn.140091e40
mov rax, qword [r15 + 8]
mov byte [rax + r14], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x800000
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
mov rcx, rbp
mov rdx, r14
mov r8w, 0x1bb
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetConnectA]
test rax, rax
je 0x14006df88
mov r15, rax
mov qword [rsp + 0x58], rbp
mov rbp, qword [r12]
mov r13, qword [r12 + 8]
cmp byte [rbp], 0x2f
mov qword [rsp + 0x50], rax
jne 0x14006df9f
inc r13
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rbp, qword [rsp + 0x58]
nop dword [rax]
mov ecx, dword [rsi + r14*4 + 0x10]
cmp ecx, eax
je 0x14006dffb
mov ecx, dword [rsi + r14*4 + 0x14]
cmp ecx, eax
je 0x14006dfec
mov ecx, dword [rsi + r14*4 + 0x18]
cmp ecx, eax
je 0x14006dff1
mov ecx, dword [rsi + r14*4 + 0x1c]
cmp ecx, eax
je 0x14006dff7
add r14, 4
cmp r14, 0x80
jne 0x14006df40
mov eax, 0xffffffff
jmp 0x14006dffe
lea r8, str.InternetConnectA___failed.
xor edi, edi
xor ecx, ecx
xor edx, edx
call fcn.140007a90
jmp 0x14006e279
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov ecx, dword [rsi + r14*4 + 0x10]
cmp ecx, eax
je 0x14006e045
mov ecx, dword [rsi + r14*4 + 0x14]
cmp ecx, eax
je 0x14006e036
mov ecx, dword [rsi + r14*4 + 0x18]
cmp ecx, eax
je 0x14006e03b
mov ecx, dword [rsi + r14*4 + 0x1c]
cmp ecx, eax
je 0x14006e041
add r14, 4
cmp r14, 0x80
jne 0x14006dfb0
mov eax, 0xffffffff
jmp 0x14006e048
inc r14
jmp 0x14006dffb
add r14, 2
jmp 0x14006dffb
add r14, 3
mov eax, r14d
shl rax, 4
mov rcx, qword [rax + rsi + 0x218]
mov r14, qword [rax + rsi + 0x210]
add r14, rcx
add r13, rcx
mov qword [rax + rsi + 0x218], r13
mov rdx, qword [r12]
mov r15, qword [r12 + 8]
mov rcx, r14
mov r8, r15
call fcn.140091e40
jmp 0x14006e08d
inc r14
jmp 0x14006e045
add r14, 2
jmp 0x14006e045
add r14, 3
mov eax, r14d
lea r15, [r13 + 1]
shl rax, 4
mov rcx, qword [rax + rsi + 0x210]
mov rdx, qword [rax + rsi + 0x218]
lea r14, [rcx + rdx]
lea r8, [rdx + r13]
inc r8
mov qword [rax + rsi + 0x218], r8
mov byte [rcx + rdx], 0x2f
add rcx, rdx
inc rcx
mov rdx, rbp
mov r8, r13
call fcn.140091e40
mov rbp, qword [rsp + 0x58]
mov qword [r12], r14
mov qword [r12 + 8], r15
vmovaps xmm0, xmmword [0x1400a90e0]
vmovaps xmmword [rsp + 0x60], xmm0
test r15, r15
je 0x14006e0b4
mov byte [r14 + r15], 0
mov r8, qword [r12]
jmp 0x14006e0b7
xor r8d, r8d
mov rsi, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x20], 0
lea rdx, [0x1400aedd7]
lea r9, str.HTTP_1.1
mov rcx, rsi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
test rax, rax
je 0x14006e241
mov r12, rax
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x14006e255
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x20], 0
mov rsi, qword [sym.imp.WININET.dll_InternetSetFilePointer]
lea r8, [rsp + 0x4c]
mov rcx, r12
xor edx, edx
mov r9d, 2
call rsi
mov ebp, eax
mov r13d, dword [rsp + 0x4c]
mov qword [rsp + 0x20], 0
mov rcx, r12
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call rsi
mov dword [rsp + 0x44], 0
lea rdx, [rsp + 0x44]
mov rcx, r12
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x14006e232
mov edx, dword [rsp + 0x44]
test edx, edx
je 0x14006e232
mov eax, ebp
shl r13, 0x20
or r13, rax
lea rbp, [rsp + 0x48]
mov rsi, qword [sym.imp.WININET.dll_InternetReadFile]
lea r14, [rsp + 0x44]
mov r15, qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
nop dword [rax]
mov rcx, rbx
call fcn.1400018f0
mov dword [rsp + 0x48], 0
mov r8d, dword [rsp + 0x44]
mov rcx, r12
mov rdx, rax
mov r9, rbp
call rsi
test eax, eax
je 0x14006e210
mov eax, dword [rsp + 0x48]
sub eax, dword [rsp + 0x44]
jae 0x14006e1f1
add dword [rbx + 0xc], eax
test rdi, rdi
je 0x14006e217
mov rcx, r13
mov rdx, qword [rsp + 0xe0]
call rdi
jmp 0x14006e217
mov eax, dword [rsp + 0x44]
sub dword [rbx + 0xc], eax
mov rcx, r12
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call r15
test eax, eax
je 0x14006e232
mov edx, dword [rsp + 0x44]
test edx, edx
jne 0x14006e1c0
mov dil, 1
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
jmp 0x14006e267
lea r8, str.HttpOpenRequestA___failed.
xor edi, edi
xor ecx, ecx
xor edx, edx
call fcn.140007a90
jmp 0x14006e270
lea r8, str.HttpSendRequestA___failed.
xor edi, edi
xor ecx, ecx
xor edx, edx
call fcn.140007a90
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret