Function at 0x1400506d0
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, 0xb8
mov rax, qword [0x14013e0a0]
xor rax, rsp
mov qword [rbp - 9], rax
mov rsi, r9
mov qword [rbp - 0x69], r8
mov rbx, rdx
mov r15, rcx
mov qword [rbp - 0x61], rdx
mov r13, qword [rbp + 0x6f]
xor r14b, r14b
cmp qword [rcx], 0
jne 0x14005075d
mov rdx, qword [rdx + 0x18]
cmp rdx, 8
jb 0x140050754
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14005074f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140050ab0
mov rcx, r8
call fcn.1400a09c0
xor edi, edi
xor al, al
jmp 0x140050a7b
xor edi, edi
mov word [rbp - 0x71], di
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x14011e780]
movdqu xmmword [rbp - 0x29], xmm1
mov word [rbp - 0x39], di
movups xmmword [rbp - 0x59], xmm0
movdqu xmmword [rbp - 0x49], xmm1
mov word [rbp - 0x59], di
lea r9, [rbp - 0x71]
lea r8, [rbp - 0x59]
lea rdx, [rbp - 0x39]
mov rcx, rbx
call fcn.14004f610
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
xor r9d, r9d
movzx r8d, word [rbp - 0x71]
mov rcx, qword [r15]
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
jne 0x1400508af
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x140050807
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140050802
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050ab6
call fcn.1400a09c0
movdqa xmm0, xmmword [0x14011e780]
mov word [rbp - 0x59], di
movdqu xmmword [rbp - 0x49], xmm0
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140050858
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140050853
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050aaa
call fcn.1400a09c0
movdqa xmm0, xmmword [0x14011e780]
mov word [rbp - 0x39], di
movdqu xmmword [rbp - 0x29], xmm0
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1400508a8
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rbx]
jb 0x1400508a3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140050ab0
mov rcx, r8
call fcn.1400a09c0
xor al, al
jmp 0x140050a7b
lea rax, [0x14011cf98]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rdi
mov edx, 0x1bb
mov ecx, edi
mov eax, 0x800000
cmp word [rbp - 0x71], dx
cmove ecx, eax
mov rax, qword [r15 + 8]
lea r8, [rbp - 0x59]
cmp qword [rbp - 0x41], 8
cmovae r8, qword [rbp - 0x59]
mov dword [rsp + 0x30], ecx
lea rcx, [rbp - 0x19]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.HTTP_1.1
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
je 0x1400507c7
mov r9d, 0x20000000
mov r8d, 0xffffffff
lea rdx, str.Content_Type:_application_json
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
je 0x140050987
mov qword [rsp + 0x30], rdi
mov eax, dword [rbp + 0x77]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r9, r13
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140050987
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140050987
mov rdx, qword [rbp - 0x69]
mov rcx, rsi
call fcn.140050ac0
mov dword [r15 + 0x18], eax
movzx r14d, r14b
mov ecx, 1
test eax, eax
cmovne r14d, ecx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 8
jb 0x1400509da
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400509d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050ab6
call fcn.1400a09c0
movdqa xmm0, xmmword [0x14011e780]
movdqu xmmword [rbp - 0x49], xmm0
mov word [rbp - 0x59], di
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140050a2b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050a26
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050aaa
call fcn.1400a09c0
movdqa xmm0, xmmword [0x14011e780]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], di
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140050a77
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140050a72
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140050ab0
mov rcx, r8
call fcn.1400a09c0
movzx eax, r14b
mov word [rbx], di
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1400a09a0
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400d2350
nop
call fcn.1400d2350
nop
call fcn.1400d2350
int3