Function at 0x101ae410
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x10]
push eax
push esi
push ecx
call fcn.1016a100
test eax, eax
jl 0x101ae6e8
mov edx, dword [esi + 0x34]
mov edi, dword [ebp - 0x10]
mov dword [edi + 0x34], edx
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
cmp dword [esi + 8], 0
mov dword [ebp - 4], 0
jbe 0x101ae480
jmp 0x101ae454
mov esi, edx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
mov esi, dword [eax + ecx*4]
mov edi, dword [eax]
mov ebx, dword [ebp + 8]
call fcn.101acd60
test al, al
je 0x101ae47a
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [edx + 8]
jb 0x101ae452
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 8]
cmp dword [ebp - 4], eax
je 0x101ae6e6
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
and eax, 0xfffff
push 0xffffffffffffffff
or eax, 0x10000000
push eax
lea eax, [ebp - 8]
push eax
push ecx
call fcn.10169e20
test eax, eax
jl 0x101ae6e8
mov edx, dword [esi + 0x34]
mov ebx, dword [ebp - 8]
mov dword [ebx + 0x34], edx
mov eax, dword [esi + 0x38]
xor esi, esi
mov dword [ebx + 0x38], eax
mov dword [ebp - 4], esi
cmp dword [edi + 8], esi
jbe 0x101ae6cf
lea ecx, [ecx]
mov esi, dword [ebp - 4]
mov ecx, dword [edi + 0xc]
mov edx, dword [ebx + 0xc]
add esi, esi
add esi, esi
mov eax, dword [esi + ecx]
mov ecx, dword [ebp + 8]
mov dword [esi + edx], eax
mov ebx, dword [ebx + 4]
mov eax, dword [0x101e316c]
mov edx, dword [ecx + 0x8040]
add ebx, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], ebx
test eax, eax
jge 0x101ae504
xor eax, eax
jmp 0x101ae50b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], 0
je 0x101ae532
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x101ae51c
mov ebx, ecx
jmp 0x101ae543
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
test edx, edx
jne 0x101ae528
mov dword [eax + 0x10], edx
mov dword [ecx], 0xfefefefe
mov ebx, ecx
jmp 0x101ae543
mov ecx, dword [eax + 8]
push 0x10
push pe_nt_image_headers32
call fcn.101d8457
mov ebx, eax
xor ecx, ecx
cmp ebx, ecx
je 0x101ae599
or eax, 0xffffffff
push eax
push eax
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, ebx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0x94], ecx
mov dword [ebx + 0x98], ecx
mov dword [ebx + 0x24], ecx
call fcn.10165570
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x101ae5a0
mov edi, dword [ebp + 8]
push 0
call fcn.10169830
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x101ae5a0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], 0
mov dword [ecx], ebx
jmp 0x101ae5e7
mov eax, 0x8007000e
jmp 0x101ae5ef
mov edi, ebx
call fcn.101654a0
mov eax, dword [0x101e316c]
test eax, eax
jge 0x101ae5b4
xor edi, edi
jmp 0x101ae5bd
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 0x101ae5e1
mov dword [eax], ebx
jmp 0x101ae5e4
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp eax, ecx
jl 0x101ae6e8
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
mov eax, dword [esi + eax]
mov ebx, dword [eax + 0x28]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 4]
mov ecx, dword [esi + ecx]
mov dword [ecx + 0x28], ebx
mov ebx, dword [eax + 0x2c]
mov dword [ecx + 0x2c], ebx
add eax, 0x28
mov eax, dword [eax + 8]
mov dword [ecx + 0x30], eax
add ecx, 0x28
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 4]
mov eax, dword [esi + eax]
mov ecx, dword [edi + 0xc]
mov dword [esi + ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [esi + ecx]
mov ebx, dword [eax + 0x8c]
mov ecx, dword [edi + 0xc]
mov ecx, dword [esi + ecx]
mov dword [ecx + 0x8c], ebx
mov ebx, dword [eax + 0x90]
mov dword [ecx + 0x90], ebx
mov ebx, dword [eax + 0xa4]
mov dword [ecx + 0xa4], ebx
mov ebx, dword [eax + 0xa8]
mov dword [ecx + 0xa8], ebx
mov ebx, dword [eax + 0xac]
mov dword [ecx + 0xac], ebx
mov ebx, dword [eax + 0xb4]
mov dword [ecx + 0xb4], ebx
mov eax, dword [eax + 0x28]
mov dword [ecx + 0x28], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [esi + ecx]
mov ebx, dword [eax + 0x68]
mov ecx, dword [edi + 0xc]
mov ecx, dword [esi + ecx]
mov dword [ecx + 0x68], ebx
mov al, byte [eax + 0x6c]
mov ebx, dword [ebp - 8]
mov byte [ecx + 0x6c], al
mov ecx, dword [edx + 0xc]
mov eax, dword [esi + ecx]
mov edx, dword [edi + 0xc]
mov ecx, dword [eax + 0x40]
mov esi, dword [edx + esi]
mov dword [esi + 0x40], ecx
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 4]
inc eax
mov dword [esi + 0x44], edx
mov dword [ebp - 4], eax
cmp eax, dword [edi + 8]
jb 0x101ae4d0
xor esi, esi
mov eax, dword [ebp + 8]
push esi
push ebx
push eax
call fcn.101ad360
cmp eax, esi
jl 0x101ae6e8
mov dword [ebx + 0x3c], esi
mov dword [ebx], esi
mov dword [ebx + 8], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8