Function at 0x140002120
Capabilities:
Reference http user-agent string

Disassembly:
test rcx, rcx
je 0x1400023e7
mov r11, rsp
push rdi
sub rsp, 0x440
mov rax, qword [0x140017de8]
xor rax, rsp
mov qword [rsp + 0x430], rax
mov rdi, rcx
mov qword [r11 + 0x10], rbx
xor ecx, ecx
mov qword [r11 + 0x20], rsi
lea rdx, str.Cache_Control:_no_cache__no_store
call qword [sym.imp.libcurl.dll_curl_slist_append]
mov rcx, rax
lea rdx, str.Pragma:_no_cache
call qword [sym.imp.libcurl.dll_curl_slist_append]
mov r9, qword [rdi + 8]
mov rbx, rax
test r9, r9
je 0x1400021a3
lea r8, str.Authorization:_Bearer__s
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.140001df0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.libcurl.dll_curl_slist_append]
mov rbx, rax
call qword [sym.imp.libcurl.dll_curl_easy_init]
mov rsi, rax
test rax, rax
jne 0x1400021bd
mov dword [rdi + 0x48], 1
jmp 0x1400023bf
cmp qword [rdi + 0x10], 0
mov rcx, rbx
mov qword [rsp + 0x460], rbp
je 0x1400021f6
lea rdx, str.Accept:_application_octet_stream
call qword [sym.imp.libcurl.dll_curl_slist_append]
xor r8d, r8d
mov edx, 0x4e2b
mov rcx, rsi
mov rbp, rax
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
mov r8, qword [rdi + 0x10]
jmp 0x14000221f
lea rdx, str.Accept:__
call qword [sym.imp.libcurl.dll_curl_slist_append]
lea r8, [0x140001ec0]
mov edx, 0x4e2b
mov rcx, rsi
mov rbp, rax
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
lea r8, [rdi + 0x30]
mov edx, 0x2711
mov rcx, rsi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
cmp qword [rdi + 0x20], 0
je 0x14000226b
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 0x2b]
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
lea r8, [0x140001f40]
mov edx, 0x4e58
mov rcx, rsi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
lea r8, [rdi + 0x20]
mov edx, 0x2749
mov rcx, rsi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
mov r8, qword [rdi]
mov edx, 0x2712
mov rcx, rsi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
lea r8, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_112.0.0.0_Safari_537.36_OPR_98.0.0.0
mov edx, 0x2722
mov rcx, rsi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
mov r8, rbp
mov edx, 0x2727
mov rcx, rsi
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
mov edx, reloc.WSOCK32.dll_gethostbyname
mov rcx, rsi
lea r8d, [rdx - 0x33]
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
mov edx, 0x2d
mov rcx, rsi
lea r8d, [rdx - 0x2c]
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
lea rbx, str.C:UsershanderDocumentsdisaster_launcherweb.c
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1400022f2
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_strrchr
lea rdx, [rax + 1]
jmp 0x1400022f5
mov rdx, rbx
mov rax, qword [rdi]
lea rcx, str.Requesting_0x_p...
mov r9, rdi
mov qword [rsp + 0x20], rax
mov r8d, 0x9c
call fcn.1400024a0
mov rcx, rsi
call qword [sym.imp.libcurl.dll_curl_easy_perform]
mov dword [rdi + 0x4c], eax
mov edx, 0x5c
mov rcx, rbx
test eax, eax
je 0x14000235f
mov byte [rdi + 0x18], 0
mov dword [rdi + 0x48], 2
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140002350
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_strrchr
lea rbx, [rax + 1]
lea rcx, str.Request_0x_p_failed_
mov r8d, 0xa9
jmp 0x14000238b
mov byte [rdi + 0x18], 1
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14000237e
mov edx, 0x5c
mov rcx, rbx
call sub.VCRUNTIME140.dll_strrchr
lea rbx, [rax + 1]
lea rcx, str.Request_0x_p_ok_
mov r8d, 0xa3
mov r9, rdi
mov rdx, rbx
call fcn.1400024a0
mov rcx, rbp
call qword [sym.imp.libcurl.dll_curl_slist_free_all]
mov rcx, rsi
call qword [sym.imp.libcurl.dll_curl_easy_cleanup]
mov rcx, qword [rdi + 0x10]
mov rbp, qword [rsp + 0x460]
test rcx, rcx
je 0x1400023bf
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x458]
mov rsi, qword [rsp + 0x468]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.140007100
add rsp, 0x440
pop rdi
ret