Function at 0x140131f28
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 [0x140191810]
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 0x140131fc9
mov rdx, rbx
jmp 0x140131fda
cmp qword [r12 + 0x18], 8
jb 0x140131fd7
mov rdx, qword [r12]
jmp 0x140131fda
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 0x140132072
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov r15d, 0x2f00
cmp eax, r15d
jne 0x140132038
lea rdx, str._WinHttp_request_resend_is_required
mov ecx, 3
call fcn.14011b474
mov ecx, dword [rsp + 0x54]
inc ecx
mov dword [rsp + 0x54], ecx
cmp ecx, 0xa
jg 0x140132362
jmp 0x140132358
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.1401324f8
test al, al
je 0x1401323b7
lea r8, [rsp + 0x48]
lea rdx, str.OHttp::SendRequest:_Http_Send_request_failed__trying_proxy_index__d.
mov ecx, 3
call fcn.140130f80
mov rsi, qword [rsp + 0x48]
jmp 0x140132358
xor edx, edx
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x14013212c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
cmp eax, 0x2eef
jne 0x1401320dd
test r14b, r14b
jne 0x1401320dd
lea rdx, str._retrying_request_with_NTLM_authentication
mov ecx, 3
call fcn.140103950
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 0x1401323e8
mov r14b, 1
mov byte [rsp + 0x40], r14b
jmp 0x140131fb5
lea r8, [rsp + 0x60]
lea rdx, str._WinHttpReceiveResponse_failed__error_d
mov esi, 3
mov ecx, esi
call fcn.140130ed0
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.1401324f8
test al, al
je 0x14013241f
lea r8, [rsp + 0x48]
lea rdx, str.OHttp::SendRequest:_Http_Receive_request_failed__trying_proxy_index__d.
mov ecx, esi
call fcn.140130fd8
mov rsi, qword [rsp + 0x48]
jmp 0x140131fb5
mov byte [rsp + 0x20], bl
mov r9d, 0x13
mov r8, r13
lea rdx, [rbp + 0x28]
mov rcx, rdi
call fcn.140131b80
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 0x140132210
cmp eax, 0xc8
je 0x140132210
cmp eax, 0x191
jne 0x1401321d8
mov eax, dword [rsp + 0x58]
inc eax
mov dword [rsp + 0x58], eax
cmp eax, 3
jg 0x140132456
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.1401317b4
mov byte [rsp + 0x41], 1
mov r15b, 1
jmp 0x1401322ca
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
cmp eax, 3
jle 0x140132341
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call fcn.1401324f8
mov r15b, al
mov eax, ebx
mov dword [rsp + 0x50], ebx
mov rsi, qword [rsp + 0x48]
jmp 0x1401322c5
mov byte [rsp + 0x42], 1
cmp byte [rsp + 0x41], bl
je 0x140132341
cmp byte [rsp + 0x43], bl
je 0x140132341
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.140007e10
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.140007e10
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.140007e10
nop
lea r9, [rbp - 0x68]
lea r8, [rbp - 0x48]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.140131a94
test r15b, r15b
je 0x140132341
cmp byte [rdi + 0xf8], bl
jne 0x140132313
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.140007e10
lea rcx, [rdi + 0xc8]
lea r8, [rsp + 0x70]
mov rdx, qword [rdi + 0x100]
call fcn.140139760
mov rax, qword [rdi + 0xe8]
sub rax, qword [rdi + 0xe0]
sar rax, 5
cmp rsi, rax
jae 0x140132341
lea rcx, [rdi + 0xc8]
mov r8, qword [rdi + 0x100]
mov rdx, rsi
call fcn.140139ae4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x28]
call fcn.140007a08
test r15b, r15b
je 0x140132464
mov r14b, byte [rsp + 0x40]
jmp 0x140131fb5
cmp byte [rbp + 0x450], bl
je 0x140132393
lea r9, str.OHttp::SendRequest:_WinHttp_request_resend_count_exceeded_limits
mov r8d, r15d
mov edx, 0x7d
lea rcx, [rbp + 0x50]
call fcn.140031130
lea rdx, [0x1401df028]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x18]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 8]
call fcn.140007a08
xor al, al
jmp 0x1401324cd
cmp byte [rbp + 0x450], bl
je 0x140132393
lea r9, str.OHttp::SendRequest:_Http_Send_request_failed
mov r8d, r14d
mov edx, 0x7d
lea rcx, [rbp + 0x50]
call fcn.14001a794
lea rdx, [0x1401df028]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
cmp byte [rbp + 0x450], bl
je 0x140132393
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.1400243c8
lea rdx, [0x1401df028]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
cmp byte [rbp + 0x450], bl
je 0x140132393
lea r9, str.OHttp::SendRequest:_Http_Receive_request_failed
mov r8d, dword [rsp + 0x60]
mov edx, 0x7e
lea rcx, [rbp + 0x50]
call fcn.1400294c8
lea rdx, [0x1401df028]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x28]
call fcn.140007a08
mov al, byte [rsp + 0x42]
test al, al
jne 0x1401324a1
cmp byte [rbp + 0x450], bl
je 0x140132393
lea r9, str.Unexpected_status_code_received_for_Http_Send_request
mov r8d, r14d
mov edx, 0x7d
lea rcx, [rbp + 0x50]
call fcn.140130da8
lea rdx, [0x1401df028]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
test rsi, rsi
je 0x1401324aa
lea rbx, [rsi - 1]
mov qword [rdi + 0x60], rbx
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x18]
call fcn.140007a08
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 8]
call fcn.140007a08
mov al, 1
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140021f10
mov rbx, qword [rsp + 0x548]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret