Function at 0x100cc500
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x10294]
mov eax, dword [ecx + 0x3c]
xor esi, esi
and eax, 0xfffff
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], 3
cmp eax, 1
je 0x100cc54f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 1
push 1
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0xcc]
push edx
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x14c]
push edx
push 0x100723e8
push ecx
mov ecx, edi
call fcn.10161210
cmp eax, 1
jne 0x100cc60a
push eax
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0xcc]
push ecx
mov ecx, dword [edi + 0x10294]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14c]
push eax
push 0x100725c8
push ecx
mov ecx, edi
call fcn.10161210
cmp eax, 1
jne 0x100cc60a
push eax
push eax
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [edi + 0x10294]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14c]
push edx
push 0x100727a8
push eax
mov ecx, edi
call fcn.10161210
cmp eax, 1
jne 0x100cc60a
push eax
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0xcc]
push edx
mov edx, dword [edi + 0x10294]
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14c]
push ecx
push 0x10072988
push edx
mov ecx, edi
call fcn.10161210
cmp eax, esi
jne 0x100cc820
mov esi, 4
mov eax, dword [edi + 0x10294]
mov ecx, dword [eax + 4]
mov ebx, dword [esi + ecx]
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + 8]
and eax, 0x100
xor ecx, ecx
or eax, ecx
je 0x100cc541
lea edx, [ebp - 0x1c]
push edx
call fcn.101658d0
test eax, eax
jne 0x100cc541
fldz
fcomp qword [ebp - 0x1c]
fnstsw ax
test ah, 0x44
jp 0x100cc541
cmp dword [ebx + 0x5c], 0xffffffff
jne 0x100cc541
add esi, 4
cmp esi, 8
jb 0x100cc617
mov eax, dword [ebp - 0xac]
xor esi, esi
cmp dword [eax + 0x5c], 0xffffffff
mov byte [ebp - 5], 0
jne 0x100cc692
mov eax, dword [eax + 0x50]
mov eax, dword [eax + 8]
and eax, 0x100
xor ecx, ecx
or eax, ecx
je 0x100cc692
mov byte [ebp - 5], 1
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x100cc6a8
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
xor esi, esi
mov edx, dword [edi + 0x10294]
mov edi, dword [ebp + eax - 0xbc]
mov edx, dword [edx + 4]
lea ecx, [ebp + eax - 0xac]
mov dword [eax + edx], edi
mov eax, dword [ecx]
mov ecx, dword [eax + 0x60]
mov edx, dword [eax + 0x50]
mov edi, dword [eax + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [0x101e316c]
cmp eax, esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
jge 0x100cc6e3
xor eax, eax
jmp 0x100cc6ea
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], esi
je 0x100cc712
mov ecx, dword [eax + 0xc]
cmp ecx, esi
jne 0x100cc6fc
xor ecx, ecx
mov ebx, ecx
jmp 0x100cc723
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
cmp edx, esi
jne 0x100cc708
mov dword [eax + 0x10], esi
mov dword [ecx], 0xfefefefe
mov ebx, ecx
jmp 0x100cc723
mov ecx, dword [eax + 8]
push 0x10
push pe_nt_image_headers32
call fcn.101d8457
mov ebx, eax
cmp ebx, esi
je 0x100cc773
mov ecx, dword [ebp - 0x2c]
or eax, 0xffffffff
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x28]
push edi
push eax
push ecx
mov eax, ebx
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 0x94], esi
mov dword [ebx + 0x98], esi
mov dword [ebx + 0x24], esi
call fcn.10165570
mov esi, eax
test esi, esi
jl 0x100cc77a
mov edi, dword [ebp + 8]
push 0
call fcn.10169830
mov esi, eax
test esi, esi
jl 0x100cc77a
mov edi, ebx
xor esi, esi
mov dword [ebp - 0x10], edi
jmp 0x100cc7c4
mov esi, 0x8007000e
jmp 0x100cc7c1
mov edi, ebx
call fcn.101654a0
mov eax, dword [0x101e316c]
test eax, eax
jge 0x100cc78e
xor edi, edi
jmp 0x100cc797
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push pe_nt_image_headers32
push 0xfe
push ebx
call sub.msvcrt.dll_memset
mov dword [ebx], 0
mov eax, dword [edi + 0x10]
add esp, 0xc
test eax, eax
je 0x100cc7bb
mov dword [eax], ebx
jmp 0x100cc7be
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov edi, dword [ebp - 0x10]
mov eax, esi
test esi, esi
jl 0x100cc820
mov esi, dword [ebp - 0x18]
mov edx, esi
mov eax, edi
call fcn.10165690
test eax, eax
jl 0x100cc820
mov ecx, esi
mov eax, edi
call fcn.10166070
cmp byte [ebp - 5], 0
jne 0x100cc829
cmp dword [edi + 0x7c], 0xffffffff
jne 0x100cc7f2
mov dword [edi + 0x7c], esi
xor dword [edi + 0x80], 0x400
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10294]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + 4]
mov dword [ecx + eax + 4], edi
add eax, 4
mov dword [ebp - 0xc], eax
cmp eax, 4
jb 0x100cc6a0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi + 0x4c]
mov eax, dword [edx*4 + 0x101e0f10]
mov esi, dword [edi + 0xc0]
mov ebx, dword [edi + 0xc4]
and al, 0xf
cmp al, 4
je 0x100cc850
xor esi, 0x80000000
xor ebx, 0xffffffff
jmp 0x100cc859
xor esi, 0
xor ebx, 0x80000000
mov eax, edi
call fcn.10165fc0
push 0x11
push ebx
mov ebx, dword [ebp + 8]
push esi
call fcn.10166220
test eax, eax
jl 0x100cc820
jmp 0x100cc7fc