Function at 0x180007c5c
Capabilities:
Set http header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5b80]
mov eax, 0x5c80
call fcn.180022fc0
sub rsp, rax
mov r15, rcx
movsxd rdi, r8d
mov rbx, rdx
xor r12d, r12d
mov esi, 0x17ff
lea rcx, [rbp + 0x2b81]
mov r8d, esi
xor edx, edx
mov r14d, r12d
mov byte [rbp + 0x2b80], r12b
call fcn.18001cca0
lea rcx, [rbp + 0x4381]
mov r8d, esi
xor edx, edx
mov dword [rbp + 0x5bd8], 0x1800
mov byte [rbp + 0x4380], r12b
call fcn.18001cca0
lea rcx, [rbp + 0x781]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp + 0x780], r12b
call fcn.18001cca0
call fcn.1800061e0
lea rcx, [rbp + 0x791]
mov edx, eax
mov r13d, eax
call fcn.180006468
lea r8d, [r12 + 0x11]
lea rcx, [rbp + 0x780]
mov rdx, rbx
call fcn.18001cfc0
lea edx, [r13 + 0x11]
lea r9, [rbp + 0x5bd8]
lea r8, [rbp + 0x4380]
lea rcx, [rbp + 0x780]
call fcn.180001ee0
test eax, eax
je 0x180008216
mov esi, dword [rbp + 0x5bd8]
test esi, esi
jle 0x180008216
cmp rdi, 0x11
jbe 0x180007d9c
lea rcx, [rbx + 0x11]
mov r14d, 0x1800
mov dword [rbp + 0x5bd8], r14d
test rcx, rcx
je 0x180007d88
lea edx, [rdi - 0x11]
lea r9, [rbp + 0x5bd8]
lea r8, [rbp + 0x2b80]
call fcn.180001ee0
mov r14d, dword [rbp + 0x5bd8]
jmp 0x180007d8b
mov eax, r12d
test eax, eax
je 0x180008216
test r14d, r14d
jle 0x180008216
lea edi, [rsi + 0x200]
lea rcx, [rbp + 0xb82]
xor edx, edx
mov r8d, 0x1ffe
mov word [rbp + 0xb80], r12w
add edi, r14d
call fcn.18001cca0
movsxd r12, edi
mov rcx, 0xffffffffffffffff
mov eax, 2
mov qword [rsp + 0x48], r12
mul r12
cmovo rax, rcx
mov rcx, rax
call fcn.18001e994
xor edi, edi
lea rcx, [rsp + 0x52]
lea r8d, [rdi + 0x26]
xor edx, edx
mov word [rsp + 0x50], di
mov rbx, rax
mov qword [rsp + 0x40], rax
call fcn.18001cca0
lea edx, [rdi + 4]
lea ecx, [rdi + 1]
xor r8d, r8d
call fcn.1800062c0
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov ecx, eax
call fcn.180006308
lea rax, [rsp + 0x50]
lea r9, str.Cookie:__s
mov qword [rsp + 0x20], rax
mov eax, 0x1000
lea rcx, [rbp + 0xb80]
mov r8d, eax
mov edx, eax
call fcn.18001d8b4
movzx eax, di
lea rdi, [rsp + 0x50]
mov ecx, 0x14
lea r8, [rbp + 0xb80]
mov rdx, r12
rep stosw word [rdi], ax
mov rcx, rbx
call fcn.18001dfa4
lea rax, [rbp + 0xb80]
lea r8, [rbp + 0x4380]
mov r9d, esi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rcx, eax
xor edi, edi
lea r8, [rbp + 0xb80]
mov word [rbp + rcx*2 + 0xb80], di
mov rcx, rbx
mov rdx, r12
call fcn.18001e904
call fcn.18001df24
lea esi, [rax + r13]
mov eax, 0x66666667
imul esi
sar edx, 2
cmp r14d, 0x400
jle 0x180007edf
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
add ecx, ecx
sub esi, ecx
add esi, 0xa
jmp 0x180007ef0
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
add eax, eax
sub esi, eax
add esi, 0x1e
mov r12d, edi
test r14d, r14d
jle 0x1800080b0
mov r15, rbx
imul r13d, r13d
mov ebx, 2
movzx eax, di
xor edx, edx
lea rdi, [rbp + 0xb80]
mov ecx, 0x1000
lea r8d, [rdx + 0x14]
rep stosw word [rdi], ax
lea rcx, [rsp + 0x50]
call fcn.18001cca0
mov ecx, ebx
mov eax, 0x55555556
xor r8d, r8d
imul ecx, r12d
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
sub ecx, eax
lea edx, [rcx + 4]
inc ecx
call fcn.1800062c0
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov ecx, eax
call fcn.180006308
lea rax, [rsp + 0x50]
lea r9, str.___s
mov qword [rsp + 0x20], rax
mov eax, 0x1000
lea rcx, [rbp + 0xb80]
mov r8d, eax
mov edx, eax
call fcn.18001d8b4
mov rdx, qword [rsp + 0x48]
xor eax, eax
movzx eax, ax
lea rdi, [rsp + 0x50]
mov ecx, 0x14
rep stosw word [rdi], ax
lea r8, [rbp + 0xb80]
mov rcx, r15
call fcn.18001e904
imul ebx, ebx
mov qword [rbp + 0x5bd8], rbx
call fcn.18001df24
lea ebx, [rax + r13]
mov eax, 0x66666667
add ebx, dword [rbp + 0x5bd8]
imul ebx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea eax, [rdx + rdx*4]
shl eax, 3
sub ebx, eax
call fcn.18001df24
mov edi, eax
mov eax, 0x66666667
add edi, dword [rbp + 0x5bd8]
imul edi
mov eax, 0x51eb851f
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
shl ecx, 2
sub edi, ecx
add edi, ebx
add edi, esi
imul edi, r14d
imul edi
mov ebx, edx
sar ebx, 5
mov eax, ebx
shr eax, 0x1f
add ebx, eax
lea eax, [r12 + rbx]
cmp eax, r14d
jle 0x18000802e
mov ebx, r14d
sub ebx, r12d
xor eax, eax
mov edx, 0x1000
lea rdi, [rbp + 0xb80]
movzx eax, ax
mov ecx, edx
mov dword [rsp + 0x28], edx
rep stosw word [rdi], ax
movsxd rax, r12d
lea r8, [rbp + 0x2b80]
add r8, rax
lea rax, [rbp + 0xb80]
mov r9d, ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rdx, qword [rsp + 0x48]
xor edi, edi
movsxd rcx, eax
lea r8, [rbp + 0xb80]
mov word [rbp + rcx*2 + 0xb80], di
mov rcx, r15
call fcn.18001e904
add r12d, ebx
mov rbx, qword [rbp + 0x5bd8]
inc ebx
cmp r12d, r14d
jl 0x180007f08
mov r15, qword [rbp + 0x5bc0]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [r15 + 0x280]
lea rdx, str.Cookie:
mov r9d, 0x80000000
or r8d, 0xffffffff
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov rcx, rbx
call fcn.18001d570
mov rcx, qword [r15 + 0x280]
mov r14d, 0xa0000000
mov r9d, r14d
mov rdx, rbx
mov r8, rax
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
xor esi, esi
test eax, eax
je 0x180008216
mov rcx, rbx
call fcn.18001e98c
lea rcx, [rbp - 0x7e]
xor edx, edx
mov r8d, 0x7fe
mov word [rbp - 0x80], si
call fcn.18001cca0
lea edx, [rsi + 0x32]
lea r9, str.Content_Length:_0
lea rcx, [rbp - 0x80]
mov r8d, edx
call fcn.18001d8b4
lea rcx, [rbp - 0x80]
call fcn.18001d570
mov rcx, qword [r15 + 0x280]
lea rdx, [rbp - 0x80]
mov r8, rax
mov r9d, r14d
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x180008216
mov ebx, 0x400
movzx eax, si
lea rdi, [rbp - 0x80]
mov ecx, ebx
lea r8, str.User_Agent:
mov edx, ebx
rep stosw word [rdi], ax
lea rcx, [rbp - 0x80]
call fcn.18001dfa4
lea r8, [r15 + 0x64]
lea rcx, [rbp - 0x80]
mov edx, ebx
call fcn.18001e904
lea rcx, [rbp - 0x80]
call fcn.18001d570
mov rcx, qword [r15 + 0x280]
lea rdx, [rbp - 0x80]
mov r8, rax
mov r9d, r14d
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x180008216
mov edx, 0x80
movzx eax, si
lea rdi, [rbp - 0x80]
mov ecx, edx
lea r8, str.Cache_Control:_no_cache
rep stosw word [rdi], ax
lea rcx, [rbp - 0x80]
call fcn.18001dfa4
lea rcx, [rbp - 0x80]
call fcn.18001d570
mov rcx, qword [r15 + 0x280]
lea rdx, [rbp - 0x80]
mov r8, rax
mov r9d, r14d
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x180008216
mov rcx, qword [r15 + 0x280]
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
jmp 0x180008218
xor eax, eax
mov rbx, qword [rsp + 0x5cc8]
add rsp, 0x5c80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret