Function at 0x1401d0608
Capabilities:
Check http status code
Receive http response

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x428]
sub rsp, 0x4f0
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140334860]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov byte [rsp + 0x43], r9b
mov r12, r8
mov r13, rdx
mov rdi, rcx
mov rsi, qword [rcx + 0x60]
mov qword [rsp + 0x48], rsi
xor ebx, ebx
mov qword [rsp + 0x68], rbx
mov r14b, bl
mov byte [rsp + 0x40], bl
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x54], ebx
mov byte [rsp + 0x42], bl
lea eax, [rbx + 7]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x18], rbx
mov word [rbp + 8], bx
mov qword [rbp], rax
mov qword [rbp - 8], rbx
mov word [rbp - 0x18], bx
mov byte [rsp + 0x41], bl
mov r15b, bl
cmp qword [r12 + 0x10], rbx
sete al
test al, al
je 0x1401d06a9
mov rdx, rbx
jmp 0x1401d06ba
cmp qword [r12 + 0x18], 8
jb 0x1401d06b7
mov rdx, qword [r12]
jmp 0x1401d06ba
mov rdx, r12
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
or r8d, 0xffffffff
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x1401d0752
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov r15d, 0x2f00
cmp eax, r15d
jne 0x1401d0718
lea rdx, str._WinHttp_request_resend_is_required
mov ecx, 3
call fcn.1401cecd0
mov ecx, dword [rsp + 0x54]
inc ecx
mov dword [rsp + 0x54], ecx
cmp ecx, 0xa
jg 0x1401d0a41
jmp 0x1401d0a37
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.1401d0bd8
test al, al
je 0x1401d0a96
lea r8, [rsp + 0x48]
lea rdx, str.OHttp::SendRequest:_Http_Send_request_failed__trying_proxy_index__d.
mov ecx, 3
call fcn.1401cedd8
mov rsi, qword [rsp + 0x48]
jmp 0x1401d0a37
xor edx, edx
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x1401d080c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
cmp eax, 0x2eef
jne 0x1401d07bd
test r14b, r14b
jne 0x1401d07bd
lea rdx, str._retrying_request_with_NTLM_authentication
mov ecx, 3
call fcn.14018be4c
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpSetCredentials]
test eax, eax
je 0x1401d0ac7
mov r14b, 1
mov byte [rsp + 0x40], r14b
jmp 0x1401d0695
lea r8, [rsp + 0x60]
lea rdx, str._WinHttpReceiveResponse_failed__error_d
mov esi, 3
mov ecx, esi
call fcn.1401ced28
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.1401d0bd8
test al, al
je 0x1401d0afe
lea r8, [rsp + 0x48]
lea rdx, str.OHttp::SendRequest:_Http_Receive_request_failed__trying_proxy_index__d.
mov ecx, esi
call fcn.1401cee30
mov rsi, qword [rsp + 0x48]
jmp 0x1401d0695
mov byte [rsp + 0x20], bl
mov r9d, 0x13
mov r8, r13
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.1401d00b4
nop
lea rcx, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
cmovae rcx, qword [rbp + 0x28]
xor edx, edx
lea r8d, [rdx + 0xa]
call fcn.14015b524
mov r14d, eax
cmp qword [r12 + 0x10], rbx
sete cl
neg cl
sbb edx, edx
and edx, 0xfffffffa
add edx, 0xce
cmp edx, eax
je 0x1401d08ef
cmp eax, 0xc8
je 0x1401d08ef
cmp eax, 0x191
jne 0x1401d08b7
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
cmp eax, 3
jg 0x1401d0b35
cmp eax, 1
setle al
lea rcx, [rdi + 0x68]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x18]
lea r8, [rbp + 8]
mov rdx, r13
mov rcx, rdi
call fcn.1401cfc4c
mov byte [rsp + 0x41], 1
mov r15b, 1
jmp 0x1401d09a9
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
cmp eax, 3
jle 0x1401d0a20
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.1401d0bd8
mov r15b, al
mov eax, ebx
mov dword [rsp + 0x50], ebx
mov rsi, qword [rsp + 0x48]
jmp 0x1401d09a4
mov byte [rsp + 0x42], 1
cmp byte [rsp + 0x41], bl
je 0x1401d0a20
cmp byte [rsp + 0x43], bl
je 0x1401d0a20
lea rax, [rbp - 0x68]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x48]
mov qword [rbp - 0x20], rax
lea rax, [rsp + 0x70]
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rbx
mov word [rbp - 0x68], bx
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x68]
call fcn.14000b5b8
nop
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rbx
mov word [rbp - 0x48], bx
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 8]
lea rcx, [rbp - 0x48]
call fcn.14000b5b8
nop
lea rdx, [rdi + 0x68]
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x70]
call fcn.14000b5b8
nop
lea r9, [rbp - 0x68]
lea r8, [rbp - 0x48]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1401cff2c
test r15b, r15b
je 0x1401d0a20
cmp byte [rdi + 0xf8], bl
jne 0x1401d09f2
lea rdx, [rdi + 0xa8]
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x70]
call fcn.14000b5b8
lea rcx, [rdi + 0xc8]
lea r8, [rsp + 0x70]
mov rdx, qword [rdi + 0x100]
call fcn.1401d5278
mov rax, qword [rdi + 0xe8]
sub rax, qword [rdi + 0xe0]
sar rax, 5
cmp rsi, rax
jae 0x1401d0a20
lea rcx, [rdi + 0xc8]
mov r8, qword [rdi + 0x100]
mov rdx, rsi
call fcn.1401d55fc
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x28]
call fcn.14000b190
test r15b, r15b
je 0x1401d0b43
mov r14b, byte [rsp + 0x40]
jmp 0x1401d0695
cmp byte [rbp + 0x450], bl
je 0x1401d0a72
lea r9, str.OHttp::SendRequest:_WinHttp_request_resend_count_exceeded_limits
mov r8d, r15d
mov edx, 0x7d
lea rcx, [rbp + 0x50]
call fcn.1401c1a10
lea rdx, [0x140294a58]
lea rcx, [rbp + 0x50]
call fcn.1401377ec
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x18]
call fcn.14000b190
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 8]
call fcn.14000b190
xor al, al
jmp 0x1401d0bac
cmp byte [rbp + 0x450], bl
je 0x1401d0a72
lea r9, str.OHttp::SendRequest:_Http_Send_request_failed
mov r8d, r14d
mov edx, 0x7d
lea rcx, [rbp + 0x50]
call fcn.140020da4
lea rdx, [0x140294a58]
lea rcx, [rbp + 0x50]
call fcn.1401377ec
int3
cmp byte [rbp + 0x450], bl
je 0x1401d0a72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.OHttp::SendRequest:_Failed_to_set_authentication_scheme
mov edx, 0x85
lea rcx, [rbp + 0x50]
call fcn.1401c3638
lea rdx, [0x140294a58]
lea rcx, [rbp + 0x50]
call fcn.1401377ec
int3
cmp byte [rbp + 0x450], bl
je 0x1401d0a72
lea r9, str.OHttp::SendRequest:_Http_Receive_request_failed
mov r8d, dword [rsp + 0x60]
mov edx, 0x7e
lea rcx, [rbp + 0x50]
call fcn.1401ca7e0
lea rdx, [0x140294a58]
lea rcx, [rbp + 0x50]
call fcn.1401377ec
int3
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x28]
call fcn.14000b190
mov al, byte [rsp + 0x42]
test al, al
jne 0x1401d0b80
cmp byte [rbp + 0x450], bl
je 0x1401d0a72
lea r9, str.Unexpected_status_code_received_for_Http_Send_request
mov r8d, r14d
mov edx, 0x7d
lea rcx, [rbp + 0x50]
call fcn.1401ceaf4
lea rdx, [0x140294a58]
lea rcx, [rbp + 0x50]
call fcn.1401377ec
int3
test rsi, rsi
je 0x1401d0b89
lea rbx, [rsi - 1]
mov qword [rdi + 0x60], rbx
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x18]
call fcn.14000b190
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 8]
call fcn.14000b190
mov al, 1
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140135130
mov rbx, qword [rsp + 0x548]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret