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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x174526
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1a700c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call fcn.000f8b60
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x14
push str.spare_seq_num_offset
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.000f7890
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push dword [ebp - 0x34]
push eax
push ecx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
call fcn.000f8dd0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0xf337c
inc eax
push eax
push dword [ebp - 0x28]
call fcn.000f7d00
push 0x13
push str.spare_obj_id_offset
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.000f7890
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
push dword [ebp - 0x34]
push eax
push ecx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
call fcn.000f8dd0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0xf33cb
inc eax
push eax
push dword [ebp - 0x28]
call fcn.000f7d00
push 0x15
push str.spare_chunk_id_offset
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.000f7890
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
push dword [ebp - 0x34]
push eax
push ecx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
call fcn.000f8dd0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0xf341a
inc eax
push eax
push dword [ebp - 0x28]
call fcn.000f7d00
push 0xf
push str.flash_page_size
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.000f7890
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
push dword [ebp - 0x34]
push eax
push ecx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
call fcn.000f8dd0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0xf3469
inc eax
push eax
push dword [ebp - 0x28]
call fcn.000f7d00
push 0x10
push str.flash_spare_size
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.000f7890
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
push dword [ebp - 0x34]
push eax
push ecx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
call fcn.000f8dd0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0xf34b8
inc eax
push eax
push dword [ebp - 0x28]
call fcn.000f7d00
push 0x16
push str.flash_chunks_per_block
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.000f7890
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
push dword [ebp - 0x34]
push eax
push ecx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x40]
call fcn.000f8dd0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0xf3507
inc eax
push eax
push dword [ebp - 0x28]
call fcn.000f7d00
mov eax, dword [ebp - 0x40]
mov esi, dword [eax]
cmp esi, eax
je 0xf363b
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebp - 0x34], eax
lea eax, [esi + 0x10]
push eax
call fcn.000f8d20
mov ebx, dword [ebx]
mov edi, eax
cmp edi, ebx
je 0xf358c
lea edx, [edi + 0x10]
cmp dword [edx + 0x14], 0x10
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x30], eax
jb 0xf353d
mov edx, dword [edx]
cmp dword [esi + 0x24], 0x10
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x2c], ecx
jb 0xf354e
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x30]
cmp ecx, eax
cmovb eax, ecx
mov ecx, dword [ebp - 0x48]
push eax
call fcn.000f2440
add esp, 4
test eax, eax
jne 0xf357f
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
cmp ecx, edx
jae 0xf3578
or eax, 0xffffffff
jmp 0xf357f
xor eax, eax
cmp ecx, edx
setne al
test eax, eax
mov byte [ebp - 4], 0
sets al
test al, al
je 0xf358e
mov edi, ebx
mov ebx, dword [ebp - 0x44]
cmp edi, dword [ebp - 0x34]
je 0xf35ed
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
call fcn.000f74b0
sub esp, 0x18
mov edx, eax
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0xf35ce
mov eax, dword [ecx]
jmp 0xf35d0
mov eax, ecx
push 0xffffffffffffffff
push 0
push edx
mov byte [eax], 0
call fcn.000f7950
call fcn.000f3250
add esp, 0x18
test eax, eax
jne 0xf36c6
cmp byte [esi + 0xd], 0
jne 0xf3632
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0xf3612
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0xf3632
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0xf3606
jmp 0xf3632
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0xf3630
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0xf3630
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0xf3620
mov esi, eax
cmp esi, dword [ebp - 0x40]
jne 0xf3514
push 0x14
push str.spare_seq_num_offset
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.000f7890
mov ebx, dword [ebx]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x44]
mov ecx, edi
push eax
mov dword [ebp - 0x34], ebx
call fcn.000f8d20
mov edi, dword [edi]
mov esi, eax
cmp esi, edi
je 0xf379b
lea edx, [esi + 0x10]
cmp dword [edx + 0x14], 0x10
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x2c], eax
jb 0xf368c
mov edx, dword [edx]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp ebx, dword [ebp - 0x2c]
cmovb eax, ebx
push eax
call fcn.000f2440
add esp, 4
test eax, eax
jne 0xf378b
mov ecx, dword [ebp - 0x2c]
mov edx, ebx
cmp edx, ecx
jae 0xf3784
or eax, 0xffffffff
jmp 0xf378b
mov ebx, dword [0x1aa224]
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0xf3704
push 0xc08
call fcn.0015c8ae
add esp, 4
mov edi, eax
push 0xc08
push 0
push edi
call fcn.00153d90
add esp, 0xc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test edi, edi
je 0xf371c
mov dword [edi], 0
mov byte [edi + 4], 0
mov byte [edi + 0x405], 0
mov byte [edi + 0x806], 0
mov ebx, dword [0x1aa224]
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0xf3756
push 0xc08
call fcn.0015c8ae
add esp, 4
mov edi, eax
push 0xc08
push 0
push edi
call fcn.00153d90
add esp, 0xc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
add esi, 0x10
mov dword [edi], 0x8000000
cmp dword [esi + 0x14], 0x10
jb 0xf3767
mov esi, dword [esi]
push str.See_http:__wiki.sleuthkit.org_index.php_titleYAFFS2_for_help_on_Yaffs2_configuration
push esi
push str.yaffs_validate_config_file:_Empty_or_non_integer_value_for_Yaffs2_parameter___s_.__s
call fcn.000ee5f0
add esp, 0xc
mov esi, 1
jmp 0xf3a9a
xor eax, eax
cmp edx, ecx
setne al
test eax, eax
mov byte [ebp - 4], 0
mov ebx, dword [ebp - 0x34]
sets al
test al, al
je 0xf379d
mov esi, edi
mov eax, dword [ebp - 0x14]
cmp esi, ebx
setne bl
cmp eax, 0x10
jb 0xf37b4
inc eax
push eax
push dword [ebp - 0x28]
call fcn.000f7d00
mov ecx, 1
mov dword [ebp - 0x14], 0xf
test bl, bl
mov dword [ebp - 0x18], 0
mov eax, 0
mov byte [ebp - 0x28], 0
cmovne eax, ecx
lea ecx, [ebp - 0x28]
push 0x13
push str.spare_obj_id_offset
mov dword [ebp - 0x30], eax
call fcn.000f7890
mov edi, dword [ebp - 0x44]
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
mov ebx, dword [edi]
mov dword [ebp - 0x34], ebx
call fcn.000f8d20
mov edi, dword [edi]
mov esi, eax
cmp esi, edi
je 0xf3859
lea edx, [esi + 0x10]
cmp dword [edx + 0x14], 0x10
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x2c], eax
jb 0xf3813
mov edx, dword [edx]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp ebx, dword [ebp - 0x2c]
cmovb eax, ebx
push eax
call fcn.000f2440
add esp, 4
test eax, eax
jne 0xf3849
mov ecx, dword [ebp - 0x2c]
mov edx, ebx
cmp edx, ecx
jae 0xf3842
or eax, 0xffffffff
jmp 0xf3849
xor eax, eax
cmp edx, ecx
setne al
test eax, eax
mov byte [ebp - 4], 0
mov ebx, dword [ebp - 0x34]
sets al
test al, al
je 0xf385b
mov esi, edi
mov eax, dword [ebp - 0x14]
cmp esi, ebx
setne bl
cmp eax, 0x10
jb 0xf3872
inc eax
push eax
push dword [ebp - 0x28]
call fcn.000f7d00
test bl, bl
je 0xf3879
inc dword [ebp - 0x30]
push 0x15
push str.spare_chunk_id_offset
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.000f7890
mov edi, dword [ebp - 0x44]
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
mov ebx, dword [edi]
mov dword [ebp - 0x34], ebx
call fcn.000f8d20
mov edi, dword [edi]
mov esi, eax
cmp esi, edi
je 0xf390c
lea edx, [esi + 0x10]
cmp dword [edx + 0x14], 0x10
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x2c], eax
jb 0xf38c6
mov edx, dword [edx]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
cmp ebx, dword [ebp - 0x2c]
cmovb eax, ebx
push eax
call fcn.000f2440
add esp, 4
test eax, eax
jne 0xf38fc
mov ecx, dword [ebp - 0x2c]
mov edx, ebx
cmp edx, ecx
jae 0xf38f5
or eax, 0xffffffff
jmp 0xf38fc
xor eax, eax
cmp edx, ecx
setne al
test eax, eax
mov byte [ebp - 4], 0
mov ebx, dword [ebp - 0x34]
sets al
test al, al
je 0xf390e
mov esi, edi
mov eax, dword [ebp - 0x14]
cmp esi, ebx
setne bl
cmp eax, 0x10
jb 0xf3925
inc eax
push eax
push dword [ebp - 0x28]
call fcn.000f7d00
mov eax, dword [ebp - 0x30]
test bl, bl
je 0xf392d
inc eax
test eax, eax
je 0xf39ee
cmp eax, 3
je 0xf39ee
mov edi, dword [0x1aa224]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, eax
test esi, esi
jne 0xf397e
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 ebx
test esi, esi
je 0xf3996
mov dword [esi], 0
mov byte [esi + 4], 0
mov byte [esi + 0x405], 0
mov byte [esi + 0x806], 0
mov edi, dword [0x1aa224]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0xf39cc
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 ebx
push str.See_http:__wiki.sleuthkit.org_index.php_titleYAFFS2_for_help_on_Yaffs2_configuration
push str.yaffs_validate_config_file:_Require_either_all_three_spare_offset_fields_or_none.__s
mov dword [esi], 0x8000000
call fcn.000ee5f0
add esp, 8
mov esi, 1
jmp 0xf3a9a
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
mov edi, dword [eax]
mov dword [ebp - 0x34], edi
cmp edi, eax
je 0xf3a98
mov ebx, dword [ebp - 0x40]
lea eax, [edi + 0x10]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x48], eax
call fcn.000f8d20
mov esi, eax
mov eax, dword [ebp - 0x40]
cmp esi, eax
je 0xf3a7c
lea eax, [esi + 0x10]
mov dword [ebp - 0x2c], eax
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x30], ecx
jb 0xf3a32
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x48]
cmp dword [ecx + 0x14], 0x10
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x48], edx
jb 0xf3a43
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x30]
cmp edx, eax
cmovb eax, edx
mov edx, dword [ebp - 0x2c]
push eax
call fcn.000f2440
add esp, 4
test eax, eax
jne 0xf3a71
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x30]
cmp ecx, edx
jae 0xf3a6a
or eax, 0xffffffff
jmp 0xf3a71
xor eax, eax
cmp ecx, edx
setne al
mov byte [ebp - 4], 0
test eax, eax
jns 0xf3a7e
mov eax, dword [ebp - 0x40]
mov esi, eax
cmp esi, ebx
je 0xf3ad5
lea ecx, [ebp - 0x34]
call fcn.000f7c50
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x34]
cmp edi, dword [eax]
jne 0xf3a00
xor esi, esi
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
push eax
push dword [eax]
lea eax, [ebp - 0x34]
push eax
call fcn.000f7aa0
push dword [ebp - 0x40]
call fcn.00150cad
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00150cb2
mov esp, ebp
pop ebp
ret
mov ebx, dword [0x1aa224]
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0xf3b13
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 ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0xf3b2b
mov dword [esi], 0
mov byte [esi + 4], 0
mov byte [esi + 0x405], 0
mov byte [esi + 0x806], 0
mov ebx, dword [0x1aa224]
push ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0xf3b65
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 ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
add edi, 0x10
mov dword [esi], 0x8000000
cmp dword [edi + 0x14], 0x10
jb 0xf3b76
mov edi, dword [edi]
push str.See_http:__wiki.sleuthkit.org_index.php_titleYAFFS2_for_help_on_Yaffs2_configuration
push edi
push str.yaffs_validate_config_file:_Found_unexpected_field_in_config_file____s__.__s
call fcn.000ee5f0
add esp, 0xc
mov esi, 1
jmp 0xf3a9a