Function at 0x14001f598
Capabilities:
Set http header

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x1d8]
sub rsp, 0x2c0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140074020]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rbx, rdx
mov rdi, rcx
mov rcx, rdx
call fcn.14001c624
xor esi, esi
test al, al
jne 0x14001f8d5
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x50], rsi
mov word [rbp + 0x40], si
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.14001c614
jmp 0x14001f6da
lea rdx, [rcx + 0x20]
lea r8, [0x14004e530]
lea rcx, [rbp + 0xa0]
call fcn.14000d630
nop
mov r8, qword [rsp + 0x40]
add r8, 0x40
mov rdx, rax
lea rcx, [rbp + 0x80]
call fcn.14000d79c
nop
lea r8, [0x14004ed64]
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.14000d734
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.14000f4d4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x60]
call fcn.14000b5d0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x80]
call fcn.14000b5d0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xa0]
call fcn.14000b5d0
mov rax, qword [rsp + 0x40]
cmp byte [rax + 0x19], sil
jne 0x14001f6da
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], sil
jne 0x14001f6b7
mov rax, qword [rcx]
jmp 0x14001f6af
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], sil
je 0x14001f6a9
jmp 0x14001f6d5
mov rcx, qword [rax + 8]
jmp 0x14001f6cf
cmp rax, qword [rcx + 0x10]
jne 0x14001f6d5
mov rax, rcx
mov qword [rsp + 0x40], rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], sil
je 0x14001f6bd
mov qword [rsp + 0x40], rcx
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.14001c630
mov rcx, qword [rsp + 0x40]
cmp rcx, qword [rax]
jne 0x14001f604
mov rax, qword [rbp + 0x50]
lea rdx, [rax - 2]
cmp rdx, rax
ja 0x14001f71a
mov qword [rbp + 0x50], rdx
lea rax, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rax, qword [rbp + 0x40]
mov word [rax + rdx*2], si
jmp 0x14001f729
xor r8d, r8d
sub rdx, rax
lea rcx, [rbp + 0x40]
call fcn.140019ed8
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rbp + 0xc0]
call fcn.14000be64
nop
lea rdx, str.HTTP_request
lea rcx, [rbp + 0xc0]
call fcn.14001078c
mov rax, qword [rbp + 0xc0]
movsxd rcx, dword [rax + 4]
and dword [rbp + rcx + 0xd8], 0xfffff9ff
bts dword [rbp + rcx + 0xd8], 0xb
mov rdx, rdi
lea rcx, [rbp + 0xc0]
call fcn.14001e128
lea rdx, str.:_request_headers:
lea rcx, [rbp + 0xc0]
call fcn.14001078c
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0xc0]
call fcn.140010968
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0xc0]
call fcn.14000a6ec
nop
lea rdx, [rbp + 0x60]
mov ecx, 4
call fcn.14001b7a4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x60]
call fcn.14000b5d0
nop
lea rcx, [rbp + 0x148]
call fcn.14000a844
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x148], rax
lea rcx, [rbp + 0x148]
call fcn.140029688
nop
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rdx, qword [rbp + 0x40]
mov r9d, 0x20000000
or r8d, 0xffffffff
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x14001f8c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x58]
call fcn.14000a708
nop
lea rdx, str.WinHttpAddRequestHeaders_failed_with
mov rcx, rax
call fcn.14000da30
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.14000dad8
mov rcx, rax
lea rdx, [rbp + 0x80]
call fcn.14000a6ec
nop
lea rcx, [rbp + 0xa0]
call fcn.14000a7a8
movzx r8d, bx
or r8d, 0x80070000
test ebx, ebx
cmovle r8d, ebx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0xdb
lea r9, str.srcgfehttpaccess.cpp
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xc0]
call fcn.14001ddc0
lea rdx, [0x140072490]
lea rcx, [rbp + 0xc0]
call fcn.14002c720
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x40]
call fcn.14000b5d0
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140027920
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2c0
pop rdi
pop rsi
pop rbp
ret