Function at 0x100c9a60
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x180
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10294]
push ebx
push esi
push edi
mov edi, dword [eax + 0x3c]
xor edx, edx
and edi, 0xfffff
cmp dword [ebp + 0xc], edx
mov dword [ebp - 0x14], edx
sete bl
mov dword [ebp - 0x4c], edx
mov byte [ebp - 5], dl
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x44], 2
mov dword [ebp - 0x40], 3
push ebx
push edi
push edx
lea edx, [ebp - 0xfc]
push edx
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x17c]
push edx
push 0x10071998
push eax
mov dword [ebp - 0x10], edi
call fcn.10161210
mov esi, 0x20
cmp dword [ebp - 0x14], esi
ja 0x100c9ada
test eax, eax
je 0x100c9b25
push ebx
push edi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0xfc]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ecx + 0x10294]
lea eax, [ebp - 0x17c]
push eax
push 0x10071c68
push edx
mov byte [ebp - 5], 1
call fcn.10161210
cmp dword [ebp - 0x14], esi
jbe 0x100c9b1d
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
test eax, eax
jne 0x100c9eda
lea eax, [ebp - 0xec]
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x2c], ecx
jmp 0x100c9b42
mov edi, esi
lea edx, [ebp - 0xcc]
lea eax, [ebp - 0xbc]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x30], eax
jmp 0x100c9b62
mov edi, esi
mov dword [ebp - 0x18], 0
test edi, edi
jbe 0x100c9c68
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
mov esi, dword [eax]
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp + edx*4 - 0xfc]
mov edx, dword [ecx]
or edi, 0xffffffff
cmp dword [esi + 0x5c], edi
jne 0x100c9c6b
cmp dword [ebx + 0x5c], edi
jne 0x100c9c6b
cmp dword [edx + 0x5c], edi
jne 0x100c9c6b
mov eax, dword [esi + 0x50]
mov eax, dword [eax + 8]
and eax, 0x100
xor ecx, ecx
or eax, ecx
je 0x100c9c6b
mov eax, dword [edx + 0x50]
mov eax, dword [eax + 8]
and eax, 0x100
or eax, ecx
je 0x100c9c6b
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + 8]
and eax, 0x100
or eax, ecx
je 0x100c9c6b
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x44]
push edx
call fcn.101658d0
test eax, eax
jne 0x100c9c68
lea eax, [ebp - 0x54]
push eax
mov ebx, esi
call fcn.101658d0
test eax, eax
jne 0x100c9c68
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx]
lea ecx, [ebp - 0x5c]
push ecx
call fcn.101658d0
test eax, eax
jne 0x100c9c68
fld qword [ebp - 0x5c]
fsub qword [ebp - 0x54]
fsub qword [ebp - 0x44]
fabs
fcomp qword [0x100a3140]
fnstsw ax
test ah, 0x41
je 0x100c9c68
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x34]
cmp ecx, dword [edx]
jne 0x100c9c68
mov eax, dword [ebp - 0x18]
mov ecx, 4
add dword [ebp - 0x24], ecx
add dword [ebp - 0x1c], ecx
add dword [ebp - 0x34], ecx
add dword [ebp - 0x28], ecx
inc eax
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x10]
jb 0x100c9b89
or edi, 0xffffffff
mov esi, dword [ebp - 0x10]
cmp dword [ebp - 0x18], esi
je 0x100c9cb4
mov eax, dword [ebp - 0x38]
mov ecx, 0x10
sub dword [ebp - 0x30], ecx
add dword [ebp - 0x20], ecx
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 2
jb 0x100c9b60
mov eax, dword [ebp - 0x3c]
sub dword [ebp - 0x2c], ecx
add dword [ebp - 0xc], ecx
inc eax
mov dword [ebp - 0x3c], eax
cmp eax, 2
jb 0x100c9b40
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [0x101e316c]
test eax, eax
jge 0x100c9cc1
xor eax, eax
jmp 0x100c9cc8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x18], 0
je 0x100c9cef
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x100c9cd9
mov ebx, ecx
jmp 0x100c9cfd
mov edx, dword [ecx]
mov dword [eax + 0x18], edx
test edx, edx
jne 0x100c9ce5
mov dword [eax + 0x1c], edx
mov dword [ecx], 0xfefefefe
mov ebx, ecx
jmp 0x100c9cfd
mov ecx, dword [eax + 0x14]
push 0x10
push 0x44
call fcn.101d8457
mov ebx, eax
xor eax, eax
cmp ebx, eax
je 0x100c9d55
xor edx, edx
xor ecx, ecx
mov dword [ebx], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x3c], eax
mov dword [ebx + 4], eax
mov word [ebx + 0x40], cx
mov dword [ebx + 0xc], eax
mov word [ebx + 0x42], dx
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov dword [ebp - 0xc], ebx
cmp byte [ebp - 5], dl
je 0x100c9d65
cmp dword [ebp + 0xc], eax
jne 0x100c9e7b
push eax
mov eax, esi
and eax, 0xfffff
or eax, 0x70c00000
jmp 0x100c9d72
mov edi, 0x8007000e
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push eax
mov eax, esi
and eax, 0xfffff
or eax, 0x70b00000
push ebx
mov edx, esi
lea ecx, [esi + esi]
call fcn.10172020
mov edi, eax
test edi, edi
jl 0x100c9e80
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10294]
mov ecx, dword [eax + 0x34]
mov dword [ebx + 0x34], ecx
mov edx, dword [eax + 0x38]
mov dword [ebx + 0x38], edx
mov eax, dword [edi + 0x10294]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebx + 0xc]
add esi, esi
add esi, esi
push esi
push ecx
push edx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebx + 4]
add esp, 0xc
push esi
lea eax, [ebp - 0xfc]
push eax
push ecx
call sub.msvcrt.dll_memcpy
mov edx, dword [edi + 0x10294]
mov eax, dword [edx + 4]
add esp, 0xc
cmp byte [ebp - 5], 0
push esi
je 0x100c9de6
mov ecx, dword [ebx + 4]
add eax, esi
push eax
add ecx, esi
push ecx
jmp 0x100c9df3
mov ecx, dword [ebp - 0x10]
lea edx, [eax + ecx*8]
mov eax, dword [ebx + 4]
push edx
add eax, esi
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
mov edx, dword [eax]
mov eax, dword [eax + esi]
mov ecx, dword [ecx]
add esp, 0xc
cmp byte [ebp + 0x18], 0
je 0x100c9e2e
mov esi, dword [ecx + 0x50]
cmp esi, dword [edx + 0x50]
jne 0x100c9e1e
mov esi, dword [ecx + 0x60]
cmp esi, dword [edx + 0x60]
je 0x100c9e7b
mov edx, dword [ecx + 0x50]
cmp edx, dword [eax + 0x50]
jne 0x100c9e2e
mov edx, dword [ecx + 0x60]
cmp edx, dword [eax + 0x60]
je 0x100c9e7b
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100c9e6a
mov edx, dword [ebp - 0x14]
mov dword [eax], ebx
xor eax, eax
mov dword [ebp - 0xc], 0
test edx, edx
jbe 0x100c9e61
mov ecx, dword [ebp + 0x10]
lea ecx, [ecx + edx*4 - 4]
mov edi, edi
mov esi, dword [ebp + eax*4 - 0x17c]
mov dword [ecx], esi
inc eax
sub ecx, 4
cmp eax, edx
jb 0x100c9e50
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
xor edi, edi
jmp 0x100c9e80
mov ecx, dword [edi + 0x10294]
push ebx
push ecx
call fcn.10172c80
xor edi, edi
jmp 0x100c9e80
mov edi, 1
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x100c9ed8
call fcn.10171ee0
mov eax, dword [0x101e316c]
test eax, eax
jl 0x100c9ed8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x100c9ed8
mov ebx, dword [ebp - 0xc]
push 0x44
push 0xfe
push ebx
call sub.msvcrt.dll_memset
mov dword [ebx], 0
mov eax, dword [esi + 0x1c]
add esp, 0xc
test eax, eax
je 0x100c9ed2
mov dword [eax], ebx
mov dword [esi + 0x1c], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14