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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100eeead
mov eax, dword fs:[0]
push eax
sub esp, 0x44
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 - 0x50], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x4c], eax
mov eax, dword [edx + 8]
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [edx + 0x14]
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 0x100d3acf
nop
cmp dword [eax], esi
je 0x100d3c29
mov eax, dword [eax + 8]
test eax, eax
jne 0x100d3ac0
lea eax, [ebp - 0x50]
push eax
push 0x38
mov dword [ebp - 0x34], eax
call fcn.100cfef0
add esp, 8
mov edi, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], fcn.100d7a60
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 - 0x50]
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x48]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [edi + 0x30], ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x3c]
push ebx
mov byte [ebp - 4], 2
mov dword [edi + 0x34], eax
call fcn.100d83f0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
test al, al
je 0x100d3be5
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.100d7a60
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.100da530
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x100d3c15
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100d3c15
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100d3c15
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 0x100d3acf
push 0
lea ecx, [ebp + 0xb]
call fcn.100d5480
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.100d3530
add esp, 8
xchg dword [ebp + 8], eax
jmp 0x100d3bed