Function at 0x10006a1c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
and dword [esp + 0x14], eax
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
cmp dword [ebp + 8], eax
je 0x10006a52
mov eax, esi
shr eax, 0x10
test ax, ax
je 0x10006a52
push esi
call fcn.10005c06
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, dword [edi + 0x10]
lea eax, [esp + 0x24]
push eax
call fcn.10011a03
test eax, eax
je 0x10006aa1
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x10006aa1
mov eax, esi
shr eax, 0x10
test ax, ax
jne 0x10006a97
cmp esi, dword [ebx + 0xc]
jle 0x10006a97
mov eax, esi
shl eax, 4
mov eax, dword [eax + 0x10001b80]
mov dword [ebx], eax
mov dword [ebx + 0xc], esi
push ebx
call fcn.10006e13
push 2
jmp 0x10006aea
push dword [ebp + 0xc]
call fcn.10005d19
mov ebx, eax
test ebx, ebx
je 0x10006af0
mov esi, dword [0x100136a8]
mov ecx, esi
push 1
push 0x24
push dword [ebp + 0xc]
call dword [0x100142a8]
call esi
mov eax, dword [esp + 0x14]
mov edi, dword [edi + 8]
push ebx
and dword [eax + 8], 0
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100142a8]
call esi
mov eax, dword [esp + 0x14]
push 4
mov dword [eax + 8], edi
pop edi
jmp 0x10006ccf
cmp dword [ebp + 0x10], 0
jne 0x10006bfc
push dword [0x100131bc]
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test dword [eax + 0x44], 0x1000000
je 0x10006b24
lea eax, [esi - 0x1b]
neg eax
sbb eax, eax
and eax, dword [esp + 0x1c]
jmp 0x10006b28
mov eax, dword [esp + 0x1c]
push dword [ebp + 0x18]
mov ecx, edi
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 0xc]
call fcn.10006872
mov edi, dword [esp + 0x18]
test eax, eax
jne 0x10006ccf
cmp dword [esp + 0x24], 2
jne 0x10006ba9
test esi, esi
jne 0x10006b6c
mov ebx, dword [esp + 0x20]
cmp edi, 2
jne 0x10006be6
push ebx
call fcn.10006e13
jmp 0x10006be6
mov ecx, dword [esp + 0x20]
cmp edi, 1
jne 0x10006ba4
mov eax, dword [ebp + 0xc]
cmp dword [ecx + 0x20], eax
jne 0x10006ba0
mov eax, esi
shr eax, 0x10
test ax, ax
jne 0x10006b9c
cmp esi, dword [ecx + 0xc]
jbe 0x10006b9c
mov eax, esi
shl eax, 4
mov eax, dword [eax + 0x10001b80]
mov dword [ecx], eax
mov dword [ecx + 0xc], esi
mov ebx, ecx
jmp 0x10006ba4
mov dword [esp + 0x10], ecx
mov eax, dword [ecx + 0x10]
jmp 0x10006be9
mov esi, dword [0x100136a8]
mov ecx, esi
push 1
push 0x24
push dword [esp + 0x28]
call dword [0x100142a8]
call esi
mov esi, dword [ebp + 0x14]
mov ecx, eax
mov eax, dword [ecx + 0x10]
mov dword [ebp + 0x10], eax
test esi, esi
jne 0x10006bfc
mov ebx, dword [ecx + 0x20]
push ebx
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x100142a8]
call esi
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
test ebx, ebx
jne 0x10006ccf
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
xor edi, edi
test eax, eax
je 0x10006c0e
mov ebx, eax
xor eax, eax
mov dword [ebp + 8], eax
jmp 0x10006c2e
mov ecx, 0x1001302c
call fcn.1001ed92
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], ecx
mov dword [ebp + 8], eax
test ecx, ecx
je 0x10006ce1
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push eax
push ecx
lea eax, [esp + 0x24]
mov dword [esp + 0x28], ebx
push eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x10]
call fcn.10011a56
test eax, eax
je 0x10006ccd
push dword [ebp + 0xc]
mov edi, esi
push dword [0x1001356c]
shr edi, 0x10
neg edi
sbb edi, edi
not edi
and edi, esi
mov esi, dword [0x100136c0]
mov ecx, esi
call dword [0x100142a8]
call esi
mov edx, dword [ebp + 0x10]
mov eax, edi
shl eax, 4
xor esi, esi
inc esi
mov eax, dword [eax + 0x10001b80]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x20], eax
xor eax, eax
mov dword [ebx + 0xc], edi
mov edi, esi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 8], esi
mov dword [ebx + 4], esi
mov dword [ebx + 0x1c], 0x80
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x14]
inc dword [edx]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], ecx
mov dword [edx + 0x10], ebx
mov dword [edx + 0x14], 2
mov dword [ebx + 0x10], edx
jmp 0x10006ce1
xor ebx, ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x10006ce1
push eax
mov ecx, 0x1001302c
call fcn.10005493
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10006cf3
mov ecx, dword [esp + 0x14]
push eax
call fcn.10006e6f
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10006cfc
mov dword [eax], edi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x18