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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x34
push ebx
push esi
push edi
mov edi, edx
mov dword [eax], 0
mov ebx, ecx
mov dword [eax + 4], 0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x132712
sub ecx, edx
lea esi, [ecx + 1]
mov ecx, esi
call fcn.000f2310
mov dword [ebp - 0x10], eax
test eax, eax
je 0x132b2e
push esi
push edi
push eax
call fcn.0015cd40
mov esi, dword [ebp - 0x10]
add esp, 0xc
push 0x18f004
push esi
call fcn.001614e2
add esp, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
test eax, eax
jne 0x13277a
push esi
call fcn.00158d47
mov edx, dword [ebp + 8]
add esp, 4
mov eax, dword [ebx + 0x18]
mov dword [edx], eax
mov eax, dword [ebx + 0x1c]
mov dword [edx + 4], eax
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebx + 0x68], 1
je 0x13279e
push 0x3a
push eax
call fcn.001533c0
mov ecx, eax
add esp, 8
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x13279e
mov byte [ecx], 0
inc ecx
mov dword [ebp - 0xc], ecx
cmp dword [0x1aa220], 0
je 0x1327c0
push eax
push str.Looking_for__s_n
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
add esp, 0xc
mov esi, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], ecx
mov byte [ebp - 1], 0
push ecx
xor eax, eax
xor edi, edi
push esi
mov ecx, ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], edi
call fcn.000ef9e0
add esp, 8
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x132b23
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 8]
cmp dword [ecx + 0x10], 2
jne 0x132aca
xor esi, esi
mov ecx, eax
mov dword [ebp - 0x28], esi
call fcn.000efb80
test eax, eax
je 0x132a50
mov ecx, dword [ebp - 0x1c]
mov edx, esi
mov byte [ebp - 0x14], 0
call fcn.000efbf0
mov esi, eax
test esi, esi
je 0x132a9a
mov eax, dword [ebx + 0x68]
test al, 0xe
je 0x1328a5
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
test eax, eax
je 0x132852
push dword [ebp - 8]
push eax
mov eax, dword [ebx + 0x104]
push ebx
call eax
add esp, 0xc
test eax, eax
je 0x132878
mov eax, dword [esi + 4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x132958
push dword [ebp - 8]
push eax
mov eax, dword [ebx + 0x104]
push ebx
call eax
add esp, 0xc
test eax, eax
jne 0x132958
mov eax, dword [esi + 4]
test byte [eax + 0x38], 1
jne 0x132a48
test edi, edi
je 0x13289b
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x18]
or eax, dword [edx + 0x1c]
jne 0x13289b
mov ecx, edi
call fcn.000eef10
mov edi, esi
mov dword [ebp - 0x18], edi
jmp 0x132995
test al, 1
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
je 0x132858
test eax, eax
je 0x132958
push dword [ebp - 8]
push eax
mov eax, dword [ebx + 0x104]
push ebx
call eax
add esp, 0xc
test eax, eax
jne 0x132958
cmp dword [ebp - 0xc], eax
je 0x132878
cmp dword [esi + 8], eax
je 0x132958
mov ecx, esi
call fcn.000ef100
xor edi, edi
mov dword [ebp - 0x30], eax
test eax, eax
jle 0x132955
nop dword [eax]
mov edx, str.tsk_fs_file_attr_get_idx
mov ecx, esi
call fcn.000ef010
test eax, eax
jne 0x132940
mov ecx, dword [esi + 8]
mov edx, edi
mov ecx, dword [ecx + 0xc8]
call fcn.00131fa0
test eax, eax
je 0x132940
mov eax, dword [eax + 0xc]
test eax, eax
je 0x132940
push dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 0x104]
push ebx
call eax
mov ecx, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
movzx ecx, cl
mov eax, 1
cmove ecx, eax
mov dword [ebp - 0x14], ecx
jmp 0x132943
mov ecx, dword [ebp - 0x14]
inc edi
cmp edi, dword [ebp - 0x30]
jl 0x1328f0
mov edi, dword [ebp - 0x18]
test cl, cl
je 0x132958
jmp 0x132878
mov edi, dword [ebp - 0x18]
cmp dword [esi], 0x11212212
jne 0x132995
mov ecx, dword [esi + 8]
mov dword [esi], 0
test ecx, ecx
je 0x132979
call fcn.00132560
mov dword [esi + 8], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x13298c
call fcn.00132180
mov dword [esi + 4], 0
push esi
call fcn.00158d47
add esp, 4
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
inc esi
mov dword [ebp - 0x28], esi
call fcn.000efb80
cmp esi, eax
jb 0x132815
test edi, edi
je 0x132a50
mov esi, edi
mov edi, dword [ebp - 8]
push 0x18f004
push 0
call fcn.001614e2
add esp, 8
mov dword [ebp - 8], eax
cmp dword [0x1aa220], 0
mov dword [ebp - 0xc], 0
je 0x1329f8
push eax
push edi
push str.Found_it___s___now_looking_for__s_n
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
mov eax, dword [ebp - 8]
add esp, 0x10
test eax, eax
je 0x132a6d
test byte [ebx + 0x68], 1
je 0x132a1d
push 0x3a
push eax
call fcn.001533c0
mov ecx, eax
add esp, 8
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x132a1d
mov byte [ecx], 0
inc ecx
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 4]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], esi
test eax, eax
je 0x132a3a
mov ecx, eax
call fcn.000eef10
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x132a57
call fcn.000eef10
jmp 0x132a57
mov dword [ebp - 0x2c], esi
jmp 0x1329b6
mov esi, dword [ebp - 0x24]
mov byte [ebp - 1], 1
mov ecx, dword [ebp - 0x1c]
call fcn.000efa90
cmp byte [ebp - 1], 0
jne 0x132ab6
mov ecx, dword [ebp - 0x20]
jmp 0x1327d0
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
mov dword [edx], eax
mov eax, dword [ecx + 0x1c]
mov ecx, dword [ebp - 0x1c]
mov dword [edx + 4], eax
call fcn.000efa90
push dword [ebp - 0x10]
call fcn.00158d47
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1c]
call fcn.000efa90
push dword [ebp - 0x10]
call fcn.00158d47
add esp, 4
or al, 0xff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call fcn.00158d47
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.000ee7f0
mov edi, dword [0x1aa224]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x132b09
push 0xc08
call fcn.0015c8ae
add esp, 4
mov esi, eax
push 0xc08
push 0
push esi
call fcn.00153d90
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x24]
mov dword [esi], 0x800000f
push str.Address__llu_is_not_for_a_directory_n
call fcn.000ee5f0
add esp, 0xc
push dword [ebp - 0x10]
call fcn.00158d47
add esp, 4
pop edi
pop esi
or al, 0xff
pop ebx
mov esp, ebp
pop ebp
ret