Function at 0x140047a50
Capabilities:
Set http header

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x218
lea rbp, [rsp + 0x80]
movapd xmmword [rbp + 0x180], xmm8
movapd xmmword [rbp + 0x170], xmm7
movapd xmmword [rbp + 0x160], xmm6
mov qword [rbp + 0x158], 0xfffffffffffffffe
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 0x10
mov rcx, r8
jb 0x140047aa9
mov rcx, qword [rbx]
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], rax
lea r15, [rbp + 0xb8]
lea rdx, [rbp + 0x70]
mov rcx, r15
call fcn.140080c00
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
jb 0x140047ad5
mov rcx, qword [rdi]
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rax
lea r14, [rbp + 0x98]
lea rdx, [rbp + 0x80]
mov rcx, r14
call fcn.140080c00
mov rax, qword [rbp + 0xa8]
mov rcx, qword [rbp + 0xb0]
mov rdx, rcx
sub rdx, rax
cmp rdx, 2
mov qword [rbp + 0xf8], rdi
jae 0x140047b43
mov qword [rsp + 0x20], 2
lea r9, [0x14013e7ae]
lea rcx, [rbp + 0x98]
mov edx, 2
call fcn.140034320
mov r14, rax
mov rdi, rsi
jmp 0x140047b6f
lea rdx, [rax + 2]
mov qword [rbp + 0xa8], rdx
mov rdx, r14
cmp rcx, 8
jb 0x140047b5e
mov rdx, qword [rbp + 0x98]
mov rdi, rsi
mov dword [rdx + rax*2], 0x20003a
mov word [rdx + rax*2 + 4], 0
movupd xmm0, xmmword [r14]
movups xmm1, xmmword [r14 + 0x10]
movaps xmmword [rbp + 0x140], xmm1
movapd xmmword [rbp + 0x130], xmm0
mov qword [r14 + 0x10], 0
mov qword [r14 + 0x18], 7
mov word [r14], 0
xorpd xmm0, xmm0
movapd xmmword [rbp + 0x110], xmm0
movapd xmmword [rbp + 0x100], xmm0
mov r14, qword [rbp + 0x140]
mov r13, qword [rbp + 0x148]
mov rsi, qword [rbp + 0xc8]
mov rax, qword [rbp + 0xd0]
lea r12, [rsi + r14]
mov rcx, r13
sub rcx, r14
cmp rsi, rcx
ja 0x140047c43
cmp rax, r13
ja 0x140047c43
movapd xmm0, xmmword [rbp + 0x130]
movaps xmm1, xmmword [rbp + 0x140]
movaps xmmword [rbp + 0x110], xmm1
movapd xmmword [rbp + 0x100], xmm0
mov qword [rbp + 0x140], 0
mov qword [rbp + 0x148], 7
mov word [rbp + 0x130], 0
cmp qword [rbp + 0x118], 8
jb 0x140047d3f
mov rcx, qword [rbp + 0x100]
cmp rax, 8
jae 0x140047d4c
jmp 0x140047d53
sub rax, rsi
cmp r14, rax
jbe 0x140047cd4
mov qword [rbp + 0x150], rbx
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, r14
cmp rax, rsi
jb 0x140048856
mov rax, r12
or rax, 7
cmp rax, rcx
ja 0x140048851
cmp rax, 0xb
mov ebx, 0xa
cmovae rbx, rax
lea rcx, [rbx + rbx]
cmp rbx, 0x7ff
jb 0x140047d82
movabs rax, 0x7fffffffffffffec
cmp rbx, rax
jae 0x140048851
add rcx, 0x29
call fcn.1400cd3b4
mov r15, rax
add r15, 0x27
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
mov r13, qword [rbp + 0x148]
jmp 0x140047d8e
movupd xmm0, xmmword [rbp + 0xb8]
movups xmm1, xmmword [rbp + 0xc8]
movapd xmmword [rbp + 0x100], xmm0
movaps xmmword [rbp + 0x110], xmm1
mov qword [rbp + 0xc8], 0
mov qword [rbp + 0xd0], 7
mov word [rbp + 0xb8], 0
mov r15, qword [rbp + 0x100]
lea rcx, [r15 + r14*2]
lea r8, [rsi + rsi]
add r8, 2
mov rdx, r15
call fcn.1401022e0
cmp qword [rbp + 0x148], 8
jb 0x140047d64
mov rdx, qword [rbp + 0x130]
jmp 0x140047d6b
lea rcx, [rbp + 0x100]
cmp rax, 8
jb 0x140047d53
mov r15, qword [rbp + 0xb8]
lea rcx, [rcx + r14*2]
lea r8, [rsi + rsi]
add r8, 2
mov rdx, r15
jmp 0x140047d74
lea rdx, [rbp + 0x130]
add r14, r14
mov rcx, r15
mov r8, r14
call fcn.1401022e0
mov qword [rbp + 0x110], r12
jmp 0x140047df7
add rcx, 2
call fcn.1400cd3b4
mov r15, rax
mov qword [rbp + 0x100], r15
mov qword [rbp + 0x110], r12
mov qword [rbp + 0x118], rbx
cmp r13, 8
jb 0x140047db2
mov rdx, qword [rbp + 0x130]
jmp 0x140047db9
lea rdx, [rbp + 0x130]
mov rbx, qword [rbp + 0x150]
lea r8, [r14 + r14]
mov rcx, r15
call fcn.1401022e0
cmp qword [rbp + 0xd0], 8
jb 0x140047ddf
mov rdx, qword [rbp + 0xb8]
jmp 0x140047de6
lea rdx, [rbp + 0xb8]
lea rcx, [r15 + r14*2]
lea r8, [rsi + rsi]
add r8, 2
call fcn.1401022e0
mov rax, qword [rbp + 0x148]
cmp rax, 8
jb 0x140047e43
mov rcx, qword [rbp + 0x130]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140047e3e
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140048757
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.1400cd44c
mov rax, qword [rbp + 0xb0]
cmp rax, 8
jb 0x140047e8f
mov rcx, qword [rbp + 0x98]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140047e8a
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140048757
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.1400cd44c
mov rax, qword [rbp + 0xd0]
cmp rax, 8
jb 0x140047edb
mov rcx, qword [rbp + 0xb8]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140047ed6
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140048757
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.1400cd44c
mov r8d, dword [rbp + 0x110]
cmp qword [rbp + 0x118], 8
jb 0x140047ef5
mov rdx, qword [rbp + 0x100]
jmp 0x140047efc
lea rdx, [rbp + 0x100]
mov rcx, rdi
mov r9d, 0x40000000
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov esi, eax
test eax, eax
jne 0x1400483ea
mov r14, qword [0x140172838]
movzx eax, byte [r14 + 0x50]
cmp al, 6
ja 0x1400483ea
mov eax, dword [0x140171310]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov eax, dword [rax + 0x138]
test al, 1
mov r15, qword [rbp + 0xf8]
je 0x1400486da
mov dword [rbp + 0xf4], esi
mov qword [rbp + 0x150], rbx
mov eax, dword [0x140171310]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rbx, qword [rax + 0x128]
cmp byte [rbx + 0x280], 1
jne 0x14004885b
mov qword [rbp + 0x90], r14
mov rax, qword [r15 + 0x10]
mov rcx, qword [rbp + 0x150]
mov rcx, qword [rcx + 0x10]
lea r13, [rax + rcx]
add r13, 0x20
lea r14d, [r13 + 0x20]
mov rax, qword [rbx + 0x80]
mov edx, dword [rax + 0x80]
mov ecx, dword [rax + 0x180]
sub edx, ecx
add edx, dword [rax + 0x188]
cmp edx, r14d
jae 0x140047fe6
mov edx, dword [rax + 0x200]
mov dword [rax + 0x188], edx
mov ecx, dword [rax + 0x180]
add edx, dword [rax + 0x80]
sub edx, ecx
cmp edx, r14d
jb 0x140048009
mov r12, qword [rax + 0x90]
test r12, r12
je 0x140048009
and ecx, dword [rax + 0x84]
add r12, rcx
test r12, r12
jne 0x1400482c5
jmp 0x140048465
mov rax, qword [rbx + 0x80]
mov r15d, dword [rax + 0x80]
lea esi, [r13 + 0x21]
nop dword [rax + rax]
add r15, r15
cmp r15, rsi
jb 0x140048020
mov ecx, 0x80000001
cmp r15, rcx
jb 0x140048135
cmp r14d, 0xfffffffe
jg 0x14004846c
lea rcx, [rbp + 0x98]
mov edx, 0x80000000
call fcn.140003900
lea rcx, [rbp - 0x10]
mov rdx, r15
call fcn.140003900
lea rcx, [rbp + 0x50]
mov edx, r14d
call fcn.14000bbc0
lea rdx, str.logging_single_messages_greater_than_2_GB_is_not_supported._nbytes:
lea rcx, [rbp + 0x30]
lea r8, [rbp + 0x50]
call fcn.14000b8d0
lea r8, [0x14013dfbe]
lea rcx, [rbp + 0x10]
lea rdx, [rbp + 0x30]
call fcn.14000b830
lea rcx, [rbp - 0x30]
lea r8, [rbp + 0x10]
lea r9, [rbp - 0x10]
call fcn.140003750
lea r8, str._max_bounded_queue_capacity:
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x30]
call fcn.14000b830
lea rcx, [rbp + 0x130]
lea r8, [rbp - 0x50]
lea r9, [rbp + 0x98]
call fcn.140003750
xorpd xmm0, xmm0
movupd xmmword [rbp + 0xc0], xmm0
lea rax, vtable.quill::QuillError.0
mov qword [rbp + 0xb8], rax
movupd xmm0, xmmword [rbp + 0x130]
movups xmm1, xmmword [rbp + 0x140]
movupd xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm1
mov qword [rbp + 0x140], 0
mov qword [rbp + 0x148], 0xf
mov byte [rbp + 0x130], 0
lea rdx, [0x140147010]
lea rcx, [rbp + 0xb8]
call fcn.1400d37ac
mov ecx, dword [rax + 0x180]
mov dword [rax + 0x100], ecx
mov ecx, 0x300
mov edx, 0x80
call fcn.1400cd3f0
movzx r12d, byte [rbx]
mov qword [rax], 0
test r15d, r15d
js 0x14004819b
lea ecx, [r15 - 1]
test r15d, ecx
sete dl
test r15d, r15d
setne cl
test cl, dl
jne 0x1400481a1
mov ecx, r15d
cvtsi2sd xmm0, rcx
mov r15, rax
call fcn.1400e74ac
addsd xmm0, qword [0x140126ed8]
call fcn.1400e5cfc
mov rax, r15
cvttsd2si r15, xmm0
jmp 0x1400481a1
mov r15d, 0x80000000
mov qword [rbp + 0x128], rax
mov dword [rax + 0x80], r15d
lea ecx, [r15 - 1]
mov dword [rax + 0x84], ecx
mov r15d, r15d
xorps xmm0, xmm0
cvtsi2sd xmm0, r15
mulsd xmm0, qword [0x14012dff0]
divsd xmm0, qword [0x14012dff8]
cvttsd2si rcx, xmm0
mov dword [rax + 0x88], ecx
add r15, r15
mov edx, 0x80
mov rcx, r15
mov r8d, r12d
call fcn.14009e990
mov rdi, qword [rbp + 0x128]
mov qword [rdi + 0x90], rax
mov dword [rdi + 0x100], 0
mov qword [rdi + 0x180], 0
mov dword [rdi + 0x188], 0
mov dword [rdi + 0x200], 0
mov qword [rdi + 0x280], 0
mov dword [rdi + 0x288], 0
xor r12d, r12d
mov rcx, rax
xor edx, edx
mov r8, r15
call fcn.140102980
xor eax, eax
xchg dword [rdi + 0x100], eax
xchg dword [rdi + 0x200], r12d
mov rax, qword [rbx + 0x80]
mov qword [rax], rdi
mov qword [rbx + 0x80], rdi
mov eax, dword [rdi + 0x80]
mov r12d, dword [rdi + 0x180]
sub eax, r12d
add eax, dword [rdi + 0x188]
cmp eax, r14d
jae 0x1400482ae
mov eax, dword [rdi + 0x200]
mov dword [rdi + 0x188], eax
mov r12d, dword [rdi + 0x180]
add eax, dword [rdi + 0x80]
sub eax, r12d
cmp eax, r14d
jb 0x14004846c
and r12d, dword [rdi + 0x84]
add r12, qword [rdi + 0x90]
test r12, r12
je 0x140048465
mov rsi, qword [rbp + 0x90]
movzx eax, byte [rsi + 0x39]
cmp eax, 1
je 0x1400482ea
test eax, eax
jne 0x1400482f5
rdtsc
mov rcx, rax
mov rax, rdx
shl rax, 0x20
or rax, rcx
jmp 0x140048306
call fcn.1400ceeb4
imul rax, rax, 0x64
jmp 0x140048306
mov rcx, qword [rsi + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, qword [rbp + 0x90]
mov rdi, qword [rbp + 0xf8]
lea r14, [r12 + 7]
and r14, 0xfffffffffffffff8
lea rcx, [0x1400c3bc0]
mov qword [r14], rcx
mov qword [r14 + 8], rsi
mov qword [r14 + 0x10], rax
mov rax, qword [rdi + 0x10]
mov qword [r14 + 0x18], rax
add r14, 0x20
test rax, rax
je 0x140048352
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x14004834a
mov rdx, qword [rdi]
mov rcx, r14
call fcn.1401022e0
mov rax, qword [rdi + 0x10]
lea rdi, [r14 + rax]
add rdi, 7
and rdi, 0xfffffffffffffff8
mov rax, qword [rbp + 0x150]
mov rax, qword [rax + 0x10]
mov qword [rdi], rax
add rdi, 8
test rax, rax
je 0x14004839d
mov rdx, qword [rbp + 0x150]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140048395
mov rax, qword [rbp + 0x150]
mov rdx, qword [rax]
mov rcx, rdi
call fcn.1401022e0
cmp byte [rbx + 0x280], 1
jne 0x140048860
mov rax, qword [rbp + 0x150]
add edi, dword [rax + 0x10]
sub edi, r12d
mov rax, qword [rbx + 0x80]
add dword [rax + 0x180], edi
cmp byte [rbx + 0x280], 1
jne 0x140048865
mov rax, qword [rbx + 0x80]
mov ecx, dword [rax + 0x180]
mov dword [rax + 0x100], ecx
mov esi, dword [rbp + 0xf4]
mov rax, qword [rbp + 0x118]
cmp rax, 8
jb 0x140048436
mov rcx, qword [rbp + 0x100]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140048431
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140048757
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.1400cd44c
test esi, esi
setne al
movaps xmm6, xmmword [rbp + 0x160]
movaps xmm7, xmmword [rbp + 0x170]
movaps xmm8, xmmword [rbp + 0x180]
add rsp, 0x218
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
add r13d, 0x21
mov rsi, r13
lock inc qword [rbx + 0x380]
lea r15, [rbp + 0xb8]
mov r13d, 0x80000001
movsd xmm6, qword [0x14012dff0]
movsd xmm7, qword [0x14012dff8]
movsd xmm8, qword [0x140126ed8]
jmp 0x1400484be
mov r12, qword [rax + 0x90]
test r12, r12
je 0x14004851d
and ecx, dword [rax + 0x84]
add r12, rcx
test r12, r12
jne 0x1400482c5
mov qword [rbp + 0xb8], 0x320
mov rcx, r15
call fcn.140015710
cmp byte [rbx + 0x280], 1
jne 0x140048752
mov rax, qword [rbx + 0x80]
mov edx, dword [rax + 0x80]
mov ecx, dword [rax + 0x180]
sub edx, ecx
add edx, dword [rax + 0x188]
cmp edx, r14d
jae 0x1400484a0
mov edx, dword [rax + 0x200]
mov dword [rax + 0x188], edx
mov ecx, dword [rax + 0x180]
add edx, dword [rax + 0x80]
sub edx, ecx
cmp edx, r14d
jae 0x1400484a0
mov rax, qword [rbx + 0x80]
mov r12d, dword [rax + 0x80]
nop dword [rax + rax]
add r12, r12
cmp r12, rsi
jb 0x140048530
cmp r12, r13
jb 0x140048550
cmp r14d, 0xfffffffe
jle 0x14004875c
xor r12d, r12d
jmp 0x1400484b5
mov ecx, dword [rax + 0x180]
mov dword [rax + 0x100], ecx
mov ecx, 0x300
mov edx, 0x80
call fcn.1400cd3f0
movzx r13d, byte [rbx]
mov qword [rax], 0
test r12d, r12d
js 0x1400485b4
lea ecx, [r12 - 1]
test r12d, ecx
sete dl
test r12d, r12d
setne cl
test cl, dl
jne 0x1400485ba
mov ecx, r12d
cvtsi2sd xmm0, rcx
mov r12, rax
call fcn.1400e74ac
addsd xmm0, xmm8
call fcn.1400e5cfc
mov rax, r12
cvttsd2si r12, xmm0
jmp 0x1400485ba
mov r12d, 0x80000000
mov qword [rbp + 0x128], rax
mov dword [rax + 0x80], r12d
lea ecx, [r12 - 1]
mov dword [rax + 0x84], ecx
mov r12d, r12d
xorps xmm0, xmm0
cvtsi2sd xmm0, r12
mulsd xmm0, xmm6
divsd xmm0, xmm7
cvttsd2si rcx, xmm0
mov dword [rax + 0x88], ecx
add r12, r12
mov edx, 0x80
mov rcx, r12
mov r8d, r13d
call fcn.14009e990
mov rdi, qword [rbp + 0x128]
mov qword [rdi + 0x90], rax
mov dword [rdi + 0x100], 0
mov qword [rdi + 0x180], 0
mov dword [rdi + 0x188], 0
mov dword [rdi + 0x200], 0
mov qword [rdi + 0x280], 0
mov dword [rdi + 0x288], 0
mov rcx, rax
xor edx, edx
mov r8, r12
call fcn.140102980
xor eax, eax
xchg dword [rdi + 0x100], eax
xor eax, eax
xchg dword [rdi + 0x200], eax
mov rax, qword [rbx + 0x80]
mov qword [rax], rdi
mov qword [rbx + 0x80], rdi
mov eax, dword [rdi + 0x80]
mov r12d, dword [rdi + 0x180]
sub eax, r12d
add eax, dword [rdi + 0x188]
cmp eax, r14d
mov r13d, 0x80000001
mov rcx, rdi
jae 0x1400486c7
mov eax, dword [rcx + 0x200]
mov dword [rcx + 0x188], eax
mov r12d, dword [rcx + 0x180]
add eax, dword [rcx + 0x80]
sub eax, r12d
cmp eax, r14d
jb 0x140048547
and r12d, dword [rcx + 0x84]
add r12, qword [rcx + 0x90]
jmp 0x1400484b5
mov rdx, qword [r14 + 0x48]
or eax, 1
mov ecx, dword [0x140171310]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov dword [rcx + 0x138], eax
mov rax, qword [rdx]
mov r8d, dword [rax + 0xe8]
cmp qword [rax + 0x30], 0
je 0x140048711
mov r9d, dword [rax + 0x48]
jmp 0x140048717
mov r9d, 1
movzx eax, byte [rax + 0xec]
mov byte [rsp + 0x20], al
mov eax, dword [0x140171310]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x120]
call fcn.14000b160
lea rcx, [0x140015950]
call fcn.1400cd650
jmp 0x140047f51
call fcn.14000b7a0
call fcn.1400e193c
lea rcx, [rbp + 0x98]
mov edx, 0x80000000
call fcn.140003900
lea rcx, [rbp - 0x10]
mov rdx, r12
call fcn.140003900
lea rcx, [rbp + 0x50]
mov edx, r14d
call fcn.14000bbc0
lea rdx, str.logging_single_messages_greater_than_2_GB_is_not_supported._nbytes:
lea rcx, [rbp + 0x30]
lea r8, [rbp + 0x50]
call fcn.14000b8d0
lea r8, [0x14013dfbe]
lea rcx, [rbp + 0x10]
lea rdx, [rbp + 0x30]
call fcn.14000b830
lea rcx, [rbp - 0x30]
lea r8, [rbp + 0x10]
lea r9, [rbp - 0x10]
call fcn.140003750
lea r8, str._max_bounded_queue_capacity:
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x30]
call fcn.14000b830
lea rcx, [rbp + 0x130]
lea r8, [rbp - 0x50]
lea r9, [rbp + 0x98]
call fcn.140003750
xorpd xmm0, xmm0
movupd xmmword [rbp + 0xc0], xmm0
lea rax, vtable.quill::QuillError.0
mov qword [rbp + 0xb8], rax
movupd xmm0, xmmword [rbp + 0x130]
movups xmm1, xmmword [rbp + 0x140]
movupd xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm1
mov qword [rbp + 0x140], 0
mov qword [rbp + 0x148], 0xf
mov byte [rbp + 0x130], 0
lea rdx, [0x140147010]
lea rcx, [rbp + 0xb8]
call fcn.1400d37ac
call fcn.140002660
call fcn.140002640
call fcn.14000b7a0
call fcn.14000b7a0
call fcn.14000b7a0
int3