Function at 0x140001da0
Capabilities:
Initialize winhttp library
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 - 0x10a8]
mov eax, 0x11a8
call fcn.140006650
sub rsp, rax
mov rax, qword [0x140031080]
xor rax, rsp
mov qword [rbp + 0x1090], rax
mov r13, r9
mov r12, r8
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.GitHub_Client_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r14, rax
test rax, rax
je 0x140001e75
cmp qword [rbx + 0x18], 7
jbe 0x140001e0c
mov rbx, qword [rbx]
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
test rax, rax
je 0x140001e6c
cmp qword [rdi + 0x18], 7
jbe 0x140001e33
mov rdi, qword [rdi]
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, rdi
lea rdx, [0x14002c1e8]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
test rax, rax
jne 0x140001e7c
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
jmp 0x1400021a0
mov rdx, qword [r12 + 0x10]
mov qword [rsp + 0x50], rdx
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
sub rax, rdx
cmp rax, 0x16
jb 0x1400021c9
cmp qword [r12 + 0x18], 7
jbe 0x140001eac
mov r12, qword [r12]
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
lea r8, [rdx + 0x16]
mov qword [rsp + 0x48], r8
mov edi, 7
lea rsi, [rbp + 0x70]
cmp r8, rdi
jbe 0x140001f6d
mov rdi, r8
or rdi, 7
cmp rdi, rcx
jbe 0x140001f2b
mov rdi, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x140001f57
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400021cf
mov rcx, rax
call fcn.140006028
test rax, rax
je 0x1400021c3
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001f5f
mov eax, 0xa
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x1400021cf
add rcx, rcx
jne 0x140001ef6
xor esi, esi
jmp 0x140001f69
call fcn.140006028
mov rsi, rax
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov qword [rbp + 0x70], rsi
mov qword [rbp + 0x80], r8
mov qword [rbp + 0x88], rdi
movups xmm0, xmmword [str.Authorization:_Bearer]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [0x14002c200]
movups xmmword [rsi + 0x10], xmm1
movsd xmm0, qword [0x14002c210]
movsd qword [rsi + 0x20], xmm0
mov eax, dword [0x14002c218]
mov dword [rsi + 0x28], eax
lea rcx, [rsi + 0x2c]
lea r8, [rdx + rdx]
mov rdx, r12
call fcn.14001fdf0
mov rax, qword [rsp + 0x48]
xor edi, edi
mov word [rsi + rax*2], di
lea rdx, [rbp + 0x70]
cmp qword [rbp + 0x88], 7
cmova rdx, qword [rbp + 0x70]
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov r9d, 0x20000000
mov r8d, 0xffffffff
lea rdx, str.Accept:_application_vnd.github.v3.raw
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140002141
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140002141
cmp qword [r13 + 0x18], 7
jbe 0x140002047
mov r13, qword [r13]
mov rdx, r13
lea rcx, [rsp + 0x60]
call fcn.140003f80
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x5c], edx
cmp qword [rbp - 0x18], 0
je 0x140002118
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x44], edi
nop
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14000210e
cmp dword [rsp + 0x40], 0
je 0x1400020e5
lea r9, [rsp + 0x44]
mov r8d, 0x1000
lea rdx, [rbp + 0x90]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000210e
mov r8d, dword [rsp + 0x44]
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x60]
call fcn.1400035f0
cmp dword [rsp + 0x40], 0
ja 0x140002090
lea rcx, [rsp + 0x60]
call fcn.140003550
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov bl, 1
jmp 0x140002135
lea rcx, [rsp + 0x60]
call fcn.140003550
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor bl, bl
lea rcx, [rsp + 0x60]
call fcn.1400021e0
jmp 0x14000215e
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor bl, bl
mov rdx, qword [rbp + 0x88]
cmp rdx, 7
jbe 0x14000219d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002198
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400021c3
call fcn.140006020
movzx eax, bl
mov rcx, qword [rbp + 0x1090]
xor rcx, rsp
call fcn.140006000
add rsp, 0x11a8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.14000d0f4
int3
call fcn.140001210
int3
call fcn.140001170
int3