Function at 0x100d4460
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10115810
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 0x100d44a7
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x100d44bf
call fcn.100d4340
mov eax, dword [0x10159834]
cmp eax, 0xffffffff
jne 0x100d44ba
xor ebp, ebp
jmp 0x100d44bf
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 0x100d44ec
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0x1c]
call fcn.100cf980
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 0x100d451d
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.100cfff0
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 0x100d455e
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.100d2ae0
mov esi, dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov byte [esp + 0x50], 2
test esi, esi
je 0x100d45b5
lea eax, [esi + 4]
push eax
call edi
test eax, eax
jne 0x100d45b5
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 0x100d45b5
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 0x100d45e8
lea ecx, [esi + 4]
push ecx
call edi
test eax, eax
jne 0x100d45e8
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 0x100d45e8
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 0x100d461b
lea ecx, [esi + 4]
push ecx
call edi
test eax, eax
jne 0x100d461b
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 0x100d461b
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 0x100d4651
lea ecx, [esi + 4]
push ecx
call edi
test eax, eax
jne 0x100d4651
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 0x100d4651
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