Function at 0x1800502e0
Capabilities:
Reference absolute stream path on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rbx, qword [0x18011eae0]
xor esi, esi
mov ebp, edx
mov rdi, rcx
test rbx, rbx
je 0x180050325
mov rdx, rcx
lea r8, [rsp + 0x60]
mov rcx, rbx
call fcn.18002ac40
mov ecx, eax
mov rax, qword [rbx + 0x20]
cmp dword [rax + rcx*4], 2
jb 0x18005033f
mov rax, qword [rbx + 0x28]
mov rcx, qword [rax + rcx*8]
jmp 0x180050342
lea r8, [0x1800ef200]
lea rdx, [0x1800ef350]
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_return_if_fail_warning
mov rcx, rsi
mov qword [rsp + 0x50], r14
test ecx, ecx
jne 0x180050542
test ebp, ebp
je 0x180050412
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rdi + rbx], sil
jne 0x180050360
inc rbx
cmp rbx, 0x7fc
jbe 0x180050385
mov rcx, rdi
call sym.glib_2.0.dll_g_strdup
mov rbp, rax
jmp 0x180050415
mov rdx, qword [0x18011ead8]
test rdx, rdx
je 0x1800503a5
movsxd r14, dword [0x18011eac8]
mov ecx, 0xff8
sub rcx, r14
cmp rcx, rbx
jae 0x1800503c2
mov ecx, 0xff8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, rax
test rax, rax
je 0x1800503e2
mov qword [0x18011ead8], rax
mov r14d, esi
movsxd rbp, r14d
mov r8, rbx
add rbp, rdx
mov rdx, rdi
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
add r14d, ebx
mov dword [0x18011eac8], r14d
jmp 0x180050415
lea r9, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgmem.c:105
mov qword [rsp + 0x20], 0xff8
lea r8, str._s:_failed_to_allocate__I64u_bytes
mov edx, 4
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_log
nop word [rax + rax]
jmp 0x180050410
mov rbp, rdi
mov ebx, dword [0x18011eabc]
mov eax, ebx
and eax, 0x800007ff
jge 0x18005042d
dec eax
or eax, 0xfffff800
inc eax
test eax, eax
jne 0x1800504ec
lea eax, [rbx + 0x800]
movsxd rcx, eax
movabs rax, 0x1fffffffffffffff
cmp rcx, rax
jbe 0x180050482
mov qword [rsp + 0x28], 8
lea r9, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgmem.c:333
mov qword [rsp + 0x20], rcx
lea r8, str._s:_overflow_allocating__I64u_I64u_bytes
lea rcx, [0x18009cbc8]
mov edx, 4
call sym.glib_2.0.dll_g_log
nop word [rax + rax]
jmp 0x180050480
lea rdi, [rcx*8]
test rdi, rdi
je 0x1800504a6
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x18005051c
mov ebx, dword [0x18011eabc]
test ebx, ebx
je 0x1800504c6
mov rdx, qword [0x18011eac0]
mov rcx, rsi
movsxd r8, ebx
shl r8, 3
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [0x18011eabc]
movsxd rax, ebx
xor edx, edx
mov r8d, 0x4000
lea rcx, [rsi + rax*8]
call sub.VCRUNTIME140.dll_memset
mov qword [0x18011eac0], rsi
lock or dword [rsp], 0
mov ebx, dword [0x18011eabc]
mov rax, qword [0x18011eac0]
mov r8d, ebx
mov qword [rax + r8*8], rbp
lock or dword [rsp], 0
mov rcx, qword [0x18011eae0]
xor r9d, r9d
mov rdx, rbp
call fcn.18002ba90
lock inc dword [0x18011eabc]
mov eax, ebx
jmp 0x180050544
lea r9, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgmem.c:105
mov qword [rsp + 0x20], rdi
lea r8, str._s:_failed_to_allocate__I64u_bytes
mov edx, 4
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_log
jmp 0x180050540
mov eax, ecx
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret