Function at 0x100cd990
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [ebx + 0x10294]
push esi
push edi
mov edi, dword [eax + 0x3c]
push 1
and edi, 0xfffff
push edi
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xd0]
push edx
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x150]
push edx
push 0x10078b08
xor esi, esi
push eax
mov ecx, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 3
mov byte [ebp - 1], 0
call fcn.10161210
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x100cda35
push 1
push edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, dword [ebx + 0x10294]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x150]
push eax
push 0x10078ce8
push ecx
mov ecx, ebx
call fcn.10161210
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x100cdcca
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0x14c]
cmp dword [eax + 0x3c], 0x50000002
je 0x100cda4f
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
cmp dword [eax + 0x80], esi
jne 0x100cda44
mov edx, 1
cmp edi, edx
jbe 0x100cdaab
mov ecx, dword [ebx + 0x10294]
mov eax, dword [ecx + 4]
mov ecx, dword [eax]
add eax, 4
mov dword [ebp - 0x10], ecx
lea ecx, [edi*4 + 4]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 0x10]
cmp dword [eax], esi
jne 0x100cda44
mov eax, dword [ebx + 0x10294]
mov eax, dword [eax + 4]
mov esi, dword [ecx + eax]
cmp esi, dword [eax + edi*4]
jne 0x100cda44
mov eax, dword [ebp - 8]
inc edx
add eax, 4
add ecx, 4
mov dword [ebp - 8], eax
cmp edx, edi
jb 0x100cda80
xor esi, esi
mov eax, dword [0x101e316c]
cmp eax, esi
jge 0x100cdab8
xor eax, eax
jmp 0x100cdabf
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x18], esi
je 0x100cdae7
mov ecx, dword [eax + 0x18]
cmp ecx, esi
jne 0x100cdad1
xor ecx, ecx
mov esi, ecx
jmp 0x100cdaf5
mov edx, dword [ecx]
mov dword [eax + 0x18], edx
cmp edx, esi
jne 0x100cdadd
mov dword [eax + 0x1c], esi
mov dword [ecx], 0xfefefefe
mov esi, ecx
jmp 0x100cdaf5
mov ecx, dword [eax + 0x14]
push 0x10
push 0x44
call fcn.101d8457
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x100cdcc7
or ecx, 0xffffffff
xor edx, edx
push eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x20], ecx
mov dword [esi], eax
mov dword [esi + 8], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 4], eax
mov word [esi + 0x40], dx
mov dword [esi + 0xc], eax
mov word [esi + 0x42], dx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
lea ecx, [eax + 6]
push esi
mov edx, edi
mov eax, 0x70800002
call fcn.10172020
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x100cdcbd
mov eax, dword [ebx + 0x10294]
mov ecx, dword [eax + 0x34]
mov dword [esi + 0x34], ecx
mov edx, dword [eax + 0x38]
mov dword [esi + 0x38], edx
mov ecx, dword [ebx + 0x10294]
mov edx, dword [ecx + 0xc]
lea eax, [edi*4]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ebp - 0xcc]
add esp, 0xc
cmp byte [ebp - 1], 0
mov dword [eax], ecx
mov dword [eax + 4], edx
jne 0x100cdbb4
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xbc]
add eax, 8
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x100cdc73
mov eax, dword [ebp - 0xc0]
mov edi, dword [ebp - 0xbc]
mov ecx, eax
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 0x7c]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ecx
cmp eax, 0xffffffff
je 0x100cdbdb
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov ecx, eax
mov eax, dword [edi + 0x7c]
cmp eax, 0xffffffff
je 0x100cdbe8
mov dword [ebp - 0x10], eax
mov edi, eax
mov eax, dword [ecx + 0x64]
mov edx, dword [ecx + 0x60]
push 0x11
push eax
mov eax, dword [ecx + 0x50]
push edx
push eax
lea ecx, [ebp - 0x1c]
push ecx
push ebx
call fcn.10169c20
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x100cdcbd
mov edx, dword [edi + 0x64]
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x50]
push 0x11
push edx
push eax
push ecx
lea edx, [ebp - 0x18]
push edx
push ebx
call fcn.10169c20
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x100cdcbd
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x80]
mov eax, dword [ebp - 0x1c]
xor ecx, 0x400
mov dword [eax + 0x80], ecx
mov edx, dword [edi + 0x80]
mov ecx, dword [ebp - 0x18]
xor edx, 0x400
mov dword [ecx + 0x80], edx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x7c], edx
mov edx, dword [ebp - 0x10]
mov dword [ecx + 0x7c], edx
mov edx, dword [esi + 4]
mov dword [edx + 8], eax
mov eax, dword [esi + 4]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 0xb0]
mov dword [ecx + 0x10], eax
mov edx, dword [esi + 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
push esi
mov ecx, ebx
call edx
test al, al
je 0x100cdcad
mov dword [ebp - 0xc], 1
call fcn.10171ee0
call fcn.101751f0
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x10294]
push esi
push eax
call fcn.10172c80
mov dword [ebp - 0xc], eax
call fcn.10171ee0
call fcn.101751f0
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret