Function at 0x100d2ed0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10114270
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebp
push esi
push edi
mov eax, dword [0x10157de0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [0x1015782c]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp + 0x50], 0
cmp eax, 0xffffffff
je 0x100d2f17
push eax
call esi
mov ebp, eax
test ebp, ebp
jne 0x100d2f2f
call fcn.100d2db0
mov eax, dword [0x1015782c]
cmp eax, 0xffffffff
jne 0x100d2f2a
xor ebp, ebp
jmp 0x100d2f2f
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 0x100d2f5c
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [esp + 0x1c]
call fcn.100ce3f0
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 0x100d2f8d
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.100cea60
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 0x100d2fce
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.100d1550
mov esi, dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov byte [esp + 0x50], 2
test esi, esi
je 0x100d3025
lea eax, [esi + 4]
push eax
call edi
test eax, eax
jne 0x100d3025
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 0x100d3025
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 0x100d3058
lea ecx, [esi + 4]
push ecx
call edi
test eax, eax
jne 0x100d3058
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 0x100d3058
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 0x100d308b
lea ecx, [esi + 4]
push ecx
call edi
test eax, eax
jne 0x100d308b
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 0x100d308b
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 0x100d30c1
lea ecx, [esi + 4]
push ecx
call edi
test eax, eax
jne 0x100d30c1
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 0x100d30c1
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