Function at 0x1401982f0
Capabilities:
Prepare http request
Receive http response
Set http header

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x140713740]
xor rax, rsp
mov qword [rbp - 0x21], rax
mov rbx, r9
mov qword [rsp + 0x50], r8
mov r12, rdx
mov r14, rcx
mov qword [rsp + 0x58], rcx
mov qword [rbp - 0x79], rdx
mov rax, qword [rbp + 0x6f]
mov qword [rsp + 0x48], rax
mov rsi, qword [rbp + 0x7f]
xor r13b, r13b
cmp qword [rcx], 0
je 0x1401984be
xor r15d, r15d
mov word [rsp + 0x40], r15w
xorps xmm0, xmm0
movups xmmword [rbp - 0x51], xmm0
movdqa xmm6, xmmword [0x140539e60]
movdqu xmmword [rbp - 0x41], xmm6
mov word [rbp - 0x51], r15w
movups xmmword [rbp - 0x71], xmm0
movdqu xmmword [rbp - 0x61], xmm6
mov word [rbp - 0x71], r15w
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x71]
lea rdx, [rbp - 0x51]
mov rcx, r12
call fcn.140197a10
lea rdx, [rbp - 0x51]
cmp qword [rbp - 0x39], 7
cmova rdx, qword [rbp - 0x51]
xor r9d, r9d
movzx edi, word [rsp + 0x40]
movzx r8d, di
mov rcx, qword [r14]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r10, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14019842a
lea rax, [0x14042e378]
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], r15
mov edx, 0x1bb
mov ecx, r15d
mov eax, 0x800000
cmp di, dx
cmove ecx, eax
mov rax, qword [r14 + 8]
lea r8, [rbp - 0x71]
cmp qword [rbp - 0x59], 7
cmova r8, qword [rbp - 0x71]
mov dword [rsp + 0x30], ecx
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [0x14042e380]
mov rdx, rbx
mov rcx, r10
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
jne 0x1401984cd
mov rdx, qword [rbp - 0x59]
cmp rdx, 7
jbe 0x14019846a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140198465
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140198736
call fcn.1403e5198
mov word [rbp - 0x71], r15w
movdqu xmmword [rbp - 0x61], xmm6
mov rdx, qword [rbp - 0x39]
cmp rdx, 7
jbe 0x1401984b4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
cmp rdx, 0x1000
mov rax, rcx
jb 0x1401984af
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140198730
call fcn.1403e5198
movdqu xmmword [rbp - 0x41], xmm6
mov word [rbp - 0x51], r15w
mov rcx, r12
call fcn.1400fdd00
xor al, al
jmp 0x140198708
mov edi, r15d
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
sub rax, rdx
sar rax, 5
test rax, rax
je 0x1401985c3
xor ebx, ebx
lea r11, str.Content_Type:
lea r10, [rbx + rdx]
mov rcx, qword [r10 + 0x10]
cmp qword [r10 + 0x18], 7
jbe 0x140198502
mov r10, qword [r10]
cmp rcx, 0xd
jb 0x14019856a
add rcx, 0xfffffffffffffff3
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea r9, [r10 + rax*2]
mov r8, r9
sub r8, r11
cmp word [r9], 0x43
jne 0x140198641
mov edx, ntohs
mov rax, r11
nop word [rax + rax]
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x140198641
add rax, 2
sub rdx, 1
jne 0x140198540
sub r9, r10
sar r9, 1
cmp r9, 0xffffffffffffffff
mov eax, 1
cmovne edi, eax
mov rdx, qword [rsi]
add rdx, rbx
cmp qword [rdx + 0x18], 7
jbe 0x14019857a
mov rdx, qword [rdx]
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x140198657
inc r15d
add rbx, 0x20
mov rdx, qword [rsi]
mov rcx, qword [rsi + 8]
sub rcx, rdx
sar rcx, 5
movsxd rax, r15d
cmp rax, rcx
lea r11, str.Content_Type:
jb 0x1401984f0
test edi, edi
jne 0x1401985e3
mov r9d, 0x20000000
mov r8d, 0xffffffff
lea rdx, [0x14042e3c0]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x140198657
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov eax, dword [rbp + 0x77]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x48]
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140198659
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140198659
mov rdx, qword [rsp + 0x50]
mov rcx, r14
call fcn.140197eb0
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 0x18], eax
movzx r13d, r13b
test eax, eax
mov eax, 1
cmovne r13d, eax
jmp 0x140198659
cmp r9, r10
je 0x14019856a
sub r9, 2
sub r8, 2
jmp 0x140198524
xor ebx, ebx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp - 0x59]
cmp rdx, 7
jbe 0x1401986ae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401986a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140198736
call fcn.1403e5198
movdqu xmmword [rbp - 0x61], xmm6
mov word [rbp - 0x71], bx
mov rdx, qword [rbp - 0x39]
cmp rdx, 7
jbe 0x1401986f3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401986ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140198730
call fcn.1403e5198
movdqu xmmword [rbp - 0x41], xmm6
mov word [rbp - 0x51], bx
mov rcx, r12
call fcn.1400fdd00
movzx eax, r13b
mov rcx, qword [rbp - 0x21]
xor rcx, rsp
call fcn.1403e5550
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1403eb834
nop
call fcn.1403eb834
int3