Function at 0x100e97d0
Capabilities:
Hash data using sha1
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10117af5
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x1014d0cc]
xor eax, esp
mov dword [esp + 0x170], eax
push ebx
push esi
push edi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x188]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x10]
mov esi, dword [ebp + 8]
and eax, 0xe0000000
cmp eax, 0x20000000
mov ebx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
je 0x100e986e
mov eax, 1
test byte [0x10154fc8], al
jne 0x100e985a
or dword [0x10154fc8], eax
push 0x101261b0
mov dword [0x10154fcc], 0x10129a10
call fcn.1010dee9
add esp, 4
mov eax, 5
mov ecx, 0x10154fcc
mov dword [esi], eax
mov dword [esi + 4], ecx
jmp 0x100e9f49
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 4]
xor edi, edi
push ecx
lea esi, [esp + 0x120]
mov dword [esp + 0x120], 0x67452301
mov dword [esp + 0x124], 0xefcdab89
mov dword [esp + 0x128], 0x98badcfe
mov dword [esp + 0x12c], 0x10325476
mov dword [esp + 0x130], 0xc3d2e1f0
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
call fcn.100a6a30
xor eax, eax
add esp, 4
mov ecx, esi
lea edi, [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.100a6930
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea eax, [ebx + 0x140]
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0xc], edx
mov edx, dword [ebx + 0x154]
xor edx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
and edx, 0xffffff
xor dword [ebx + 0x154], edx
mov dword [eax + 0x10], ecx
mov eax, dword [ebx + 0x154]
and eax, 0xffffff
push eax
call fcn.1010c005
add esp, 4
lea edi, [ebx + 0xdc]
call fcn.10060330
mov ecx, dword [ebx + 0x154]
mov esi, dword [esp + 0x2c]
mov eax, dword [edi]
and ecx, 0xffffff
push ecx
push esi
push eax
call sub.MSVCR80.dll_memcpy
mov edi, dword [edi]
sub edi, esi
mov esi, dword [esp + 0x28]
add esp, 0xc
push str.piece_length
mov eax, esi
mov dword [esp + 0x30], edi
call fcn.1005d8c0
test eax, eax
je 0x100e99ae
mov edx, dword [eax + 0x10]
and edx, 0xe0000000
cmp edx, 0x80000000
jne 0x100e99ae
mov edx, eax
call fcn.1005d4f0
test eax, eax
mov dword [esp + 0x28], edx
jg 0x100e99be
mov esi, dword [esp + 0x18]
push 6
call fcn.10034120
jmp 0x100e9f49
mov dword [ebx + 0x94], eax
push str.name.utf_8
mov eax, esi
call fcn.1005d8c0
test eax, eax
je 0x100e99e5
mov ecx, dword [eax + 0x10]
and ecx, 0xe0000000
cmp ecx, 0x60000000
je 0x100e9a16
push str.name
mov eax, esi
call fcn.1005d8c0
test eax, eax
je 0x100e9a06
mov edx, dword [eax + 0x10]
and edx, 0xe0000000
cmp edx, 0x60000000
je 0x100e9a16
mov esi, dword [esp + 0x18]
push 7
call fcn.10034120
jmp 0x100e9f49
lea esi, [esp + 0x6c]
call fcn.10036560
mov dword [esp + 0x190], 0
cmp dword [esp + 0x80], 0
jne 0x100e9a90
mov eax, dword [esp + 0x20]
lea esi, [esp + 0x34]
call fcn.10001820
push eax
lea ebx, [esp + 0x8c]
mov byte [esp + 0x194], 1
call fcn.1003af10
add esp, 4
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x194], 2
call dword [0x1012717c]
mov ecx, ebx
mov byte [esp + 0x190], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, esi
mov byte [esp + 0x190], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x70]
call fcn.100e7fa0
add esp, 4
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x194], 3
call dword [0x1012717c]
lea ecx, [esp + 0x88]
mov byte [esp + 0x190], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea edi, [esp + 0x6c]
call fcn.100e7e70
test al, al
jne 0x100e9ae0
push 8
jmp 0x100e9f2b
push 1
lea ecx, [esp + 0x70]
call fcn.100e7860
mov esi, dword [esp + 0x20]
add esp, 4
push esi
mov eax, str.files
call fcn.1005d890
xor edi, edi
cmp eax, edi
jne 0x100e9d7e
lea ecx, [esp + 0xa4]
push ecx
call fcn.1003f500
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0xa8]
mov byte [esp + 0x194], 4
call dword [0x1012717c]
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
mov eax, str.length
mov dword [esp + 0xd0], edi
mov dword [esp + 0xd4], edi
call fcn.1005d820
push edi
push edi
mov dword [esp + 0xd4], eax
push esi
mov eax, str.mtime
mov dword [esp + 0xdc], edx
call fcn.1005d820
mov dword [esp + 0xdc], eax
push esi
mov eax, str.attr
mov dword [esp + 0xe4], edx
call fcn.1005d7f0
cmp eax, edi
je 0x100e9bea
cmp dword [eax + 0xc], edi
jle 0x100e9bea
jmp 0x100e9b90
mov ecx, dword [eax]
movsx ecx, byte [ecx + edi]
add ecx, 0xffffff98
cmp ecx, 0x10
ja case.0x100e9ba5.105
movzx ecx, byte [ecx + 0x100e9f88]
jmp dword [ecx*4 + 0x100e9f74]
or byte [esp + 0xf8], 8
xor ecx, ecx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], ecx
jmp case.0x100e9ba5.105
or byte [esp + 0xf8], 4
jmp case.0x100e9ba5.105
or byte [esp + 0xf8], 2
jmp case.0x100e9ba5.105
or byte [esp + 0xf8], 1
add edi, 1
cmp edi, dword [eax + 0xc]
jl 0x100e9b90
push str.symlink_path
mov eax, esi
call fcn.1005d8c0
test eax, eax
mov dword [esp + 0x14], eax
je 0x100e9cb3
mov edx, dword [eax + 0x10]
and edx, 0xe0000000
cmp edx, 0x40000000
jne 0x100e9cb3
mov ecx, dword [eax + 0xc]
test ecx, ecx
jle 0x100e9cb3
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ecx
jmp 0x100e9c34
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
add eax, dword [esp + 0x20]
lea esi, [esp + 0x88]
call fcn.10036560
mov edi, esi
mov byte [esp + 0x190], 5
call fcn.100e7ef0
mov eax, esi
push eax
lea edx, [esp + 0x100]
lea ecx, [esp + 0x54]
call fcn.1003c230
add esp, 4
push eax
lea ecx, [esp + 0x100]
mov byte [esp + 0x194], 6
call dword [0x1012717c]
lea ecx, [esp + 0x50]
mov byte [esp + 0x190], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, esi
mov byte [esp + 0x190], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
add dword [esp + 0x20], 0x14
sub dword [esp + 0x24], 1
jne 0x100e9c30
mov esi, dword [esp + 0x1c]
push str.sha1
mov eax, esi
call fcn.1005d8c0
test eax, eax
je 0x100e9cdc
mov ecx, dword [eax + 0x10]
and ecx, 0xe0000000
cmp ecx, 0x60000000
jne 0x100e9cdc
cmp dword [eax + 0xc], 0x14
mov edi, eax
je 0x100e9cde
xor edi, edi
push 0
push str._____padding_file_
lea ecx, [esp + 0xac]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [edx]
je 0x100e9d04
or byte [esp + 0xf8], 1
cmp dword [esp + 0xd0], 0
jg 0x100e9d3f
jl 0x100e9d1a
cmp dword [esp + 0xcc], 0
jae 0x100e9d3f
mov esi, dword [esp + 0x18]
push 9
call fcn.10034120
lea eax, [esp + 0xa4]
push eax
mov byte [esp + 0x194], 0
call fcn.1003f580
jmp 0x100e9f34
test edi, edi
je 0x100e9d4d
mov eax, dword [edi]
mov ecx, dword [esp + 0x2c]
add eax, ecx
jmp 0x100e9d4f
xor eax, eax
push eax
lea edx, [esp + 0xa8]
push edx
lea ecx, [ebx + 8]
call fcn.1003ff60
and byte [ebx + 0x158], 0xfe
lea eax, [esp + 0xa4]
push eax
mov byte [esp + 0x194], 0
call fcn.1003f580
jmp 0x100e9da7
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x30]
lea edx, [ebx + 8]
push edx
mov edx, eax
call fcn.100e85c0
add esp, 8
test al, al
jne 0x100e9da0
push 0xa
jmp 0x100e9f2b
or byte [ebx + 0x158], 1
lea eax, [esp + 0x6c]
push eax
lea ecx, [ebx + 0x68]
call dword [0x1012717c]
mov ecx, dword [ebx + 0x94]
mov edi, dword [ebx + 0x88]
mov esi, dword [ebx + 0x8c]
mov eax, ecx
cdq
add eax, edi
adc edx, esi
sub eax, 1
mov dword [esp + 0x24], eax
sbb edx, 0
mov eax, ecx
mov dword [esp + 0x14], edx
cdq
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x30]
push eax
call fcn.1010e550
mov edi, eax
mov eax, dword [esp + 0x1c]
push str.pieces
mov dword [ebx + 0x90], edi
call fcn.1005d8c0
mov esi, eax
mov eax, dword [esp + 0x1c]
push str.root_hash
call fcn.1005d8c0
test esi, esi
mov dword [esp + 0x14], eax
je 0x100e9e2f
mov ecx, dword [esi + 0x10]
and ecx, 0xe0000000
cmp ecx, 0x60000000
je 0x100e9e4c
test eax, eax
je 0x100e9f29
mov edx, dword [eax + 0x10]
and edx, 0xe0000000
cmp edx, 0x60000000
jne 0x100e9f29
test esi, esi
je 0x100e9e75
mov eax, dword [esi + 0xc]
lea ecx, [edi + edi*4]
add ecx, ecx
add ecx, ecx
cmp eax, ecx
je 0x100e9e65
push 0xc
jmp 0x100e9f2b
mov esi, dword [esi]
mov edx, dword [esp + 0x2c]
add esi, edx
mov dword [ebx + 0xe4], esi
jmp 0x100e9ee3
cmp dword [eax + 0xc], 0x14
jne 0x100e9e5e
mov eax, edi
call fcn.100e8a20
lea edi, [eax + eax - 1]
mov ecx, edi
push edi
sub ecx, eax
lea esi, [ebx + 0xcc]
push esi
mov dword [ebx + 4], ecx
call fcn.10027380
lea edx, [edi + edi*4]
add edx, edx
add edx, edx
push edx
push 0
xor edi, edi
call fcn.100273b0
push eax
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
add esp, 0xc
mov dword [esp + 0x14], ecx
call fcn.100273b0
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov ecx, dword [ecx + 0x10]
mov dword [eax + 0x10], ecx
mov edx, dword [esp + 0x1c]
push 0
push 0
push edx
mov eax, str.private
call fcn.1005d820
or eax, edx
je 0x100e9efe
mov al, 1
jmp 0x100e9f00
xor al, al
add al, al
xor al, byte [ebx + 0x158]
lea ecx, [esp + 0x6c]
and al, 2
xor byte [ebx + 0x158], al
mov dword [esp + 0x190], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
jmp 0x100e9f4b
push 0xb
mov esi, dword [esp + 0x1c]
call fcn.10034120
lea ecx, [esp + 0x6c]
mov dword [esp + 0x190], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
mov ecx, dword [esp + 0x188]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x170]
xor ecx, esp
call fcn.1010defb
mov esp, ebp
pop ebp
ret 4