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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edi
call fcn.000ee7f0
test ebx, 0x1000
jne 0x10c266
mov edi, dword [0x1aa224]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10c24a
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]
push str.Invalid_FS_Type_in_hfs_open
mov dword [esi], 0x8000006
call fcn.000ee5f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x1298
call fcn.000f2310
mov esi, eax
test esi, esi
je 0x10c25d
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x9c]
push ecx
call ebx
lea ecx, [esi + 0xb8]
push ecx
call ebx
mov eax, dword [ebp + 8]
mov ecx, 0x200
mov dword [esi + 0xb4], 0
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x68], 0x1000
mov dword [esi + 0x6c], str.Allocation_Block
mov dword [esi], 0x10101010
mov dword [esi + 0x70], 0
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
call fcn.000f2310
mov dword [esi + 0x118], eax
mov ecx, esi
test eax, eax
jne 0x10c2e8
mov dword [esi], eax
call fcn.000eee80
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub esp, 0xc
mov edx, eax
call fcn.00100840
add esp, 0xc
test al, al
je 0x10c32a
push str.hfs_open:_superblock
call fcn.000ee650
add esp, 4
mov dword [esi], 0
push dword [esi + 0x118]
call fcn.00158d47
add esp, 4
mov ecx, esi
call fcn.000eee80
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x118]
lea ecx, [esi + 0x98]
push 0x482b
call fcn.00139020
add esp, 4
test al, al
je 0x10c3bc
mov edx, dword [esi + 0x118]
lea ecx, [esi + 0x98]
push 0x4858
call fcn.00139020
add esp, 4
test al, al
je 0x10c3bc
mov edx, dword [esi + 0x118]
lea ecx, [esi + 0x98]
push 0x4244
call fcn.00139020
add esp, 4
test al, al
je 0x10c3bc
mov dword [esi], 0
push dword [esi + 0x118]
call fcn.00158d47
add esp, 4
mov ecx, esi
call fcn.000eee80
mov ecx, 0x800000a
call fcn.000ee550
push str.not_an_HFS_file_system__magic_
call fcn.000ee5f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esi + 0x98]
mov edx, dword [esi + 0x118]
cmp ebx, 1
jne 0x10c3d6
movzx ecx, byte [edx + 1]
movzx eax, byte [edx]
jmp 0x10c3dd
movzx ecx, byte [edx]
movzx eax, byte [edx + 1]
shl ecx, 8
add eax, ecx
mov ecx, 0x4244
cmp ax, cx
jne 0x10c5ca
movzx ecx, byte [edx + 0x7d]
movzx edi, byte [edx + 0x7c]
cmp ebx, 1
jne 0x10c406
mov eax, ecx
shl eax, 8
add eax, edi
jmp 0x10c40d
mov eax, edi
shl eax, 8
add eax, ecx
mov dword [ebp - 4], 0x482b
cmp ax, word [ebp - 4]
je 0x10c472
cmp ebx, 1
jne 0x10c427
shl ecx, 8
lea eax, [ecx + edi]
jmp 0x10c42d
shl edi, 8
lea eax, [edi + ecx]
mov ecx, 0x4858
cmp ax, cx
je 0x10c472
mov dword [esi], 0
push dword [esi + 0x118]
call fcn.00158d47
add esp, 4
mov ecx, esi
call fcn.000eee80
mov ecx, 0x800000a
call fcn.000ee550
push str.HFS_file_systems__other_than_wrappers_HFS_HFSX_file_systems__are_not_supported
call fcn.000ee5f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 1
jne 0x10c489
movzx ecx, byte [edx + 0x1d]
mov edi, 0x100
movzx eax, byte [edx + 0x1c]
imul ecx, edi
jmp 0x10c499
movzx ecx, byte [edx + 0x1c]
mov eax, 0x100
imul ecx, eax
movzx eax, byte [edx + 0x1d]
add cx, ax
movzx eax, cx
mov dword [ebp - 4], eax
cmp ebx, 1
jne 0x10c4c3
movzx edi, byte [edx + 0x17]
movzx eax, byte [edx + 0x16]
shl edi, 8
add edi, eax
movzx eax, byte [edx + 0x15]
shl edi, 8
add edi, eax
movzx eax, byte [edx + 0x14]
jmp 0x10c4dd
movzx edi, byte [edx + 0x14]
movzx eax, byte [edx + 0x15]
shl edi, 8
add edi, eax
movzx eax, byte [edx + 0x16]
shl edi, 8
add edi, eax
movzx eax, byte [edx + 0x17]
shl edi, 8
add edi, eax
mov eax, 0x100
cmp ebx, 1
jne 0x10c4f9
movzx ecx, byte [edx + 0x7f]
imul ecx, eax
movzx eax, byte [edx + 0x7e]
jmp 0x10c504
movzx ecx, byte [edx + 0x7e]
imul ecx, eax
movzx eax, byte [edx + 0x7f]
add cx, ax
movzx eax, cx
push 0
movzx eax, ax
cdq
push edi
push edx
push eax
call fcn.00171bf0
mov edi, eax
mov ebx, edx
mov eax, dword [ebp - 4]
movzx eax, ax
cdq
shld edx, eax, 9
shl eax, 9
add edi, eax
adc ebx, edx
cmp dword [0x1aa220], 0
je 0x10c551
push ebx
push edi
push str.hfs_open:_HFS_HFSX_within_HFS_wrapper_at_byte_offset__llu_n
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
add esp, 0x10
mov dword [esi], 0
push dword [esi + 0x118]
call fcn.00158d47
add esp, 4
mov ecx, esi
call fcn.000eee80
mov eax, edi
or eax, ebx
jne 0x10c592
mov ecx, 0x8000010
call fcn.000ee550
push str.HFS_offset_is_zero
call fcn.000ee5f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, edi
add ecx, dword [ebp + 8]
mov eax, ebx
adc eax, dword [ebp + 0xc]
push eax
push ecx
mov ecx, dword [ebp - 8]
call fcn.0010c1f0
add esp, 0xc
test eax, eax
je 0x10c25f
mov dword [eax + 0x1238], edi
mov dword [eax + 0x123c], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 1
jne 0x10c5eb
movzx ecx, byte [edx + 0x2f]
movzx eax, byte [edx + 0x2e]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x2d]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x2c]
jmp 0x10c605
movzx ecx, byte [edx + 0x2c]
movzx eax, byte [edx + 0x2d]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x2e]
shl ecx, 8
add ecx, eax
movzx eax, byte [edx + 0x2f]
shl ecx, 8
add ecx, eax
mov dword [esi + 0x34], 0
mov eax, dword [esi + 0x34]
mov dword [esi + 0x30], ecx
add ecx, 0xffffffff
mov dword [esi + 0x38], 0
adc eax, 0xffffffff
mov dword [esi + 0x3c], 0
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], eax
mov ecx, dword [esi + 0x118]
cmp ebx, 1
jne 0x10c65e
movzx edx, byte [ecx + 0x2b]
movzx eax, byte [ecx + 0x2a]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x29]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x28]
jmp 0x10c678
movzx edx, byte [ecx + 0x28]
movzx eax, byte [ecx + 0x29]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x2a]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x2b]
shl edx, 8
add edx, eax
mov dword [esi + 0x50], edx
mov dword [esi + 0x54], edx
cmp edx, 1
ja 0x10c6a8
mov ecx, 0x8000010
call fcn.000ee550
push str.HFS_allocation_block_si
call fcn.000ee5f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
push 0
push edx
mov ecx, dword [eax + 8]
sub ecx, dword [ebp + 8]
mov eax, dword [eax + 0xc]
sbb eax, dword [ebp + 0xc]
push eax
push ecx
call fcn.00171c30
cmp edx, dword [esi + 0x34]
ja 0x10c6d8
jb 0x10c6cc
cmp eax, dword [esi + 0x30]
jae 0x10c6d8
add eax, 0xffffffff
mov dword [esi + 0x48], eax
adc edx, 0xffffffff
mov dword [esi + 0x4c], edx
lea eax, [esi + 0x1278]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0xdc], 0x108e70
mov dword [esi + 0xd4], 0x108c20
mov dword [esi + 0xd8], 0x108bf0
mov dword [esi + 0xe8], 0x107f10
mov dword [esi + 0xe4], 0x10c000
mov dword [esi + 0xe0], 0x106480
mov dword [esi + 0xf0], 0x139ea0
mov dword [esi + 0x100], 0x109480
mov dword [esi + 0x108], 0x109420
mov dword [esi + 0xec], 0x10a540
mov dword [esi + 0x10c], 0x10c080
mov dword [esi + 0x138], 0
mov dword [esi + 0x13c], 0
mov dword [esi + 0x1140], 0xffffffff
mov dword [esi + 0x1144], 0xffffffff
mov dword [esi + 0x1148], 0
mov dword [esi + 0x20], 2
mov dword [esi + 0x24], 0
mov dword [esi + 0x18], 2
mov dword [esi + 0x1c], 0
mov dword [esi + 0x28], 0xf
mov dword [esi + 0x2c], 0
mov dword [esi + 0x10], 0xe
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x118]
mov dword [esi + 0x11c0], 0
mov dword [esi + 0x11c4], 0
cmp dword [esi + 0x98], 1
jne 0x10c808
movzx edx, byte [ecx + 0x1c7]
movzx eax, byte [ecx + 0x1c6]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x1c5]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x1c4]
jmp 0x10c82e
movzx edx, byte [ecx + 0x1c4]
movzx eax, byte [ecx + 0x1c5]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x1c6]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x1c7]
mov edi, dword [0x1aa220]
shl edx, 8
add edx, eax
test edx, edx
jne 0x10c868
test edi, edi
je 0x10c85f
push 0x196010
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
mov edi, dword [0x1aa220]
add esp, 8
mov byte [esi + 0x1291], 0
jmp 0x10c891
test edi, edi
je 0x10c88a
push 0x196044
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
mov edi, dword [0x1aa220]
add esp, 8
mov byte [esi + 0x1291], 1
cmp dword [esi + 0x98], 1
mov ecx, dword [esi + 0x118]
jne 0x10c8c8
movzx edx, byte [ecx + 0xd7]
movzx eax, byte [ecx + 0xd6]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0xd5]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0xd4]
jmp 0x10c8ee
movzx edx, byte [ecx + 0xd4]
movzx eax, byte [ecx + 0xd5]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0xd6]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0xd7]
shl edx, 8
add edx, eax
test edx, edx
jne 0x10c922
test edi, edi
je 0x10c919
push 0x196068
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
mov edi, dword [0x1aa220]
add esp, 8
mov byte [esi + 0x1290], 0
jmp 0x10c94b
test edi, edi
je 0x10c944
push 0x1960b0
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
mov edi, dword [0x1aa220]
add esp, 8
mov byte [esi + 0x1290], 1
cmp dword [esi + 0x98], 1
mov ecx, dword [esi + 0x118]
jne 0x10c982
movzx edx, byte [ecx + 0x177]
movzx eax, byte [ecx + 0x176]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x175]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x174]
jmp 0x10c9a8
movzx edx, byte [ecx + 0x174]
movzx eax, byte [ecx + 0x175]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x176]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x177]
shl edx, 8
add edx, eax
test edx, edx
jne 0x10c9d6
test edi, edi
je 0x10c9cd
push 0x1960ec
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
add esp, 8
mov byte [esi + 0x1292], 0
jmp 0x10c9f9
test edi, edi
je 0x10c9f2
push 0x196120
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
add esp, 8
mov byte [esi + 0x1292], 1
push 0
push 4
mov ecx, esi
call fcn.000eef60
add esp, 8
mov dword [esi + 0x114c], eax
test eax, eax
je 0x10c306
mov ecx, dword [eax + 8]
mov edx, 1
mov ecx, dword [ecx + 0xc8]
call fcn.00131c60
mov dword [esi + 0x1150], eax
test eax, eax
jne 0x10ca6a
mov dword [esi], eax
mov ecx, dword [esi + 0x114c]
call fcn.000eef10
push dword [esi + 0x118]
call fcn.00158d47
add esp, 4
mov ecx, esi
call fcn.000eee80
push 0x196148
call fcn.000ee6d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
push 0x6a
push 0
lea edx, [esi + 0x1154]
mov ecx, eax
push 0xe
call fcn.00131530
add esp, 0x10
cmp eax, 0x6a
je 0x10caca
test eax, eax
js 0x10ca99
call fcn.000ee7f0
mov ecx, 0x8000004
call fcn.000ee550
push 0x196174
call fcn.000ee650
add esp, 4
mov dword [esi], 0
push dword [esi + 0x118]
call fcn.00158d47
add esp, 4
mov ecx, esi
call fcn.000eee80
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x118]
mov edi, dword [esi + 0x98]
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
cmp edi, 1
jne 0x10caec
mov eax, ecx
shl eax, 8
add eax, edx
jmp 0x10caf3
mov eax, edx
shl eax, 8
add eax, ecx
cmp ax, 4
je 0x10cb77
cmp edi, 1
jne 0x10cb07
mov eax, ecx
shl eax, 8
add eax, edx
jmp 0x10cb0e
mov eax, edx
shl eax, 8
add eax, ecx
cmp ax, 5
jne 0x10cb3f
mov al, byte [esi + 0x1179]
cmp al, 0xbc
jne 0x10cb27
mov byte [esi + 0x11c], 1
jmp 0x10cb7e
cmp al, 0xc7
je 0x10cb77
cmp dword [0x1aa220], 0
je 0x10cb77
movzx eax, al
push eax
push 0x1961a0
jmp 0x10cb64
cmp dword [0x1aa220], 0
je 0x10cb77
cmp edi, 1
jne 0x10cb55
shl ecx, 8
lea eax, [ecx + edx]
jmp 0x10cb5b
shl edx, 8
lea eax, [edx + ecx]
movzx eax, ax
push eax
push 0x1961f4
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
add esp, 0xc
mov byte [esi + 0x11c], 0
mov ecx, esi
call fcn.00102f40
mov ecx, eax
mov dword [esi + 0x28], eax
add ecx, 1
mov dword [esi + 0x2c], edx
mov eax, edx
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x98]
adc eax, 0
mov dword [esi + 0x14], eax
mov edi, dword [esi + 0x118]
cmp ecx, 1
jne 0x10cbc8
movzx edx, byte [edi + 0x6f]
movzx eax, byte [edi + 0x6e]
shl edx, 8
add edx, eax
movzx eax, byte [edi + 0x6d]
shl edx, 8
add edx, eax
movzx eax, byte [edi + 0x6c]
jmp 0x10cbe2
movzx edx, byte [edi + 0x6c]
movzx eax, byte [edi + 0x6d]
shl edx, 8
add edx, eax
movzx eax, byte [edi + 0x6e]
shl edx, 8
add edx, eax
movzx eax, byte [edi + 0x6f]
shl edx, 8
add edx, eax
cmp ecx, 1
jne 0x10cc08
movzx ecx, byte [edi + 0x6b]
movzx eax, byte [edi + 0x6a]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0x69]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0x68]
jmp 0x10cc22
movzx ecx, byte [edi + 0x68]
movzx eax, byte [edi + 0x69]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0x6a]
shl ecx, 8
add ecx, eax
movzx eax, byte [edi + 0x6b]
push edx
shl ecx, 8
add ecx, eax
lea eax, [esi + 0x74]
push ecx
push 0x196220
push 0x11
push eax
call fcn.000ea670
add esp, 0x14
mov dword [esi + 0x94], 0x10
mov ecx, esi
mov dword [esi + 0xf8], 0x13a5a0
mov dword [esi + 0xfc], 0x13a580
mov dword [esi + 0xf4], 0x13a560
push 0
push 2
mov dword [esi + 0x104], 0x13a220
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
call fcn.000eef60
add esp, 8
test eax, eax
je 0x10ccb3
mov edx, dword [eax + 8]
mov ecx, dword [edx + 0x60]
mov dword [esi + 0x1240], ecx
mov ecx, dword [edx + 0x64]
mov dword [esi + 0x1244], ecx
mov ecx, eax
mov byte [esi + 0x1258], 1
call fcn.000eef10
jmp 0x10ccba
mov byte [esi + 0x1258], 0
push ecx
lea eax, [ebp - 0x10]
mov dword [esi + 0x1260], 0
push eax
mov edx, 0x19622c
mov dword [esi + 0x1264], 0
mov ecx, esi
mov dword [esi + 0x1268], 0
mov dword [esi + 0x126c], 0
mov byte [esi + 0x1259], 0
call fcn.001326f0
add esp, 8
test al, al
jne 0x10cd46
mov edi, dword [ebp - 0xc]
mov ecx, esi
mov ebx, dword [ebp - 0x10]
push edi
push ebx
call fcn.000eef60
add esp, 8
test eax, eax
je 0x10cd46
mov edx, dword [eax + 8]
mov ecx, dword [edx + 0x60]
mov dword [esi + 0x1248], ecx
mov ecx, dword [edx + 0x64]
mov dword [esi + 0x124c], ecx
mov ecx, eax
mov byte [esi + 0x1259], 1
mov dword [esi + 0x1260], ebx
mov dword [esi + 0x1264], edi
call fcn.000eef10
push ecx
lea eax, [ebp - 0x10]
mov byte [esi + 0x125a], 0
push eax
mov edx, 0x196244
mov ecx, esi
call fcn.001326f0
add esp, 8
test al, al
jne 0x10cdaa
mov edi, dword [ebp - 0xc]
mov ecx, esi
mov ebx, dword [ebp - 0x10]
push edi
push ebx
call fcn.000eef60
add esp, 8
test eax, eax
je 0x10cdaa
mov edx, dword [eax + 8]
mov ecx, dword [edx + 0x60]
mov dword [esi + 0x1250], ecx
mov ecx, dword [edx + 0x64]
mov dword [esi + 0x1254], ecx
mov ecx, eax
mov byte [esi + 0x125a], 1
mov dword [esi + 0x1268], ebx
mov dword [esi + 0x126c], edi
call fcn.000eef10
cmp byte [esi + 0x1258], 0
je 0x10cde6
cmp byte [esi + 0x1259], 0
je 0x10cde6
cmp byte [esi + 0x125a], 0
je 0x10cde6
mov eax, dword [0x1aa220]
test eax, eax
je 0x10cdeb
push 0x196268
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
add esp, 8
mov eax, dword [0x1aa220]
cmp byte [esi + 0x1258], 0
jne 0x10cdff
test eax, eax
je 0x10ce74
push 0x1962b0
jmp 0x10ce08
test eax, eax
je 0x10ce74
push 0x196328
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
add esp, 8
cmp dword [0x1aa220], 0
je 0x10ce74
cmp byte [esi + 0x1259], 0
je 0x10ce34
push 0x196358
jmp 0x10ce39
push 0x1963a0
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
add esp, 8
cmp byte [esi + 0x125a], 0
je 0x10ce5c
push 0x196408
jmp 0x10ce61
push 0x196458
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
add esp, 8
pop edi
mov dword [esi + 0x1270], 0
mov eax, esi
mov dword [esi + 0x1274], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret