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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100efdad
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x101170e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x54], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x50], eax
mov eax, dword [edx + 8]
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [esi]
lea ebx, [esi + 4]
push dword [0x10120e98]
mov esi, dword [ebx]
mov dword [ebp - 4], 0
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100e18b4
cmp dword [eax], esi
je 0x100e1a14
mov eax, dword [eax + 8]
test eax, eax
jne 0x100e18a5
lea eax, [ebp - 0x54]
push eax
push 0x3c
mov dword [ebp - 0x34], eax
call fcn.100cfef0
add esp, 8
mov edi, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], fcn.100e32b0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov eax, dword [ebp - 0x54]
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov dword [edi + 0x34], ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x3c]
push ebx
mov byte [ebp - 4], 2
mov dword [edi + 0x38], eax
call fcn.100d83f0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
test al, al
je 0x100e19d0
mov eax, dword [ebx]
push dword [0x10120e98]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x10120e98]
mov dword [ebp - 0x24], eax
call esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
push edi
push ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x10117038
call fcn.100e32b0
add esp, 0x10
lea ecx, [ebp - 0x1c]
call fcn.100d5d00
push dword [ebp - 0x20]
push dword [0x10120e98]
call esi
lea ecx, [ebp - 0x34]
call fcn.100e3800
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x100e1a00
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100e1a00
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100e1a00
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [eax + 4], 0
je 0x100e18b4
push 0
lea ecx, [ebp + 0xb]
call fcn.100d5480
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.100e1750
add esp, 8
xchg dword [ebp + 8], eax
jmp 0x100e19d8