Function at 0x100cd100
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x138
push esi
push edi
or eax, 0xffffffff
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x10294]
mov edi, dword [eax + 0x3c]
xor ecx, ecx
and edi, 0xfffff
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 2
mov dword [ebp - 0xc], 3
cmp edi, 3
jb 0x100cd43b
mov dword [ebp - 4], ecx
cmp edi, ecx
jbe 0x100cd21f
mov esi, dword [eax + 0xc]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x50]
mov eax, dword [eax + 8]
and eax, 0x20
xor edx, edx
or eax, edx
jne 0x100cd43b
mov eax, dword [ebp - 4]
cmp dword [ecx + 0x64], eax
jne 0x100cd43b
inc eax
add esi, 4
mov dword [ebp - 4], eax
cmp eax, edi
jb 0x100cd1f1
xor ecx, ecx
push ecx
push edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xb8]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebx + 0x10294]
push 0x10071f38
push eax
mov ecx, ebx
call fcn.10161210
test eax, eax
jne 0x100cd440
mov ecx, dword [ebp + eax*4 - 0xb8]
cmp ecx, dword [ebp + eax*4 - 0xa8]
jne 0x100cd43b
cmp ecx, dword [ebp + eax*4 - 0x98]
jne 0x100cd43b
cmp dword [ecx + 0x64], eax
je 0x100cd285
test byte [ebx + 0x7fcc], 2
jne 0x100cd43b
inc eax
cmp eax, 3
jb 0x100cd252
or eax, 0xffffffff
cmp dword [ebp - 0x9c], eax
jne 0x100cd43b
cmp dword [ebp - 0x8c], eax
jne 0x100cd43b
mov eax, dword [0x101e316c]
test eax, eax
jge 0x100cd2b3
xor eax, eax
jmp 0x100cd2ba
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x18], 0
je 0x100cd2e1
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x100cd2cb
mov esi, ecx
jmp 0x100cd2ef
mov edx, dword [ecx]
mov dword [eax + 0x18], edx
test edx, edx
jne 0x100cd2d7
mov dword [eax + 0x1c], edx
mov dword [ecx], 0xfefefefe
mov esi, ecx
jmp 0x100cd2ef
mov ecx, dword [eax + 0x14]
push 0x10
push 0x44
call fcn.101d8457
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x100cd430
push eax
mov dword [esi], eax
mov dword [esi + 8], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
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
or ecx, 0xffffffff
xor edx, edx
mov eax, edi
and eax, 0xfffff
mov dword [esi + 0x10], ecx
mov word [esi + 0x40], dx
mov word [esi + 0x42], dx
mov dword [esi + 0x20], ecx
or eax, 0x70200000
push esi
mov edx, edi
mov ecx, edi
call fcn.10172020
mov dword [ebp - 4], eax
test eax, eax
jl 0x100cd41d
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 edx, dword [esi + 0xc]
lea eax, [edi*4]
push eax
mov eax, dword [ebx + 0x10294]
mov ecx, dword [eax + 0xc]
push ecx
push edx
call sub.msvcrt.dll_memcpy
mov ecx, dword [esi + 4]
add esp, 0xc
lea eax, [edi*4]
push eax
lea eax, [ebp - 0xb8]
push eax
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor eax, eax
test edi, edi
jbe 0x100cd40d
test byte [ebx + 0x7fcc], 2
je 0x100cd3ef
mov edx, dword [ebx + 0x10294]
mov ecx, dword [edx + 4]
mov ecx, dword [ecx + eax*4]
mov edx, dword [ecx + 0x44]
or dword [ecx + 0x40], 0x80
mov dword [ecx + 0x44], edx
mov ecx, dword [ebx + 0x10294]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + eax*4]
cmp dword [ecx + 0x7c], 0xffffffff
je 0x100cd3ef
mov edx, dword [ebx + 0x10294]
mov ecx, dword [edx + 4]
mov edx, dword [ecx + eax*4]
mov ecx, dword [edx + 0x7c]
mov edx, dword [ecx + 0x44]
or dword [ecx + 0x40], 0x80
mov dword [ecx + 0x44], edx
mov ecx, dword [ebx + 0x10294]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + eax*4]
or dword [ecx + 0x40], 0x80
mov edx, dword [ecx + 0x44]
inc eax
mov dword [ecx + 0x44], edx
cmp eax, edi
jb 0x100cd39f
mov eax, dword [ebx + 0x10294]
push esi
push eax
call fcn.10172c80
mov dword [ebp - 4], eax
call fcn.10171ee0
call fcn.101751f0
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x8007000e
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret