Function at 0x140065db0
Capabilities:
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400e9070]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor sil, sil
mov qword [rsp + 0xc0], rdi
xor r15d, r15d
mov r14, rdx
mov rbx, rcx
mov bpl, 1
mov r12d, 0x100
movzx eax, byte [rbx + 0x38]
test al, al
je 0x1400661b2
lea rdi, [rbx + 0x100]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140065e14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rdi], r15
mov rax, qword [rbx + 0x40]
mov ecx, 0x800100
cmp dword [rax + 0x20c], 1
cmovne ecx, r12d
add rax, 0x1e8
cmp qword [rax + 0x18], 8
jb 0x140065e38
mov rax, qword [rax]
lea r8, [rbx + 0xb8]
cmp qword [r8 + 0x18], 8
jb 0x140065e49
mov r8, qword [r8]
lea rdx, [rbx + 0xd8]
cmp qword [rdx + 0x18], 8
jb 0x140065e5a
mov rdx, qword [rdx]
mov dword [rsp + 0x30], ecx
xor r9d, r9d
mov rcx, qword [rbx + 0xf8]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rdi], rax
test rax, rax
je 0x14006616b
mov rax, qword [rbx + 0x40]
movzx ecx, byte [rax + 0x212]
test cl, cl
je 0x140065eee
mov rax, qword [rbx + 0x40]
mov ecx, dword [rax + 0x240]
test ecx, ecx
je 0x140065eee
mov rax, qword [rbx + 0x40]
cmp qword [rax + 0x18], r15
je 0x140065eee
cmp qword [rax + 0x40], 8
lea rcx, [rax + 0x28]
jb 0x140065eb9
mov rcx, qword [rcx]
cmp qword [rax + 0x20], 8
lea r9, [rax + 8]
jb 0x140065ec7
mov r9, qword [r9]
mov r8d, dword [rax + 0x240]
mov edx, 1
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi]
call qword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x14006608a
mov rax, qword [rbx + 0x40]
mov rdx, r14
movzx ecx, byte [rax + 0x213]
mov rcx, rbx
call fcn.1400650a0
mov rcx, qword [rdi]
test al, al
je 0x140066160
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140066136
mov rcx, rbx
call fcn.140064b50
test al, al
je 0x14006612d
cmp dword [rbx + 0x58], 0xb
jne 0x14006612a
mov rax, qword [rbx + 0x40]
mov rcx, qword [0x1400ed828]
mov byte [rax + 0x212], bpl
test rcx, rcx
je 0x140065f59
cmp byte [0x1400ed7fd], r15b
jne 0x140065f65
call fcn.14005c3a0
mov rcx, qword [0x1400ed828]
mov rax, qword [rcx]
lea rdx, str.Response_from_proxy_server_is_:
mov rax, qword [rax + 8]
call qword [case.0x140049d6d.0]
mov rcx, rdi
call fcn.140064e10
mov rcx, qword [rdi]
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryAuthSchemes]
test eax, eax
jne 0x140065faf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140063f00
jmp 0x140066013
mov eax, dword [rsp + 0x60]
test al, 0x10
je 0x140065fc7
mov rax, qword [rbx + 0x40]
mov dword [rax + 0x240], 0x10
jmp 0x140066013
test al, 2
je 0x140065fdb
mov rax, qword [rbx + 0x40]
mov dword [rax + 0x240], 2
jmp 0x140066013
test al, 4
je 0x140065fef
mov rax, qword [rbx + 0x40]
mov dword [rax + 0x240], 4
jmp 0x140066013
test al, 8
je 0x140066003
mov rax, qword [rbx + 0x40]
mov dword [rax + 0x240], 8
jmp 0x140066013
mov rcx, qword [rbx + 0x40]
movzx eax, al
and eax, 1
mov dword [rcx + 0x240], eax
test sil, sil
jne 0x14006612a
mov rax, qword [rbx + 0x40]
mov ecx, dword [rax + 0x240]
cmp ecx, 2
jne 0x14006604c
mov dword [rsp + 0x64], ecx
lea r9d, [rcx + 2]
lea edx, [rcx + 0x4b]
mov rcx, qword [rdi]
lea r8, [rsp + 0x64]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x1400660e2
mov rcx, qword [0x1400ed828]
test rcx, rcx
je 0x140066061
cmp byte [0x1400ed7fd], r15b
jne 0x14006606d
call fcn.14005c3a0
mov rcx, qword [0x1400ed828]
mov rax, qword [rcx]
lea rdx, str.Trying_to_authenticate_Proxy_using_latest_set_preferences____username___and_password__
mov rax, qword [rax + 8]
call qword [case.0x140049d6d.0]
movzx esi, bpl
jmp 0x140065df0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140063f00
mov rcx, qword [0x1400ed828]
test rcx, rcx
je 0x1400660af
cmp byte [0x1400ed7fd], r15b
jne 0x1400660bb
call fcn.14005c3a0
mov rcx, qword [0x1400ed828]
mov rax, qword [rcx]
lea r8, str.Failed_to_set_the_proxy_credentials
lea rdx, [0x1400c3148]
mov rax, qword [rax + 0x48]
call qword [case.0x140049d6d.0]
xor bpl, bpl
movzx eax, bpl
jmp 0x1400661eb
mov rdi, qword [0x1400ed828]
test rdi, rdi
je 0x1400660f7
cmp byte [0x1400ed7fd], r15b
jne 0x140066103
call fcn.14005c3a0
mov rdi, qword [0x1400ed828]
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, str.Failed_to_set_the_autologon_security_option_in_the_winhttp_session____d
mov rcx, rdi
mov r9d, eax
lea rdx, [0x1400c3148]
mov rax, qword [rbx + 0x48]
call qword [case.0x140049d6d.0]
xor bpl, bpl
movzx eax, bpl
jmp 0x1400661eb
mov rcx, qword [0x1400ed828]
test rcx, rcx
je 0x14006614b
cmp byte [0x1400ed7fd], r15b
jne 0x140066157
call fcn.14005c3a0
mov rcx, qword [0x1400ed828]
lea rdx, str.initHttpDownload:_failed_to_receive_the_response_from_server
jmp 0x140066193
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rdi], r15
jmp 0x1400661e9
mov rcx, qword [0x1400ed828]
test rcx, rcx
je 0x140066180
cmp byte [0x1400ed7fd], r15b
jne 0x14006618c
call fcn.14005c3a0
mov rcx, qword [0x1400ed828]
lea rdx, str.createRequest_:_failed_to_open_the_request_handle
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140049d6d.0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.140063f00
jmp 0x1400661e9
xor r8d, r8d
mov qword [rsp + 0x40], r15
lea rdx, [0x1400c3148]
mov qword [rsp + 0x50], r15
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x58], r15
call fcn.140003250
xor r8d, r8d
lea r9, [rsp + 0x40]
mov rcx, rbx
lea edx, [r8 + 0x13]
call fcn.140063d50
xor al, al
mov rdi, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140079b50
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret