Function at 0x180006c80
Capabilities:
Check http status code
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1960]
mov eax, 0x1a60
call fcn.18000b280
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1ab8], rbx
mov rax, qword [0x180010010]
xor rax, rsp
mov qword [rbp + 0x1950], rax
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x50], rcx
movdqa xmm0, xmmword [0x18000ce10]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
mov r8d, 0x1bb
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea rdx, str.graph.microsoft.com
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectA]
mov r12, rax
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
lea rdx, str._v1.0_me_drive_items_root:__s:
lea rcx, [rbp - 0x80]
call fcn.180001060
mov qword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0x803000
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, str.HTTP_1.1
lea r8, [rbp - 0x80]
lea rdx, [0x18000cc28]
mov rcx, r12
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov r14, rax
xor edx, edx
mov r8d, 0x7d0
lea rcx, [rbp + 0x180]
call sub.VCRUNTIME140.dll_memset
mov r8, rdi
lea rdx, str.Content_Type:_application_json_r_nAuthorization:_Bearer__s
lea rcx, [rbp + 0x180]
call fcn.180001060
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, 0xffffffff
lea rdx, [rbp + 0x180]
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x4c]
mov edx, 0x20000013
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x180006edf
cmp dword [rsp + 0x4c], 0x194
je 0x180006edf
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x950]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x48], 0x1000
lea r9, [rsp + 0x48]
mov r8d, 0xfff
lea rdx, [rbp + 0x950]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, eax
lea rax, [rbp + 0x950]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r13b
jne 0x180006e51
lea rdx, [rbp + 0x950]
lea rcx, [rsp + 0x58]
call fcn.180007860
test ebx, ebx
je 0x180006edf
nop
cmp dword [rsp + 0x48], 0xfff
jne 0x180006edf
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x950]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x48], 0x1000
lea r9, [rsp + 0x48]
mov r8d, 0xfff
lea rdx, [rbp + 0x950]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, eax
lea rax, [rbp + 0x950]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r13b
jne 0x180006ec1
lea rdx, [rbp + 0x950]
lea rcx, [rsp + 0x58]
call fcn.180007860
test ebx, ebx
jne 0x180006e70
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rsi + 0x10], xmm1
mov rax, rsi
mov rcx, qword [rbp + 0x1950]
xor rcx, rsp
call fcn.18000a060
mov rbx, qword [rsp + 0x1ab8]
add rsp, 0x1a60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret