Function at 0x14012f6bc
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 [0x1401d4618]
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 0x14012f75d
mov rdx, rbx
jmp 0x14012f76e
cmp qword [r12 + 0x18], 8
jb 0x14012f76b
mov rdx, qword [r12]
jmp 0x14012f76e
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 0x14012f806
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov r15d, 0x2f00
cmp eax, r15d
jne 0x14012f7cc
lea rdx, str._WinHttp_request_resend_is_required
mov ecx, 3
call fcn.140116d14
mov ecx, dword [rsp + 0x54]
inc ecx
mov dword [rsp + 0x54], ecx
cmp ecx, 0xa
jg 0x14012faf6
jmp 0x14012faec
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14012fc8c
test al, al
je 0x14012fb4b
lea r8, [rsp + 0x48]
lea rdx, str.OHttp::SendRequest:_Http_Send_request_failed__trying_proxy_index__d.
mov ecx, 3
call fcn.14012de50
mov rsi, qword [rsp + 0x48]
jmp 0x14012faec
xor edx, edx
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x14012f8c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
cmp eax, 0x2eef
jne 0x14012f871
test r14b, r14b
jne 0x14012f871
lea rdx, str._retrying_request_with_NTLM_authentication
mov ecx, 3
call fcn.1400fe980
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 0x14012fb7c
mov r14b, 1
mov byte [rsp + 0x40], r14b
jmp 0x14012f749
lea r8, [rsp + 0x60]
lea rdx, str._WinHttpReceiveResponse_failed__error_d
mov esi, 3
mov ecx, esi
call fcn.14012dda0
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14012fc8c
test al, al
je 0x14012fbb3
lea r8, [rsp + 0x48]
lea rdx, str.OHttp::SendRequest:_Http_Receive_request_failed__trying_proxy_index__d.
mov ecx, esi
call fcn.14012dea8
mov rsi, qword [rsp + 0x48]
jmp 0x14012f749
mov byte [rsp + 0x20], bl
mov r9d, 0x13
mov r8, r13
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.14012f16c
nop
lea rcx, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
cmovae rcx, qword [rbp + 0x28]
xor edx, edx
lea r8d, [rdx + 0xa]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
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 0x14012f9a4
cmp eax, 0xc8
je 0x14012f9a4
cmp eax, 0x191
jne 0x14012f96c
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
cmp eax, 3
jg 0x14012fbea
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.14012ed04
mov byte [rsp + 0x41], 1
mov r15b, 1
jmp 0x14012fa5e
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
cmp eax, 3
jle 0x14012fad5
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.14012fc8c
mov r15b, al
mov eax, ebx
mov dword [rsp + 0x50], ebx
mov rsi, qword [rsp + 0x48]
jmp 0x14012fa59
mov byte [rsp + 0x42], 1
cmp byte [rsp + 0x41], bl
je 0x14012fad5
cmp byte [rsp + 0x43], bl
je 0x14012fad5
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.140008a84
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.140008a84
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.140008a84
nop
lea r9, [rbp - 0x68]
lea r8, [rbp - 0x48]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.14012efe4
test r15b, r15b
je 0x14012fad5
cmp byte [rdi + 0xf8], bl
jne 0x14012faa7
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.140008a84
lea rcx, [rdi + 0xc8]
lea r8, [rsp + 0x70]
mov rdx, qword [rdi + 0x100]
call fcn.140137080
mov rax, qword [rdi + 0xe8]
sub rax, qword [rdi + 0xe0]
sar rax, 5
cmp rsi, rax
jae 0x14012fad5
lea rcx, [rdi + 0xc8]
mov r8, qword [rdi + 0x100]
mov rdx, rsi
call fcn.140137404
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x28]
call fcn.14000867c
test r15b, r15b
je 0x14012fbf8
mov r14b, byte [rsp + 0x40]
jmp 0x14012f749
cmp byte [rbp + 0x450], bl
je 0x14012fb27
lea r9, str.OHttp::SendRequest:_WinHttp_request_resend_count_exceeded_limits
mov r8d, r15d
mov edx, 0x7d
lea rcx, [rbp + 0x50]
call fcn.14002cc18
lea rdx, [0x1401e3810]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x18]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 8]
call fcn.14000867c
xor al, al
jmp 0x14012fc61
cmp byte [rbp + 0x450], bl
je 0x14012fb27
lea r9, str.OHttp::SendRequest:_Http_Send_request_failed
mov r8d, r14d
mov edx, 0x7d
lea rcx, [rbp + 0x50]
call fcn.1400167fc
lea rdx, [0x1401e3810]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
cmp byte [rbp + 0x450], bl
je 0x14012fb27
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.1400219c4
lea rdx, [0x1401e3810]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
cmp byte [rbp + 0x450], bl
je 0x14012fb27
lea r9, str.OHttp::SendRequest:_Http_Receive_request_failed
mov r8d, dword [rsp + 0x60]
mov edx, 0x7e
lea rcx, [rbp + 0x50]
call fcn.1400264ac
lea rdx, [0x1401e3810]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x28]
call fcn.14000867c
mov al, byte [rsp + 0x42]
test al, al
jne 0x14012fc35
cmp byte [rbp + 0x450], bl
je 0x14012fb27
lea r9, str.Unexpected_status_code_received_for_Http_Send_request
mov r8d, r14d
mov edx, 0x7d
lea rcx, [rbp + 0x50]
call fcn.14012dbc0
lea rdx, [0x1401e3810]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
test rsi, rsi
je 0x14012fc3e
lea rbx, [rsi - 1]
mov qword [rdi + 0x60], rbx
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x18]
call fcn.14000867c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 8]
call fcn.14000867c
mov al, 1
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140121d80
mov rbx, qword [rsp + 0x548]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret