Function at 0x1000d7e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ecx, 0x100ff098
call fcn.100786a0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x1000d848
push 8
push 1
call dword [0x100ffd88]
mov ebx, eax
add esp, 8
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x1000d836
push 8
push str.......glibgmem.c:195
push str._s:_failed_to_allocate__u_bytes
push 4
push str.Glib
call sym.glib_2.dll_g_log
add esp, 0x14
jmp 0x1000d834
push ebx
mov ecx, 0x100ff098
call fcn.100786a0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.1000d6d0
mov esi, dword [ebx]
test eax, eax
mov ecx, 0x100e2ea4
cmovne ecx, eax
mov dword [ebp - 8], ecx
test esi, esi
je 0x1000d8a3
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000d882
test dl, dl
je 0x1000d87e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000d882
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000d862
xor eax, eax
jmp 0x1000d887
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000d895
mov eax, dword [ebx + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1000d8a3
push esi
call dword [0x100ffd84]
add esp, 4
mov edi, dword [ebx + 4]
test edi, edi
je 0x1000d8d6
xor esi, esi
cmp dword [edi], esi
je 0x1000d8cc
mov eax, edi
mov eax, dword [eax]
test eax, eax
je 0x1000d8c2
push eax
call dword [0x100ffd84]
add esp, 4
inc esi
cmp dword [edi + esi*4], 0
lea eax, [edi + esi*4]
jne 0x1000d8b2
push edi
call dword [0x100ffd84]
add esp, 4
mov esi, dword [ebp - 8]
push esi
call sym.glib_2.dll_g_strdup
add esp, 4
mov dword [ebx], eax
push 0x14
call sym.glib_2.dll_g_slice_alloc
mov ebx, eax
add esp, 4
mov edx, 8
mov ecx, ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 1
mov dword [ebx + 0x10], 0
call fcn.10004dc0
push 0
push 0x100e2ea8
push esi
call sym.glib_2.dll_g_strsplit
mov edi, eax
add esp, 0xc
mov ecx, dword [edi]
mov esi, edi
test ecx, ecx
je 0x1000d953
jmp 0x1000d940
mov edx, ecx
mov ecx, ebx
call fcn.1000d4a0
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
test ecx, ecx
jne 0x1000d940
xor esi, esi
cmp dword [edi], esi
je 0x1000d97a
mov eax, edi
jmp 0x1000d960
mov eax, dword [eax]
test eax, eax
je 0x1000d970
push eax
call dword [0x100ffd84]
add esp, 4
inc esi
cmp dword [edi + esi*4], 0
lea eax, [edi + esi*4]
jne 0x1000d960
push edi
call dword [0x100ffd84]
add esp, 4
push 0x100e2ea4
call sym.glib_2.dll_g_strdup
add esp, 4
mov edx, 1
mov ecx, ebx
mov edi, eax
call fcn.10004dc0
mov esi, dword [ebx + 4]
mov ecx, dword [ebx]
mov edx, 1
mov dword [ecx + esi*4], edi
inc dword [ebx + 4]
mov ecx, ebx
call fcn.10004dc0
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [eax + ecx*4], 0
inc dword [ebx + 4]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
mov ecx, 2
mov eax, 0
cmovne eax, ecx
mov dword [ebp - 8], eax
test al, 1
je 0x1000da0f
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x1000d9f8
push 0
push eax
push ebx
call sym.glib_2.dll_g_ptr_array_foreach
add esp, 0xc
mov eax, dword [ebx]
test eax, eax
je 0x1000da08
push eax
call dword [0x100ffd84]
add esp, 4
mov eax, dword [ebp - 8]
xor esi, esi
jmp 0x1000da11
mov esi, dword [ebx]
test al, 2
je 0x1000da38
mov eax, dword [ebp - 4]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [eax + 4], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push 0x14
call sym.glib_2.dll_g_slice_free1
mov eax, dword [ebp - 4]
add esp, 8
mov dword [eax + 4], esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret