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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003319d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10045014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x68], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x44], eax
je 0x1000e577
mov eax, dword [edi + 0x6c]
test dword [ecx], eax
je 0x1000e577
push dword [edi + 0x140]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x1000e422
lea esi, [edi + 0x14c]
push esi
mov dword [ebp - 0x58], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 8
mov dword [ebp - 4], ebx
call fcn.1001937a
mov ebx, eax
add esp, 4
xor eax, eax
mov word [ebx], ax
mov ecx, dword [edi + 0x13c]
mov eax, dword [ecx]
call dword [eax + 0xc]
push ebx
mov dword [ebx + 4], eax
push dword [edi + 0x140]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x54], eax
lea ecx, [edi + 0x144]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x50], ebx
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.10007000
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebx + 4]
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
mov edx, dword [ebp - 0x44]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000e450
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.10002cf0
mov edx, dword [ebp - 0x48]
xor eax, eax
mov ecx, edx
mov dword [ebp - 4], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000e493
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10002cf0
push dword [ebp + 0x14]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
mov eax, dword [esi]
push ecx
lea ecx, [ebp - 0x28]
push ecx
push dword [ebp - 0x4c]
mov eax, dword [eax + 8]
mov ecx, esi
call eax
mov byte [ebp - 4], 1
mov bl, al
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1000e507
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000e4fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000e597
push edx
push ecx
call fcn.10019349
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x1000e558
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000e54e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000e597
push edx
push ecx
call fcn.10019349
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov ecx, esi
mov eax, dword [esi]
mov dword [ebp - 0x2c], 7
call dword [eax + 4]
mov al, bl
jmp 0x1000e579
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10019013
mov esp, ebp
pop ebp
ret 0x10
call fcn.1001c7ca
int3