Function at 0x100d3790
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10114b30
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebp
push esi
push edi
mov eax, dword [0x10158df0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [0x10158834]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x50], 0
cmp eax, 0xffffffff
je 0x100d37d7
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x100d37ef
call fcn.100d3670
mov eax, dword [0x10158834]
cmp eax, 0xffffffff
jne 0x100d37ea
xor ebp, ebp
jmp 0x100d37ef
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 0x100d381c
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0x1c]
call fcn.100cecb0
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 0x100d384d
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.100cf320
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 0x100d388e
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.100d1e10
mov esi, dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov byte [esp + 0x50], 2
test esi, esi
je 0x100d38e5
lea eax, [esi + 4]
push eax
call edi
test eax, eax
jne 0x100d38e5
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 0x100d38e5
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 0x100d3918
lea ecx, [esi + 4]
push ecx
call edi
test eax, eax
jne 0x100d3918
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 0x100d3918
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 0x100d394b
lea ecx, [esi + 4]
push ecx
call edi
test eax, eax
jne 0x100d394b
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 0x100d394b
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 0x100d3981
lea ecx, [esi + 4]
push ecx
call edi
test eax, eax
jne 0x100d3981
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 0x100d3981
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