Function at 0x100d4130
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x101154d0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebp
push esi
push edi
mov eax, dword [0x10159df0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [0x10159834]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x50], 0
cmp eax, 0xffffffff
je 0x100d4177
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x100d418f
call fcn.100d4010
mov eax, dword [0x10159834]
cmp eax, 0xffffffff
jne 0x100d418a
xor ebp, ebp
jmp 0x100d418f
push eax
call esi
mov ebp, eax
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x5c]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x6c]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x70], esp
test eax, eax
je 0x100d41bc
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0x1c]
call fcn.100cf640
mov esi, eax
mov eax, dword [esi]
sub esp, 0xc
mov edi, esp
mov dword [edi], eax
mov eax, dword [esi + 4]
mov byte [esp + 0x5c], 1
mov dword [esp + 0x70], esp
mov dword [edi + 4], eax
test eax, eax
je 0x100d41ed
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [esp + 0x64]
mov ecx, dword [esi + 8]
push edx
lea eax, [esp + 0x48]
push eax
mov dword [edi + 8], ecx
call fcn.100cfcb0
add esp, 0x14
mov esi, eax
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov byte [esp + 0x50], 2
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
test eax, eax
je 0x100d422e
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [ebp + 0x14]
mov byte [esp + 0x58], 3
call fcn.100d27b0
mov esi, dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov byte [esp + 0x50], 2
test esi, esi
je 0x100d4285
lea eax, [esi + 4]
push eax
call edi
test eax, eax
jne 0x100d4285
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
push ecx
call edi
test eax, eax
jne 0x100d4285
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov esi, dword [esp + 0x40]
mov byte [esp + 0x50], 1
test esi, esi
je 0x100d42b8
lea ecx, [esi + 4]
push ecx
call edi
test eax, eax
jne 0x100d42b8
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
push ecx
call edi
test eax, eax
jne 0x100d42b8
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov esi, dword [esp + 0x14]
mov byte [esp + 0x50], 0
test esi, esi
je 0x100d42eb
lea ecx, [esi + 4]
push ecx
call edi
test eax, eax
jne 0x100d42eb
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
push ecx
call edi
test eax, eax
jne 0x100d42eb
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov esi, dword [esp + 0x60]
mov dword [esp + 0x50], 0xffffffff
test esi, esi
je 0x100d4321
lea ecx, [esi + 4]
push ecx
call edi
test eax, eax
jne 0x100d4321
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
push ecx
call edi
test eax, eax
jne 0x100d4321
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x44
ret