Function at 0x18000823c
Capabilities:
Make an http request with a cookie
Send data
Send http request
Set http header

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3770]
mov eax, 0x3870
call fcn.180022fc0
sub rsp, rax
movsxd r13, r8d
mov r15, rdx
mov rbx, rcx
cmp r13, 0x11
jb 0x180008636
mov esi, 0x1000
lea rcx, [rbp + 0x771]
xor edi, edi
lea r8d, [rsi - 1]
xor edx, edx
mov dword [rbp + 0x37c0], esi
mov byte [rbp + 0x770], dil
call fcn.18001cca0
test r15, r15
je 0x1800082c0
lea r9, [rbp + 0x37c0]
lea r8, [rbp + 0x770]
lea edx, [rdi + 0x11]
mov rcx, r15
call fcn.180001ee0
mov esi, dword [rbp + 0x37c0]
jmp 0x1800082c2
mov eax, edi
test eax, eax
je 0x180008636
test esi, esi
jle 0x180008636
lea rcx, [rbp + 0x1772]
xor edx, edx
mov r8d, 0x1ffe
mov word [rbp + 0x1770], di
call fcn.18001cca0
lea eax, [rsi + 0x200]
movsxd r14, eax
mov rcx, 0xffffffffffffffff
mov eax, 2
mul r14
cmovo rax, rcx
mov rcx, rax
call fcn.18001e994
mov r12, rax
test r14, r14
je 0x180008327
movzx eax, di
mov rcx, r14
mov rdi, r12
rep stosw word [rdi], ax
xor edi, edi
xor edx, edx
lea rcx, [rsp + 0x42]
mov word [rsp + 0x40], di
lea r8d, [rdx + 0x26]
call fcn.18001cca0
xor r8d, r8d
lea edx, [r8 + 4]
lea ecx, [rdx - 3]
call fcn.1800062c0
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov ecx, eax
call fcn.180006308
lea rax, [rsp + 0x40]
lea r9, str.Cookie:__s
mov qword [rsp + 0x20], rax
mov eax, 0x1000
lea rcx, [rbp + 0x1770]
mov r8d, eax
mov edx, eax
call fcn.18001d8b4
movzx eax, di
lea rdi, [rsp + 0x40]
mov ecx, 0x14
lea r8, [rbp + 0x1770]
mov rdx, r14
rep stosw word [rdi], ax
mov rcx, r12
call fcn.18001dfa4
lea rax, [rbp + 0x1770]
lea r8, [rbp + 0x770]
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 esi, esi
lea r8, [rbp + 0x1770]
mov word [rbp + rcx*2 + 0x1770], si
mov rcx, r12
mov rdx, r14
call fcn.18001e904
mov rcx, qword [rbx + 0x288]
lea rdx, str.Cookie:
mov r9d, 0x80000000
or r8d, 0xffffffff
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov rcx, r12
call fcn.18001d570
mov rcx, qword [rbx + 0x288]
mov r9d, 0xa0000000
mov r8, rax
mov rdx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x180008636
mov rcx, r12
call fcn.18001e98c
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x70], si
call fcn.18001cca0
lea edx, [rsi + 0x32]
lea rax, [r13 - 0x11]
lea r9, str.Content_Length:__d
lea rcx, [rsp + 0x70]
mov r8d, edx
mov qword [rsp + 0x20], rax
call fcn.18001d8b4
lea rcx, [rsp + 0x70]
call fcn.18001d570
mov rcx, qword [rbx + 0x288]
mov r12d, 0xa0000000
lea rdx, [rsp + 0x70]
mov r9d, r12d
mov r8, rax
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x180008636
movzx eax, si
mov r14d, 0x400
lea rdi, [rsp + 0x70]
mov ecx, r14d
lea r8, str.Content_Type:_application_octet_stream__charsetutf_8
mov edx, 0x80
rep stosw word [rdi], ax
lea rcx, [rsp + 0x70]
call fcn.18001dfa4
lea rcx, [rsp + 0x70]
call fcn.18001d570
mov rcx, qword [rbx + 0x288]
lea rdx, [rsp + 0x70]
mov r8, rax
mov r9d, r12d
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x180008636
movzx eax, si
lea rdi, [rsp + 0x70]
mov ecx, r14d
rep stosw word [rdi], ax
lea r8, str.Content_Encoding:_gzip
lea rcx, [rsp + 0x70]
mov edx, 0x80
call fcn.18001dfa4
lea rcx, [rsp + 0x70]
call fcn.18001d570
mov rcx, qword [rbx + 0x288]
lea rdx, [rsp + 0x70]
mov r8, rax
mov r9d, r12d
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x180008636
movzx eax, si
lea rdi, [rsp + 0x70]
mov ecx, r14d
rep stosw word [rdi], ax
lea r8, str.Cache_Control:_no_cache
lea rcx, [rsp + 0x70]
mov edx, 0x80
call fcn.18001dfa4
lea rcx, [rsp + 0x70]
call fcn.18001d570
mov rcx, qword [rbx + 0x288]
lea rdx, [rsp + 0x70]
mov r8, rax
mov r9d, r12d
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x180008636
movzx eax, si
lea rdi, [rsp + 0x70]
mov ecx, r14d
rep stosw word [rdi], ax
lea r8, str.User_Agent:
lea rcx, [rsp + 0x70]
mov edx, r14d
call fcn.18001dfa4
lea r8, [rbx + 0x64]
lea rcx, [rsp + 0x70]
mov edx, r14d
call fcn.18001e904
lea rcx, [rsp + 0x70]
call fcn.18001d570
mov rcx, qword [rbx + 0x280]
lea rdx, [rsp + 0x70]
mov r8, rax
mov r9d, r12d
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x180008636
mov rcx, qword [rbx + 0x288]
mov qword [rsp + 0x30], rsi
lea edi, [r13 - 0x11]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x180008636
mov rcx, qword [rbx + 0x288]
lea rdx, [r15 + 0x11]
lea r9, [rbp + 0x37c8]
mov r8d, edi
mov dword [rbp + 0x37c8], esi
call qword [sym.imp.WINHTTP.dll_WinHttpWriteData]
jmp 0x180008638
xor eax, eax
mov rbx, qword [rsp + 0x38b0]
add rsp, 0x3870
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret