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

Disassembly:
push 0xffffffffffffffff
push 0x10040f76
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100532d0]
xor eax, esp
push eax
lea eax, [esp + 0xe4]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 9], 0
jne 0x100152ef
mov edx, dword [0x100554ac]
mov ecx, dword [esp + 0xfc]
mov ebx, dword [esp + 0xf4]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xf8]
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
call edi
cmp eax, esi
jne 0x10015182
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call edx
jmp 0x100152ef
push 0
lea ecx, [esp + 0x4c]
call fcn.10014fd0
mov eax, dword [0x100554ac]
push eax
mov dword [esp + 0x4c], vtable.talk_base::AutoThread.0
call edi
test eax, eax
jne 0x100151b3
mov edx, dword [0x100554ac]
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x100554ac]
push eax
mov dword [esp + 0xf0], 0
call edi
mov edi, eax
lea eax, [esi + 0x5c]
push eax
mov byte [esp + 0x1b], 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
mov byte [esp + 0xec], 1
call fcn.10019690
mov ecx, dword [esp + 0x18]
mov ebx, dword [esi + 0x88]
mov edx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x24]
lea ebp, [esi + 0x74]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x40], edx
lea edx, [esp + 0x1f]
push ebx
mov ecx, ebp
mov dword [esp + 0x3c], edi
mov dword [esp + 0x50], edx
call fcn.10014730
push 1
mov ecx, ebp
mov dword [esp + 0x30], eax
call fcn.10014c00
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
push edx
mov byte [esi + 0x95], 1
mov byte [esp + 0xf0], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
cmp byte [esp + 0x17], 0
jne 0x100152b0
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
mov ecx, edi
call edx
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 0
push 0xffffffffffffffff
call edx
cmp byte [esp + 0x17], 0
je 0x10015288
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov eax, dword [0x100554ac]
push eax
mov dword [esp + 0xf0], 0xffffffff
mov dword [esp + 0x4c], vtable.talk_base::AutoThread.0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea ecx, [esp + 0x48]
cmp eax, ecx
jne 0x100152e6
mov edx, dword [0x100554ac]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea ecx, [esp + 0x48]
call fcn.10014ca0
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdc
ret 0xc