Function at 0x180010200
Capabilities:
Get thread local storage value
Reference absolute stream path on windows
Set thread local storage value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r15
sub rsp, 0x30
lea rcx, [0x18011c6d0]
call fcn.180094fc0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x18001027c
lea edx, [rax + 0x10]
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rsi, rax
test rax, rax
jne 0x180010265
lea r9, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgmem.c:135
mov qword [rsp + 0x20], reloc.WS2_32.dll_recv
lea r8, str._s:_failed_to_allocate__I64u_bytes
lea edx, [rax + 4]
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_log
jmp 0x180010263
lea rcx, [0x18011c6d0]
call fcn.180094fc0
mov ecx, eax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
lea rcx, str.LANGUAGE
mov qword [rsp + 0x50], rdi
call sym.glib_2.0.dll_g_getenv
xor r15d, r15d
mov rbx, rax
test rax, rax
je 0x1800102a1
cmp byte [rax], r15b
jne 0x180010350
lea rcx, str.LC_ALL
call sym.glib_2.0.dll_g_getenv
mov rbx, rax
test rax, rax
je 0x1800102be
cmp byte [rax], r15b
jne 0x180010350
lea rcx, str.LC_MESSAGES
call sym.glib_2.0.dll_g_getenv
mov rbx, rax
test rax, rax
je 0x1800102d7
cmp byte [rax], r15b
jne 0x180010350
lea rcx, str.LANG
call sym.glib_2.0.dll_g_getenv
mov rbx, rax
test rax, rax
je 0x1800102f0
cmp byte [rax], r15b
jne 0x180010350
call sym.glib_2.0.dll_g_win32_getlocale
mov rdi, rax
test rax, rax
jne 0x180010302
mov rbx, r15
jmp 0x18001034d
mov rax, qword [0x18011ef58]
lea rcx, [0x18011ead0]
call qword [case.0x180005f92.0]
mov edx, 1
mov rcx, rdi
call fcn.1800502e0
mov edx, eax
lea rcx, [0x18011ead0]
mov rax, qword [0x18011eac0]
mov rbx, qword [rax + rdx*8]
mov rax, qword [0x18011ef68]
call qword [case.0x180005f92.0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbx
mov r9, qword [rsi]
lea rbp, [0x1800eb594]
test rbx, rbx
cmovne rbp, rax
test r9, r9
je 0x18001038b
mov r8, rbp
mov rax, r9
sub r8, r9
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180010383
inc rax
test ecx, ecx
jne 0x180010370
test edx, edx
je 0x180010508
mov qword [rsp + 0x58], r14
test r9, r9
je 0x18001039e
mov rcx, r9
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, qword [rsi + 8]
test rdi, rdi
je 0x1800103d1
mov rax, qword [rdi]
test rax, rax
je 0x1800103c8
mov rbx, r15
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rdi + rbx*8 + 8]
inc rbx
test rax, rax
jne 0x1800103b2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbp
call sym.glib_2.0.dll_g_strdup
mov ecx, 0x20
mov qword [rsi], rax
call sym.glib_2.0.dll_g_slice_alloc
mov edx, 8
mov rcx, rax
mov rdi, rax
mov qword [rax], r15
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
mov qword [rax + 0x18], r15
call fcn.180004e90
xor r8d, r8d
lea rdx, [0x1800eb598]
mov rcx, rbp
call sym.glib_2.0.dll_g_strsplit
mov r14, rax
mov rbx, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x180010469
nop dword [rax + rax]
mov rdx, rcx
mov rcx, rdi
call fcn.18000fe70
mov rcx, qword [rbx + 8]
lea rbx, [rbx + 8]
test rcx, rcx
jne 0x180010430
mov rax, qword [r14]
test rax, rax
je 0x180010469
mov rbx, r15
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [r14 + rbx*8 + 8]
inc rbx
test rax, rax
jne 0x180010453
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebp, 2
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, qword [rsp + 0x58]
mov rbx, rax
test rax, rax
jne 0x1800104b2
lea r9, str.d:_buildob_bora_15653658cayman_glibglib_srcglibgmem.c:105
mov qword [rsp + 0x20], rbp
lea r8, str._s:_failed_to_allocate__I64u_bytes
lea edx, [rbp + 2]
lea rcx, [0x18009cbc8]
call sym.glib_2.0.dll_g_log
nop
jmp 0x1800104b0
movzx eax, word [0x1800eb594]
mov edx, 1
mov rcx, rdi
mov word [rbx], ax
call fcn.180004e90
mov ecx, dword [rdi + 8]
mov edx, 1
mov rax, qword [rdi]
mov qword [rax + rcx*8], rbx
mov rcx, rdi
inc dword [rdi + 8]
call fcn.180004e90
mov ecx, dword [rdi + 8]
mov rax, qword [rdi]
mov qword [rax + rcx*8], r15
inc dword [rdi + 8]
lock add dword [rdi + 0x10], 0xffffffff
cmovne r15d, ebp
mov rcx, rdi
mov edx, r15d
call fcn.180004e00
mov qword [rsi + 8], rax
mov rax, qword [rsi + 8]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop rsi
pop rbp
ret