Function at 0x140006530
Capabilities:
Initialize winhttp library
Prepare http request
Reference http user-agent string

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140086048]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rbx, rdx
mov r15, rcx
mov qword [rbp - 0x40], rdx
xor r13d, r13d
mov edi, r13d
mov r14d, r13d
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x7c], xmm0
mov qword [rbp - 0x6c], r13
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rbp + 0x48], xmm1
mov qword [rbp + 0x58], rax
xorps xmm6, xmm6
mov qword [rsp + 0x78], rax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
lea rcx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_120.0.0.0_Safari_537.36_Edg_120.0.0.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rsi, rax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140001a80
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140003c00
nop
lea rdx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 8]
add r8, rdx
lea rdx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rdx, qword [rbp - 0x18]
lea rcx, [rbp + 0x28]
call fcn.1400095e0
nop
test rsi, rsi
je 0x14000662d
lea rdx, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
cmovae rdx, qword [rbp + 0x28]
lea r8d, [r13 + 0x50]
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rdi, rax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140001a80
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.140003d90
nop
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rdx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x28]
add r8, rdx
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rdx, qword [rbp - 0x38]
lea rcx, [rbp + 8]
call fcn.1400095e0
nop
test rdi, rdi
je 0x1400066ac
lea r8, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae r8, qword [rbp + 8]
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea rdx, [0x140079e90]
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
lea rcx, [rbp - 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
cmp eax, 1
jne 0x1400066df
cmp qword [rbp - 0x58], 0
je 0x1400066df
lea rcx, str.Succeeded_reading_the_WinHttpGetIEProxyConfigForCurrentUser._n
call fcn.140002870
mov dword [rbp - 0x80], 2
mov rax, qword [rbp - 0x58]
mov qword [rbp - 0x78], rax
jmp 0x1400066f9
lea rcx, str.Failed_reading_the_WinHttpGetIEProxyConfigForCurrentUser._nFalling_back_to_WPAD._n
call fcn.140002870
mov dword [rbp - 0x80], 1
mov dword [rbp - 0x7c], 3
mov dword [rbp - 0x64], 1
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140006713
add r8, qword [rbx]
mov rdx, qword [rbx]
jmp 0x140006719
add r8, rbx
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400095e0
cmp qword [rax + 0x18], 8
jb 0x14000672d
mov rax, qword [rax]
lea r9, [rbp + 0x48]
lea r8, [rbp - 0x80]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
mov r12d, eax
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140006786
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006781
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006afd
call fcn.140026934
test r12d, r12d
je 0x140006986
test r14, r14
je 0x14000679d
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test rdi, rdi
je 0x1400067ab
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test rsi, rsi
je 0x1400067b9
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
movups xmm0, xmmword [rbp + 0x48]
movups xmmword [r15], xmm0
movsd xmm1, qword [rbp + 0x58]
movsd qword [r15 + 0x10], xmm1
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x14000680c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006807
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006b03
call fcn.140026934
movdqa xmm0, xmmword [0x14007d580]
movdqu xmmword [rbp + 0x18], xmm0
mov word [rbp + 8], r13w
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x140006859
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006854
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006b09
call fcn.140026934
movdqa xmm0, xmmword [0x14007d590]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp + 0x40]
cmp rdx, 8
jb 0x1400068aa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400068a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006aeb
call fcn.140026934
movdqa xmm0, xmmword [0x14007d580]
movdqu xmmword [rbp + 0x38], xmm0
mov word [rbp + 0x28], r13w
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x1400068f7
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400068f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006af1
call fcn.140026934
movdqa xmm0, xmmword [0x14007d590]
movdqu xmmword [rbp - 8], xmm0
mov byte [rbp - 0x18], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140006942
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000693d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140006af7
mov rcx, r8
call fcn.140026934
mov rax, r15
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], r13
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1400268d0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
test r14, r14
je 0x140006994
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test rdi, rdi
je 0x1400069a2
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test rsi, rsi
je 0x1400069b0
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
movups xmmword [r15], xmm6
movsd xmm0, qword [rsp + 0x78]
movsd qword [r15 + 0x10], xmm0
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x140006a00
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400069fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006b03
call fcn.140026934
movdqa xmm0, xmmword [0x14007d580]
movdqu xmmword [rbp + 0x18], xmm0
mov word [rbp + 8], r13w
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x140006a4d
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006a48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006b09
call fcn.140026934
movdqa xmm0, xmmword [0x14007d590]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], 0
mov rdx, qword [rbp + 0x40]
cmp rdx, 8
jb 0x140006a9a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006a95
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006aeb
call fcn.140026934
movdqa xmm0, xmmword [0x14007d580]
movdqu xmmword [rbp + 0x38], xmm0
mov word [rbp + 0x28], r13w
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x1400068f7
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400068f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006af1
jmp 0x1400068f2
call fcn.14002d144
nop
call fcn.14002d144
nop
call fcn.14002d144
nop
call fcn.14002d144
nop
call fcn.14002d144
nop
call fcn.14002d144
int3