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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100eeefd
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
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]
lea ecx, [ebp - 0x6c]
mov eax, dword [edx]
mov dword [ebp - 0x78], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x74], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x70], eax
lea eax, [edx + 0xc]
push eax
mov dword [edx + 4], 0
mov dword [edx + 8], 0
call fcn.100d4530
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 0x100d3cef
nop dword [eax]
cmp dword [eax], esi
je 0x100d3e61
mov eax, dword [eax + 8]
test eax, eax
jne 0x100d3ce0
lea eax, [ebp - 0x78]
push eax
push 0x60
mov dword [ebp - 0x34], eax
call fcn.100cfef0
add esp, 8
mov edi, eax
mov dword [edi + 0x14], 0
lea ecx, [edi + 0x2c]
mov dword [edi + 0x18], fcn.100d7b40
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 - 0x78]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov eax, dword [ebp - 0x74]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x70]
mov dword [edi + 0x28], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
call fcn.100d4530
mov ecx, dword [ebp + 8]
push edi
push ebx
call fcn.100d83f0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
test al, al
je 0x100d3dff
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.100d7b40
add esp, 0x10
lea ecx, [ebp - 0x1c]
call fcn.100d5d00
push dword [ebp - 0x20]
push dword [0x10120e98]
call esi
mov esi, dword [ebp - 0x48]
or edi, 0xffffffff
test esi, esi
je 0x100d3e28
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100d3e28
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x100d3e28
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x70]
test esi, esi
je 0x100d3e4d
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100d3e4d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100d3e4d
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 0x100d3cef
push 0
lea ecx, [ebp + 0xb]
call fcn.100d5480
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.100d3590
add esp, 8
xchg dword [ebp + 8], eax
jmp 0x100d3dff