Function at 0x1400a4d30
Capabilities:
Set http header

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x218
movaps xmmword [rsp + 0x200], xmm6
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14036c038]
xor rax, rsp
mov qword [rsp + 0x1f8], rax
lea r14, [rcx + 0x58]
mov rcx, r14
call fcn.1401443e0
mov ebp, 0x80070057
test al, al
je 0x1400a5059
lea rax, [rbx + 0xd8]
movzx ecx, byte [rbx + 0xef]
mov r8d, ecx
and r8d, 0x7f
test cl, cl
cmovs rax, qword [rbx + 0xd8]
mov ebp, dword [rbx + 0xf0]
lea rdx, [rsp + 0x1d0]
mov qword [rdx], rax
cmovs r8, qword [rbx + 0xe0]
mov qword [rdx + 8], r8
lea r15, [rsp + 0x90]
mov rcx, r15
call fcn.1400d6320
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400a5313
cmp byte [rsp + 0xa7], 0
jns 0x1400a4dea
mov r15, qword [rsp + 0x90]
mov rcx, qword [rax]
mov rdx, r15
mov r8d, ebp
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
cmp byte [rsp + 0xa7], 0
jns 0x1400a4e16
mov rcx, qword [rsp + 0x90]
call fcn.14018e000
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1400a4e28
cmp rcx, r15
je 0x1400a5305
test rcx, rcx
je 0x1400a4e33
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rbx + 0x28], r15
test r15, r15
je 0x1400a5052
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x1f0], rax
movaps xmm6, xmmword [0x1402fa4a0]
movaps xmmword [rsp + 0x1e0], xmm6
movaps xmmword [rsp + 0x1d0], xmm6
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400a530d
mov rcx, qword [rbx + 0x18]
mov r8, qword [rax]
lea rdx, [rsp + 0x1d0]
mov r9, r14
call fcn.1400a3c60
lea r14, [rsp + 0x90]
mov rcx, rbx
mov rdx, r14
call fcn.1400a5320
mov r14, qword [r14 + 8]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x1400a4eb6
cmp rcx, r14
je 0x1400a5305
test rcx, rcx
je 0x1400a4ec1
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rbx + 0x40], r14
cmp byte [rsp + 0xa0], 0
jne 0x1400a530a
test r14, r14
je 0x1400a5019
lea rdx, [rsp + 0x1d0]
mov rcx, r14
call fcn.1400a3fe0
mov rcx, qword [rbx + 0x40]
lea rdx, [0x1400a5400]
mov r8d, 0xffffffff
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp rax, 0xffffffffffffffff
je 0x1400a5019
mov rcx, qword [rbx + 0x40]
lea r8, [rsp + 0x90]
mov qword [r8], rbx
mov edx, 0x2d
mov r9d, 8
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x1400a4fe9
test rbx, rbx
je 0x1400a4f51
mov eax, 1
lock xadd dword [rbx], eax
cmp eax, 0x7fffffff
je 0x1400a5310
mov r14, qword [rbx + 0x50]
mov qword [rbx + 0x50], rbx
test r14, r14
je 0x1400a4f74
lock dec dword [r14]
jne 0x1400a4f74
mov rcx, r14
call fcn.1400a43b0
mov rcx, r14
call fcn.14018e000
mov rcx, qword [rbx + 0x40]
lea r8, [rsp + 0x90]
mov dword [r8], 1
mov edx, 0x3f
mov r9d, 4
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x1400a4ff8
movzx eax, byte [rbx + 0x14f]
test al, al
jns 0x1400a4fae
mov rax, qword [rbx + 0x140]
mov qword [rsp + 0x30], rdi
test rax, rax
jne 0x1400a5267
mov r14, qword [rsi + 8]
mov rdi, qword [rsi + 0x10]
cmp r14, rdi
je 0x1400a5003
add r14, 0x18
mov r13d, 2
lea r12, [rsp + 0x38]
lea rbp, [rsp + 0x60]
mov r15, qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
jmp 0x1400a511b
call fcn.1400d6680
test eax, eax
jns 0x1400a4f38
jmp 0x1400a501e
call fcn.1400d6680
test eax, eax
jns 0x1400a4f9c
jmp 0x1400a501e
mov rcx, rbx
mov rdx, qword [rsp + 0x30]
call fcn.1400a5bb0
mov ebp, eax
sar ebp, 0x1f
and ebp, eax
jmp 0x1400a5020
call fcn.1400d6680
mov ebp, eax
cmp byte [rsp + 0x1d0], 0
je 0x1400a5059
mov rcx, qword [rsp + 0x1e0]
test rcx, rcx
je 0x1400a503d
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x1e8]
test rcx, rcx
je 0x1400a5059
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400a5059
call fcn.1400d6680
mov ebp, eax
add rsi, 8
lea rcx, [rsp + 0x90]
mov qword [rcx], rsi
call fcn.14011d850
mov rcx, qword [rsp + 0x1f8]
xor rcx, rsp
call fcn.14018f840
mov eax, ebp
movaps xmm6, xmmword [rsp + 0x200]
add rsp, 0x218
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x90]
lea rdx, str.....componentswinhttp_network_fetcher.cc
mov r8d, 0xed
mov r9d, 2
call fcn.1401ff380
mov r8d, 0x22
lea rcx, [rsp + 0xa0]
lea rdx, str.Failed_to_set_the_request_header:
call fcn.1401c9900
mov rcx, rax
mov rdx, rbp
call fcn.1400770c0
lea rcx, [rsp + 0x90]
call fcn.1401ff400
cmp byte [rsp + 0x77], 0
jns 0x1400a5107
mov rcx, qword [rsp + 0x60]
call fcn.14018e000
lea rax, [r14 + 0x30]
add r14, 0x18
cmp r14, rdi
mov r14, rax
je 0x1400a5003
lea rax, [r14 - 0x18]
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rcx
movaps xmmword [rsp + 0x60], xmm6
movzx ecx, byte [r14 - 1]
mov edx, ecx
and edx, 0x7f
test cl, cl
cmovs rax, qword [r14 - 0x18]
mov qword [rsp + 0x90], rax
cmovs rdx, qword [r14 - 0x10]
mov qword [rsp + 0x98], rdx
lea rax, [0x1402fd768]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], r13
movzx eax, byte [r14 + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [r14]
cmovns rax, r14
mov qword [rsp + 0xb0], rax
cmovs rcx, qword [r14 + 8]
mov qword [rsp + 0xb8], rcx
lea rax, [0x14030df60]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], r13
mov qword [rsp + 0x80], 4
lea rax, [rsp + 0x90]
mov qword [rsp + 0x88], rax
mov rcx, r12
lea rdx, [rsp + 0x80]
call fcn.140137480
movzx eax, byte [rsp + 0x4f]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsp + 0x38]
cmovns rax, r12
mov qword [rsp + 0x50], rax
cmovs rcx, qword [rsp + 0x40]
mov qword [rsp + 0x58], rcx
mov rcx, rbp
lea rdx, [rsp + 0x50]
call fcn.1400d6320
cmp byte [rsp + 0x4f], 0
jns 0x1400a521e
mov rcx, qword [rsp + 0x38]
call fcn.14018e000
movzx eax, byte [rsp + 0x77]
mov r8d, eax
and r8d, 0x7f
test al, al
cmovs r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
cmovns rdx, rbp
mov rcx, qword [rbx + 0x40]
mov r9d, 0xa0000000
call r15
test eax, eax
jne 0x1400a50f6
mov ecx, 2
call fcn.14013d6b0
test al, al
je 0x1400a50f6
jmp 0x1400a509b
lea rdx, [0x14030fc50]
lea rcx, [rsp + 0x90]
call fcn.1401c9610
lea rcx, [rsp + 0xa8]
cmp byte [rbx + 0x14f], 0
js 0x1400a52a3
lea rax, [rbx + 0x138]
mov rdx, qword [rax + 0x10]
mov qword [rcx + 0x10], rdx
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
jmp 0x1400a52b6
mov rdx, qword [rbx + 0x138]
mov r8, qword [rbx + 0x140]
call fcn.1401266a0
lea rdx, [rsp + 0x60]
lea r15, [rsp + 0x90]
mov rcx, rsi
mov r8, r15
mov r9, r15
call fcn.1401c9c60
cmp byte [r15 + 0x2f], 0
jns 0x1400a52e5
mov rcx, qword [rsp + 0xa8]
call fcn.14018e000
cmp byte [rsp + 0xa7], 0
jns 0x1400a4fbc
mov rcx, qword [rsp + 0x90]
call fcn.14018e000
jmp 0x1400a4fbc
call fcn.1401a87f0
int3
int3
int3
int3