Function at 0x14016bae0
Capabilities:
Prepare http request
Set http header

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x180
mov rdi, qword [0x14019f380]
lea r12, [0x140191228]
pxor xmm0, xmm0
lea rax, [0x140191220]
mov rdx, r12
mov rsi, qword [rcx]
mov rbp, qword [rcx + 0x28]
mov rbx, rcx
mov rcx, qword [rsi + 0x38]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x4c], 2
movups xmmword [rsp + 0x78], xmm0
call fcn.1400be590
test eax, eax
je 0x14016bdf8
mov r8, qword [rsi + 0x38]
lea r12, [rsp + 0x70]
mov r9, rbp
lea rdx, str._s_s
mov rcx, r12
call fcn.14011d460
mov rdx, qword [rsp + 0x70]
mov rbp, qword [0x14019f390]
cmp rdx, rbp
je 0x14016c050
lea rcx, [rbx + 0x40]
call fcn.140127dc0
test eax, eax
js 0x14016bff0
mov rcx, qword [rsi + 0x20]
lea rdx, str.https
call fcn.140084020
mov rcx, qword [rsi + 0xc8]
mov rdx, qword [rbx + 0x30]
mov qword [rsp + 0x20], 0
test eax, eax
sete al
xor r9d, r9d
movzx eax, al
shl eax, 0x17
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov r8, qword [rbx + 0x40]
call sub.winhttp.dll_WinHttpOpenRequest
mov qword [rbx + 0x38], rax
mov rcx, rax
test rax, rax
je 0x14016bfd0
mov r9d, 4
lea r8, [rsp + 0x4c]
mov edx, 0x4d
call sub.winhttp.dll_WinHttpSetOption
test eax, eax
je 0x14016c050
mov rcx, qword [rbx + 0x38]
mov r9d, 0xffffffff
mov r8d, 0xea60
mov dword [rsp + 0x20], 0xffffffff
mov edx, 0xffffffff
call sub.winhttp.dll_WinHttpSetTimeouts
test eax, eax
je 0x14016c010
mov rdx, qword [rsi + 0x18]
mov eax, dword [rdx + 0xfc]
cmp eax, 1
je 0x14016be10
cmp eax, 2
je 0x14016c030
cmp qword [rsp + 0x50], 0
je 0x14016be78
lea r13, [rsi + 0x70]
pxor xmm0, xmm0
mov qword [rsp + 0x90], rdi
mov rcx, r13
movups xmmword [rsp + 0x98], xmm0
call fcn.1400f5e80
mov rdx, qword [rsp + 0x50]
mov rcx, r13
call fcn.1400f6890
mov edi, eax
test eax, eax
js 0x14016be68
mov rcx, r13
call fcn.1400f6f90
test al, al
je 0x14016be38
mov rdx, qword [rsi + 0x70]
lea r14, [rsp + 0x90]
mov rcx, r14
call fcn.14011d800
mov rcx, r14
mov r8d, 3
lea rdx, [0x140191258]
call fcn.14011d490
mov rcx, r13
call fcn.1400f6280
test al, al
jne 0x14016c0a0
mov rdx, qword [rsi + 0x78]
mov rcx, r14
call fcn.14011d800
mov rcx, r13
call fcn.1400f6280
test al, al
jne 0x14016c0d8
mov rcx, r13
call fcn.1400f6240
test al, al
je 0x14016c0b8
mov rdx, qword [rsp + 0x90]
cmp rdx, rbp
je 0x14016be2a
lea rcx, [rsp + 0x58]
call fcn.140127dc0
mov rcx, r14
mov edi, eax
call fcn.14011c2b0
test edi, edi
js 0x14016be68
mov rax, qword [rsp + 0x58]
mov rcx, qword [rbx + 0x38]
mov r9d, 0x18
lea r8, [rsp + 0xb0]
mov dword [rsp + 0xb0], 3
mov edx, 0x26
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 0
call sub.winhttp.dll_WinHttpSetOption
test eax, eax
je 0x14016c076
mov r13, qword [0x14019f130]
mov rcx, qword [rsp + 0x58]
call qword [r13 + 0x10]
mov rcx, qword [rbx + 0x38]
mov r9d, dword [rsi + 0xb8]
mov edx, 1
mov r8, qword [rsi + 0xb0]
call fcn.14009c790
mov edi, eax
test eax, eax
jns 0x14016be84
nop dword [rax]
mov rcx, rbx
call fcn.14016ba60
mov rcx, qword [rsp + 0x50]
call qword [r13 + 0x10]
mov rcx, r12
call fcn.14011c2b0
mov eax, edi
add rsp, 0x180
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rbp
mov rdx, r12
call fcn.1400bd8a0
cmp eax, 1
adc rbp, 0
jmp 0x14016bb61
mov rdx, qword [rdx + 0x68]
lea rcx, [rsp + 0x50]
lea r8, [rsi + 0x20]
call fcn.14010b2c0
test eax, eax
jns 0x14016bc5e
mov r13, qword [0x14019f130]
jmp 0x14016be58
mov r8, qword [rsp + 0x50]
lea rdx, str.invalid_URL:__s
mov ecx, 0x22
call fcn.1400da2e0
mov r13, qword [0x14019f130]
nop dword [rax]
mov edi, 0xffffffff
jmp 0x14016bdc8
mov r13, qword [0x14019f130]
jmp 0x14016bdc8
mov r13, qword [0x14019f130]
mov edi, 0xffffffff
mov rcx, qword [rbx + 0x38]
mov r9d, 4
lea r8, [rsp + 0x48]
mov edx, 0x3f
call sub.winhttp.dll_WinHttpSetOption
test eax, eax
je 0x14016c060
mov rcx, qword [rbx + 0x38]
mov r9d, 4
lea r8, [rsp + 0x44]
mov edx, 0x6d
call sub.winhttp.dll_WinHttpSetOption
mov rcx, qword [rbx + 0x38]
mov r9d, 0x20000000
mov r8d, 0xffffffff
lea rdx, str.Pragma:_no_cache
call sub.winhttp.dll_WinHttpAddRequestHeaders
test eax, eax
je 0x14016c1b0
lea rax, str.POST
cmp qword [rbx + 0x30], rax
je 0x14016c0f0
mov rax, qword [rsi + 0x18]
xor ebp, ebp
lea r14, [rsp + 0x90]
cmp qword [rax + 0x130], 0
je 0x14016bfa6
nop
mov rdx, qword [rax + 0x128]
cmp qword [rdx + rbp*8], 0
je 0x14016bf95
mov qword [rsp + 0x90], 0
mov rcx, r12
call fcn.14011b840
mov rax, qword [rsi + 0x18]
mov rcx, r12
mov rax, qword [rax + 0x128]
mov rdx, qword [rax + rbp*8]
call fcn.14011d800
mov rdx, qword [rsp + 0x70]
mov rcx, r14
call fcn.140127dc0
mov edi, eax
test eax, eax
js 0x14016bdc8
mov rcx, qword [rbx + 0x38]
mov rdx, qword [rsp + 0x90]
mov r9d, 0xa0000000
mov r8d, 0xffffffff
call sub.winhttp.dll_WinHttpAddRequestHeaders
test eax, eax
je 0x14016c1d0
mov rcx, qword [rsp + 0x90]
call qword [r13 + 0x10]
mov rax, qword [rsi + 0x18]
add rbp, 1
cmp rbp, qword [rax + 0x130]
jb 0x14016bf10
mov rcx, qword [rbx + 0x38]
mov r9d, dword [rsi + 0x68]
xor edx, edx
mov r8, qword [rsi + 0x60]
call fcn.14009c790
mov edi, eax
test eax, eax
js 0x14016bdc8
xor edi, edi
jmp 0x14016bdd0
lea rdx, str.failed_to_open_request
mov ecx, 2
call fcn.1400da2e0
mov r13, qword [0x14019f130]
jmp 0x14016be58
lea rdx, str.failed_to_convert_string_to_wide_form
mov ecx, 2
call fcn.1400da2e0
mov r13, qword [0x14019f130]
jmp 0x14016be58
lea rdx, str.failed_to_set_timeouts_for_WinHTTP
mov ecx, 2
call fcn.1400da2e0
mov r13, qword [0x14019f130]
jmp 0x14016be58
mov rcx, qword [rdx + 0x100]
call fcn.1400be030
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x14016bc6a
nop word [rax + rax]
mov edi, 0xffffffff
jmp 0x14016bde1
lea rdx, str.failed_to_disable_redirects
mov ecx, 2
call fcn.1400da2e0
jmp 0x14016be58
lea rdx, str.failed_to_set_proxy
mov ecx, 2
call fcn.1400da2e0
mov r13, qword [0x14019f130]
mov rcx, qword [rsp + 0x58]
call qword [r13 + 0x10]
jmp 0x14016bdd0
mov edx, 0x5b
mov rcx, r14
call fcn.14011d6f0
jmp 0x14016bcea
mov r8, qword [rsi + 0x80]
lea rdx, [0x14019125c]
mov rcx, r14
call fcn.14011d460
jmp 0x14016bd16
mov edx, 0x5d
mov rcx, r14
call fcn.14011d6f0
jmp 0x14016bd06
mov rcx, r12
call fcn.14011b840
mov r8, qword [rbx + 0x20]
lea rdx, str.Content_Type:_application_x_git__s_request
mov rcx, r12
call fcn.14011d460
test eax, eax
js 0x14016c1c1
lea rbp, [rsp + 0xb0]
mov r8, qword [rsp + 0x70]
mov edx, 0x64
mov rcx, rbp
call fcn.140127d50
test eax, eax
js 0x14016c1f2
mov rcx, qword [rbx + 0x38]
mov r9d, 0xa0000000
mov r8d, 0xffffffff
mov rdx, rbp
call sub.winhttp.dll_WinHttpAddRequestHeaders
test eax, eax
je 0x14016c1b0
mov rcx, r12
call fcn.14011b840
mov r8, qword [rbx + 0x20]
lea rdx, str.Accept:_application_x_git__s_result
mov rcx, r12
call fcn.14011d460
test eax, eax
js 0x14016c1c1
mov r8, qword [rsp + 0x70]
mov edx, 0x64
mov rcx, rbp
call fcn.140127d50
test eax, eax
js 0x14016c205
mov rcx, qword [rbx + 0x38]
mov r9d, 0xa0000000
mov r8d, 0xffffffff
mov rdx, rbp
call sub.winhttp.dll_WinHttpAddRequestHeaders
test eax, eax
jne 0x14016bef3
nop word cs:[rax + rax]
lea rdx, str.failed_to_add_a_header_to_the_request
mov ecx, 2
call fcn.1400da2e0
cmp edi, 0xffffffff
je 0x14016be58
jmp 0x14016bdd0
lea rdx, str.failed_to_add_a_header_to_the_request
mov ecx, 2
call fcn.1400da2e0
mov rcx, qword [rsp + 0x90]
call qword [r13 + 0x10]
jmp 0x14016bdd0
lea rdx, str.failed_to_convert_content_type_to_wide_characters
mov ecx, 2
call fcn.1400da2e0
jmp 0x14016c1c1
lea rdx, str.failed_to_convert_accept_header_to_wide_characters
mov ecx, 2
call fcn.1400da2e0
jmp 0x14016c1c1