Function at 0x100af5e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100f2378
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1012fdf0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [0x1012f5a0]
cmp eax, 0xffffffff
jne 0x100af61b
xor ebp, ebp
jmp 0x100af624
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x40], 0
test ebp, ebp
je 0x100af665
cmp dword [ebp + 0x30], 0
jne 0x100af6ac
cmp dword [ebp + 0xc], 0
jne 0x100af6b2
push 0x100aa7e0
push 0x10134d9c
call fcn.100aba20
mov eax, dword [0x1012f5a0]
add esp, 8
cmp eax, 0xffffffff
je 0x100af665
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x40], 0xffffffff
test ebp, ebp
je 0x100af698
lea ecx, [ebp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x100af698
mov eax, dword [ebp]
mov edx, dword [eax]
push 0
mov ecx, ebp
call edx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x100af6fa
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x100af6e4
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, dword [edi]
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0xc], 0
jne 0x100af6b2
mov ecx, dword [ebp + 0x2c]
mov esi, dword [ebp + 0x14]
mov edi, dword [ecx]
mov edx, ecx
mov eax, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
test esi, esi
je 0x100af720
cmp esi, dword [esp + 0x24]
je 0x100af725
call fcn.100b308d
cmp edi, dword [esp + 0x28]
je 0x100af634
lea ecx, [esp + 0x1c]
call fcn.100aafe0
test esi, esi
jne 0x100af7c8
call fcn.100b308d
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100af751
call fcn.100b308d
cmp dword [edi + 0x10], 0
je 0x100af7ac
test esi, esi
jne 0x100af7cf
call fcn.100b308d
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100af76c
call fcn.100b308d
cmp dword [edi + 0x18], 0
je 0x100af7ac
test esi, esi
jne 0x100af7d3
call fcn.100b308d
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100af787
call fcn.100b308d
mov ebx, dword [edi + 0x10]
test esi, esi
jne 0x100af7d7
call fcn.100b308d
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100af79f
call fcn.100b308d
mov edx, dword [ebx]
mov eax, dword [edi + 0x18]
mov edx, dword [edx + 4]
push eax
mov ecx, ebx
call edx
push edi
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [ebp + 0x14]
call fcn.100aecb0
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x100af716
mov eax, dword [esi]
jmp 0x100af747
mov eax, dword [esi]
jmp 0x100af762
mov eax, dword [esi]
jmp 0x100af77d
mov eax, dword [esi]
jmp 0x100af795