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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101048a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10145df0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [0x101455a0]
cmp eax, 0xffffffff
jne 0x100c1b6b
xor ebp, ebp
jmp 0x100c1b74
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x40], 0
test ebp, ebp
je 0x100c1bb5
cmp dword [ebp + 0x30], 0
jne 0x100c1bfc
cmp dword [ebp + 0xc], 0
jne 0x100c1c02
push 0x100bcd30
push 0x1014adbc
call fcn.100bdf70
mov eax, dword [0x101455a0]
add esp, 8
cmp eax, 0xffffffff
je 0x100c1bb5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x40], 0xffffffff
test ebp, ebp
je 0x100c1be8
lea ecx, [ebp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100c1be8
mov eax, dword [ebp]
mov edx, dword [eax]
push 0
mov ecx, ebp
call edx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x100c1c4a
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100c1c34
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, dword [edi]
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0xc], 0
jne 0x100c1c02
mov ecx, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x14]
mov edi, dword [ecx]
mov edx, ecx
mov eax, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
test esi, esi
je 0x100c1c70
cmp esi, dword [esp + 0x24]
je 0x100c1c75
call fcn.100c55dd
cmp edi, dword [esp + 0x28]
je 0x100c1b84
lea ecx, [esp + 0x1c]
call fcn.100bd530
test esi, esi
jne 0x100c1d18
call fcn.100c55dd
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100c1ca1
call fcn.100c55dd
cmp dword [edi + 0x10], 0
je 0x100c1cfc
test esi, esi
jne 0x100c1d1f
call fcn.100c55dd
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100c1cbc
call fcn.100c55dd
cmp dword [edi + 0x18], 0
je 0x100c1cfc
test esi, esi
jne 0x100c1d23
call fcn.100c55dd
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100c1cd7
call fcn.100c55dd
mov ebx, dword [edi + 0x10]
test esi, esi
jne 0x100c1d27
call fcn.100c55dd
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100c1cef
call fcn.100c55dd
mov edx, dword [ebx]
mov eax, dword [edi + 0x18]
mov edx, dword [edx + 4]
push eax
mov ecx, ebx
call edx
push edi
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [ebp + 0x14]
call fcn.100c1200
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x100c1c66
mov eax, dword [esi]
jmp 0x100c1c97
mov eax, dword [esi]
jmp 0x100c1cb2
mov eax, dword [esi]
jmp 0x100c1ccd
mov eax, dword [esi]
jmp 0x100c1ce5