Function at 0x1400ad060
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 r14, r8
mov r15, rdx
mov rbx, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x1f8], rax
lea rbp, [rcx + 0x58]
mov rcx, rbp
call fcn.140170e00
mov edi, 0x80070057
test al, al
je 0x1400ad51c
lea rax, [rbx + 0xd8]
movzx edx, byte [rbx + 0xef]
mov ecx, edx
and ecx, 0x7f
test dl, dl
cmovs rax, qword [rbx + 0xd8]
movzx edi, word [rbx + 0xf0]
lea rdx, [rsp + 0x1d0]
mov qword [rdx], rax
cmovs rcx, qword [rbx + 0xe0]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x90]
mov rcx, rsi
call fcn.1402ada50
cmp byte [rsi + 0x17], 0
jns 0x1400ad108
mov rsi, qword [rsp + 0x90]
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax]
mov rdx, rsi
mov r8d, edi
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rdi, rax
cmp byte [rsp + 0xa7], 0
jns 0x1400ad138
mov rcx, qword [rsp + 0x90]
call fcn.1401b9ce8
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1400ad14a
cmp rcx, rdi
je 0x1400ad637
test rcx, rcx
je 0x1400ad155
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rbx + 0x28], rdi
test rdi, rdi
je 0x1400ad4cf
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdx, [rsp + 0x1d0]
mov qword [rdx + 0x20], rax
movaps xmm6, xmmword [0x14032f5c0]
movaps xmmword [rdx + 0x10], xmm6
movaps xmmword [rdx], xmm6
mov rax, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x18]
mov r8, qword [rax]
mov r9, rbp
call fcn.1400ae580
lea rsi, [rsp + 0x90]
mov rcx, rbx
mov rdx, rsi
call fcn.1400ad640
mov rdi, qword [rsi + 8]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x1400ad1c2
cmp rcx, rdi
je 0x1400ad637
test rcx, rcx
je 0x1400ad1cd
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov qword [rbx + 0x40], rdi
cmp byte [rsp + 0xa0], 0
jne 0x1400ad63c
test rdi, rdi
je 0x1400ad4c6
lea rdx, [rsp + 0x1d0]
mov rcx, rdi
call fcn.1400ae900
mov rcx, qword [rbx + 0x40]
lea rdx, [0x1400ad720]
mov r8d, 0xffffffff
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp rax, 0xffffffffffffffff
je 0x1400ad4c6
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
jne 0x1400ad24d
call fcn.1400f3d20
test eax, eax
js 0x1400ad4cb
test rbx, rbx
je 0x1400ad255
lock inc dword [rbx]
mov rsi, qword [rbx + 0x50]
mov qword [rbx + 0x50], rbx
test rsi, rsi
je 0x1400ad277
lock dec dword [rsi]
jne 0x1400ad277
mov rcx, rsi
call fcn.1400ac8f0
mov rcx, rsi
call fcn.1401b9ce8
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
jne 0x1400ad2ac
call fcn.1400f3d20
test eax, eax
js 0x1400ad4cb
movzx eax, byte [rbx + 0x137]
test al, al
mov qword [rsp + 0x30], r15
jns 0x1400ad2c3
mov rax, qword [rbx + 0x128]
test rax, rax
jne 0x1400ad59a
mov r12, qword [r14 + 8]
mov rsi, qword [r14 + 0x10]
cmp r12, rsi
je 0x1400ad4d8
add r12, 0x18
mov r13d, 2
lea rdi, [rsp + 0x38]
lea rbp, [rsp + 0x60]
mov r15, qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
lea rax, [r12 - 0x18]
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rcx
movaps xmmword [rsp + 0x60], xmm6
movzx ecx, byte [r12 - 1]
mov edx, ecx
and edx, 0x7f
test cl, cl
cmovs rax, qword [r12 - 0x18]
mov qword [rsp + 0x90], rax
cmovs rdx, qword [r12 - 0x10]
mov qword [rsp + 0x98], rdx
lea rax, [0x140331474]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], r13
movzx eax, byte [r12 + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [r12]
cmovns rax, r12
mov qword [rsp + 0xb0], rax
cmovs rcx, qword [r12 + 8]
mov qword [rsp + 0xb8], rcx
lea rax, [0x1403727ee]
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, rdi
lea rdx, [rsp + 0x80]
call fcn.1401674b0
movzx eax, byte [rsp + 0x4f]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsp + 0x38]
cmovns rax, rdi
mov qword [rsp + 0x50], rax
cmovs rcx, qword [rsp + 0x40]
mov qword [rsp + 0x58], rcx
mov rcx, rbp
lea rdx, [rsp + 0x50]
call fcn.1402ada50
cmp byte [rsp + 0x4f], 0
jns 0x1400ad402
mov rcx, qword [rsp + 0x38]
call fcn.1401b9ce8
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 0x1400ad43e
mov ecx, 2
call fcn.140160660
test al, al
jne 0x1400ad466
cmp byte [rsp + 0x77], 0
jns 0x1400ad44f
mov rcx, qword [rsp + 0x60]
call fcn.1401b9ce8
lea rax, [r12 + 0x30]
add r12, 0x18
cmp r12, rsi
mov r12, rax
jne 0x1400ad2f8
jmp 0x1400ad4d8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x90]
lea rdx, str.....componentswinhttp_network_fetcher.cc
mov r8d, 0xdf
mov r9d, 2
call fcn.140224610
mov r8d, 0x22
lea rcx, [rsp + 0xa0]
lea rdx, str.Failed_to_set_the_request_header:
call fcn.1401f9cc0
mov rcx, rax
mov rdx, rbp
call fcn.140076a50
lea rcx, [rsp + 0x90]
call fcn.140224690
jmp 0x1400ad43e
call fcn.1400f3d20
mov edi, eax
jmp 0x1400ad4ec
call fcn.1400f3d20
mov edi, eax
jmp 0x1400ad51c
mov rcx, rbx
mov rdx, qword [rsp + 0x30]
call fcn.1400ad830
mov edi, eax
sar edi, 0x1f
and edi, eax
cmp byte [rsp + 0x1d0], 0
je 0x1400ad51c
mov rcx, qword [rsp + 0x1e0]
test rcx, rcx
je 0x1400ad509
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rsp + 0x1e8]
test rcx, rcx
je 0x1400ad51c
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rsi, qword [r14 + 8]
test rsi, rsi
je 0x1400ad56c
mov rbx, qword [r14 + 0x10]
mov rcx, rsi
cmp rbx, rsi
je 0x1400ad563
cmp byte [rbx - 1], 0
jns 0x1400ad540
mov rcx, qword [rbx - 0x18]
call fcn.1401b9ce8
lea rbp, [rbx - 0x30]
cmp byte [rbx - 0x19], 0
js 0x1400ad554
mov rbx, rbp
cmp rbp, rsi
jne 0x1400ad531
jmp 0x1400ad55f
mov rcx, qword [rbx - 0x30]
call fcn.1401b9ce8
jmp 0x1400ad54a
mov rcx, qword [r14 + 8]
mov qword [r14 + 0x10], rsi
call fcn.1401b9ce8
mov rcx, qword [rsp + 0x1f8]
xor rcx, rsp
call fcn.1401bb0d0
mov eax, edi
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
lea rdx, [0x140372860]
lea rcx, [rsp + 0x90]
call fcn.1401f9c10
lea rcx, [rsp + 0xa8]
cmp byte [rbx + 0x137], 0
js 0x1400ad5d6
lea rax, [rbx + 0x120]
mov rdx, qword [rax + 0x10]
mov qword [rcx + 0x10], rdx
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
jmp 0x1400ad5e9
mov rdx, qword [rbx + 0x120]
mov r8, qword [rbx + 0x128]
call fcn.14015bac0
lea rdx, [rsp + 0x60]
lea rsi, [rsp + 0x90]
mov rcx, r14
mov r8, rsi
mov r9, rsi
call fcn.140047790
cmp byte [rsi + 0x2f], 0
jns 0x1400ad617
mov rcx, qword [rsp + 0xa8]
call fcn.1401b9ce8
cmp byte [rsp + 0xa7], 0
jns 0x1400ad2cc
mov rcx, qword [rsp + 0x90]
call fcn.1401b9ce8
jmp 0x1400ad2cc
call fcn.1401d3c50
int3