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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
push ebx
push esi
push edi
test edx, 0x800
jne 0x1003cf
call fcn.000ee7f0
mov edi, dword [0x1aa224]
push edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1003b3
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 dword [esi], 0x8000006
push str.Invalid_FS_type_in_iso9660_open
call fcn.000ee5f0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x1aa220], 0
mov bl, byte [ebp + 0x10]
je 0x1003fd
movzx eax, bl
push eax
push edx
mov eax, ecx
cdq
push edx
push eax
push str.iso9660_open_img_info:__llu_ftype:__hhu_test:__hhu_n
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000f0dc0
add esp, 0x18
mov ecx, 0x130
call fcn.000f2310
mov esi, eax
test esi, esi
je 0x1003c6
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 0x9c]
push eax
call edi
lea eax, [esi + 0xb8]
push eax
call edi
mov eax, dword [ebp - 4]
mov ecx, esi
mov dword [esi + 0xb4], 0
mov byte [esi + 0x12c], 0
mov dword [esi + 0x128], 0
mov dword [esi + 0x68], 0x800
mov dword [esi + 0x6c], str.Block
mov dword [esi + 0x70], 0
mov dword [esi], 0x10101010
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x98], 2
mov dword [esi + 0x50], 0x800
call fcn.000ffed0
cmp eax, 0xffffffff
jne 0x1004d8
push esi
mov dword [esi], 0
call fcn.000fdad0
add esp, 4
cmp dword [0x1aa220], 0
je 0x1004bc
push str.iso9660_open:_Error_loading_volume_descriptor_n
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000a3930
add esp, 8
test bl, bl
jne 0x1003c6
call fcn.000ee7f0
mov ecx, 0x800000a
call fcn.000ee550
jmp 0x1003b9
mov eax, dword [esi + 0x120]
mov edx, dword [esi + 0x98]
test eax, eax
je 0x1005a8
cmp edx, 1
jne 0x100501
movzx ecx, byte [eax + 0x83]
movzx eax, byte [eax + 0x82]
jmp 0x10050f
movzx ecx, byte [eax + 0x82]
movzx eax, byte [eax + 0x83]
shl ecx, 8
add ecx, eax
movzx eax, cx
mov dword [esi + 0x50], eax
mov ecx, dword [esi + 0x120]
cmp edx, 1
jne 0x100541
movzx edx, byte [ecx + 0x57]
movzx eax, byte [ecx + 0x56]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x55]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x54]
jmp 0x10055b
movzx edx, byte [ecx + 0x54]
movzx eax, byte [ecx + 0x55]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x56]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x57]
shl edx, 8
add edx, eax
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], edx
mov dword [esi + 0x94], 0
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [esi + 0x94]
mov eax, dword [esi + 0x120]
mov al, byte [eax + ecx + 0x28]
mov byte [ecx + esi + 0x74], al
inc dword [esi + 0x94]
cmp dword [esi + 0x94], 0x20
jb 0x100580
jmp 0x100663
mov eax, dword [esi + 0x124]
cmp edx, 1
jne 0x1005c3
movzx ecx, byte [eax + 0x83]
movzx eax, byte [eax + 0x82]
jmp 0x1005d1
movzx ecx, byte [eax + 0x82]
movzx eax, byte [eax + 0x83]
shl ecx, 8
add ecx, eax
movzx eax, cx
mov dword [esi + 0x50], eax
mov ecx, dword [esi + 0x124]
cmp edx, 1
jne 0x100603
movzx edx, byte [ecx + 0x57]
movzx eax, byte [ecx + 0x56]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x55]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x54]
jmp 0x10061d
movzx edx, byte [ecx + 0x54]
movzx eax, byte [ecx + 0x55]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x56]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 0x57]
shl edx, 8
add edx, eax
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], edx
mov dword [esi + 0x94], 0
nop word [eax + eax]
mov ecx, dword [esi + 0x94]
mov eax, dword [esi + 0x124]
mov al, byte [eax + ecx + 0x28]
mov byte [ecx + esi + 0x74], al
inc dword [esi + 0x94]
cmp dword [esi + 0x94], 0x20
jb 0x100640
mov edx, dword [esi + 0x50]
test edx, edx
jne 0x1006c3
push esi
mov dword [esi], edx
call fcn.000fdad0
add esp, 4
cmp dword [0x1aa220], 0
je 0x100696
push str.iso9660_open:_Block_size_is_0_n
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000a3930
add esp, 8
test bl, bl
jne 0x1003c6
call fcn.000ee7f0
mov ecx, 0x800000a
call fcn.000ee550
push str.Block_size_is_0
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 + 0x30]
mov ecx, ebx
mov eax, dword [esi + 0x34]
add ecx, 0xffffffff
push 0
adc eax, 0xffffffff
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 4]
push edx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.00171c30
cmp edx, dword [esi + 0x34]
ja 0x100713
jb 0x100707
cmp eax, ebx
jae 0x100713
add eax, 0xffffffff
mov dword [esi + 0x48], eax
adc edx, 0xffffffff
mov dword [esi + 0x4c], edx
mov ecx, esi
call fcn.000fd220
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
cmp eax, 0xffffffff
jne 0x100763
push esi
mov dword [esi], 0
call fcn.000fdad0
add esp, 4
cmp dword [0x1aa220], 0
je 0x1003c6
push str.iso9660_open:_Error_loading_primary_table_n
push 2
call fcn.00158e14
add esp, 4
push eax
call fcn.000a3930
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add dword [esi + 0x10], 1
mov ecx, dword [esi + 0x10]
adc dword [esi + 0x14], 0
add ecx, 0xffffffff
mov eax, dword [esi + 0x14]
adc eax, 0xffffffff
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], eax
mov eax, esi
pop edi
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0xdc], 0xfdce0
mov dword [esi + 0xd4], 0xfe1a0
mov dword [esi + 0xd8], 0xfe170
mov dword [esi + 0xe4], 0xf6600
mov dword [esi + 0xe8], 0xfe410
mov dword [esi + 0xe0], 0xfdb50
mov dword [esi + 0xf0], 0x1393a0
mov dword [esi + 0x100], 0xfe760
mov dword [esi + 0x108], 0xfe6f0
mov dword [esi + 0xec], 0xff5f0
mov dword [esi + 0x10c], fcn.000fdad0
mov dword [esi + 0x104], 0x134980
mov dword [esi + 0xf8], 0xffe70
mov dword [esi + 0xfc], 0xffe70
mov dword [esi + 0xf4], 0xffe10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret