Function at 0x10168fa0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
cmp dword [ebx + 0x14], 0
push esi
push edi
mov dword [ebp - 8], ebx
mov dword [ebx], 0x100901b4
je 0x10169004
xor edi, edi
cmp dword [ebx + 0x10], edi
jbe 0x10168fdd
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x10168fd7
call fcn.10171ee0
call fcn.101751f0
inc edi
cmp edi, dword [ebx + 0x10]
jb 0x10168fc3
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x10169004
mov eax, dword [0x101e316c]
test eax, eax
jge 0x10168ff1
xor eax, eax
jmp 0x10168ff8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebx + 0x7f34], 0
je 0x101690a8
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebx + 0xc], eax
jbe 0x1016907e
jmp 0x10169020
mov edx, dword [ebx + 0x7f34]
mov edi, dword [edx + eax*4]
test edi, edi
je 0x10169075
call fcn.101654a0
mov eax, dword [0x101e316c]
test eax, eax
jge 0x1016903f
xor esi, esi
jmp 0x10169048
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
push pe_nt_image_headers32
push 0xfe
push edi
call sub.msvcrt.dll_memset
mov dword [edi], 0
mov eax, dword [esi + 0x10]
add esp, 0xc
test eax, eax
je 0x1016906c
mov dword [eax], edi
jmp 0x1016906f
mov dword [esi + 0xc], edi
mov eax, dword [ebp - 4]
mov dword [esi + 0x10], edi
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebx + 0xc]
jb 0x10169020
mov esi, dword [ebx + 0x7f34]
test esi, esi
je 0x101690a8
mov eax, dword [0x101e316c]
test eax, eax
jge 0x10169095
xor eax, eax
jmp 0x1016909c
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebx + 0x7f2c], 0
je 0x10169135
xor edi, edi
cmp dword [ebx + 8], edi
jbe 0x1016910b
lea esp, [esp]
mov ecx, dword [ebx + 0x7f2c]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x10169105
lea ebx, [esi + 0x24]
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.101acbe0
mov eax, dword [0x101e316c]
test eax, eax
jge 0x101690ef
xor eax, eax
jmp 0x101690f6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp - 8]
inc edi
cmp edi, dword [ebx + 8]
jb 0x101690c0
mov esi, dword [ebx + 0x7f2c]
test esi, esi
je 0x10169135
mov eax, dword [0x101e316c]
test eax, eax
jge 0x10169122
xor eax, eax
jmp 0x10169129
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebx + 0x7f24], 0
je 0x101691f1
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebx + 4], eax
jbe 0x101691b7
lea esp, [esp]
mov ecx, dword [ebx + 0x7f24]
mov edi, dword [ecx + eax*4]
test edi, edi
je 0x101691ae
mov esi, dword [edi + 0x44]
test esi, esi
je 0x1016918b
mov eax, esi
call fcn.10117350
mov eax, dword [0x101e316c]
test eax, eax
jge 0x10169178
xor eax, eax
jmp 0x1016917f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [0x101e316c]
test eax, eax
jge 0x10169198
xor eax, eax
jmp 0x1016919f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebx + 4]
jb 0x10169150
mov ebx, dword [ebx + 0x7f24]
test ebx, ebx
je 0x101691f1
mov eax, dword [0x101e316c]
test eax, eax
jge 0x101691de
xor eax, eax
mov ecx, dword [eax]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret