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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5228e1
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x55609c]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov eax, dword [0x55609c]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [eax + 0x10]
and eax, 0xe0000000
cmp eax, 0x20000000
mov ebx, ecx
mov esi, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
je 0x4297c0
mov eax, 1
test byte [0x55daa8], al
jne 0x4297ac
or dword [0x55daa8], eax
push 0x52ce60
mov dword [0x55daac], 0x52fbdc
call fcn.005150d5
add esp, 4
mov eax, 5
mov ecx, 0x55daac
mov dword [esi], eax
mov dword [esi + 4], ecx
jmp 0x42a052
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 4]
xor edi, edi
push ecx
lea esi, [esp + 0x110]
mov dword [esp + 0x110], 0x67452301
mov dword [esp + 0x114], 0xefcdab89
mov dword [esp + 0x118], 0x98badcfe
mov dword [esp + 0x11c], 0x10325476
mov dword [esp + 0x120], 0xc3d2e1f0
mov dword [esp + 0x128], edi
mov dword [esp + 0x124], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], ecx
call fcn.004a3e20
xor eax, eax
add esp, 4
mov ecx, esi
lea edi, [esp + 0x40]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call fcn.004a3d20
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
lea eax, [ebx + 0x140]
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], edx
mov edx, dword [ebx + 0x154]
xor edx, dword [esp + 0x14]
mov dword [esp + 0x24], 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.005144fa
add esp, 4
lea edi, [ebx + 0xdc]
call fcn.0042c2d0
mov ecx, dword [ebx + 0x154]
mov esi, dword [esp + 0x34]
mov eax, dword [edi]
and ecx, 0xffffff
push ecx
push esi
push eax
call sub.MSVCR80.dll_memcpy
mov edi, dword [edi]
mov eax, dword [esp + 0x2c]
add esp, 0xc
sub edi, esi
push str.piece_length
mov dword [esp + 0x34], edi
call fcn.0044d820
test eax, eax
je 0x429902
mov edx, dword [eax + 0x10]
and edx, 0xe0000000
cmp edx, 0x80000000
jne 0x429902
mov edx, eax
call fcn.0044d450
test eax, eax
mov dword [esp + 0x38], edx
jg 0x429912
mov esi, dword [esp + 0x1c]
push 6
call fcn.0042e810
jmp 0x42a052
mov esi, dword [esp + 0x20]
mov dword [ebx + 0x94], eax
push str.name.utf_8
mov eax, esi
call fcn.0044d820
test eax, eax
je 0x42993d
mov ecx, dword [eax + 0x10]
and ecx, 0xe0000000
cmp ecx, 0x60000000
je 0x42996e
push str.name
mov eax, esi
call fcn.0044d820
test eax, eax
je 0x42995e
mov edx, dword [eax + 0x10]
and edx, 0xe0000000
cmp edx, 0x60000000
je 0x42996e
mov esi, dword [esp + 0x1c]
push 7
call fcn.0042e810
jmp 0x42a052
lea esi, [esp + 0x5c]
call fcn.004275e0
mov dword [esp + 0x288], 0
cmp dword [esp + 0x70], 0
jne 0x4299e2
mov eax, dword [esp + 0x24]
lea esi, [esp + 0x40]
call fcn.004014e0
push eax
lea ebx, [esp + 0x7c]
mov byte [esp + 0x28c], 1
call fcn.00440810
add esp, 4
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x28c], 2
call dword [0x52e398]
mov ecx, ebx
mov byte [esp + 0x288], 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 + 0x288], 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 + 0x18]
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x60]
call fcn.00427ec0
add esp, 4
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x28c], 3
call dword [0x52e398]
lea ecx, [esp + 0x78]
mov byte [esp + 0x288], 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 + 0x5c]
call fcn.00427ce0
test al, al
jne 0x429a2c
push 8
jmp 0x42a034
push 1
lea ecx, [esp + 0x60]
call fcn.00427740
mov edi, dword [esp + 0x24]
add esp, 4
push edi
mov eax, str.files
call fcn.0044d7f0
xor esi, esi
cmp eax, esi
jne 0x429e74
lea ecx, [esp + 0x94]
push ecx
call fcn.00416f20
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x98]
mov byte [esp + 0x28c], 4
call dword [0x52e398]
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
mov eax, str.length
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], esi
call fcn.0044d780
cmp edx, esi
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], edx
jg 0x429ad4
jl 0x429aaf
cmp eax, esi
jae 0x429ad4
mov esi, dword [esp + 0x1c]
push 0xa
call fcn.0042e810
lea eax, [esp + 0x94]
push eax
mov byte [esp + 0x28c], 0
call fcn.00416fa0
jmp 0x42a03d
push esi
push esi
push edi
mov eax, str.mtime
call fcn.0044d780
mov dword [esp + 0xcc], eax
push edi
mov eax, str.attr
mov dword [esp + 0xd4], edx
call fcn.0044d750
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x429b68
xor edx, edx
cmp dword [esi + 0xc], eax
jle 0x429b68
lea esp, [esp]
mov ecx, dword [esi]
movsx ecx, byte [ecx + edx]
add ecx, 0xffffff98
cmp ecx, 0x10
ja case.0x429b25.105
movzx ecx, byte [ecx + 0x42a090]
jmp dword [ecx*4 + 0x42a07c]
or byte [esp + 0xe8], 8
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
jmp case.0x429b25.105
or byte [esp + 0xe8], 4
jmp case.0x429b25.105
or byte [esp + 0xe8], 2
jmp case.0x429b25.105
or byte [esp + 0xe8], 1
add edx, 1
cmp edx, dword [esi + 0xc]
jl 0x429b10
push str.symlink_path
mov eax, edi
call fcn.0044d820
test eax, eax
mov dword [esp + 0x18], eax
je 0x429c2c
mov edx, eax
mov eax, dword [edx + 0x10]
and eax, 0xe0000000
cmp eax, 0x40000000
jne 0x429c2c
mov ecx, edx
mov eax, dword [ecx + 0xc]
test eax, eax
jle 0x429c2c
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], eax
mov edi, edi
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
add eax, dword [esp + 0x24]
lea esi, [esp + 0x78]
call fcn.004275e0
mov edi, esi
mov byte [esp + 0x288], 5
call fcn.00427d60
mov eax, esi
push eax
lea edx, [esp + 0xf0]
lea ecx, [esp + 0x44]
call fcn.00431410
add esp, 4
push eax
lea ecx, [esp + 0xf0]
mov byte [esp + 0x28c], 6
call dword [0x52e398]
lea ecx, [esp + 0x40]
mov byte [esp + 0x288], 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 + 0x288], 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 + 0x24], 0x14
sub dword [esp + 0x14], 1
jne 0x429bb0
mov eax, dword [esp + 0x20]
push str.sha1
call fcn.0044d820
xor ecx, ecx
cmp eax, ecx
je 0x429c5b
mov edx, dword [eax + 0x10]
and edx, 0xe0000000
cmp edx, 0x60000000
jne 0x429c5b
cmp dword [eax + 0xc], 0x14
mov dword [esp + 0x18], eax
je 0x429c5f
mov dword [esp + 0x18], ecx
push ecx
push str._____padding_file_
lea ecx, [esp + 0x9c]
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 ecx, 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 [ecx]
je 0x429c84
or byte [esp + 0xe8], 1
mov esi, dword [esp + 0xc0]
test esi, esi
mov edi, dword [esp + 0xbc]
jg 0x429cc1
jl 0x429c9c
test edi, edi
jae 0x429cc1
mov esi, dword [esp + 0x1c]
push 9
call fcn.0042e810
lea edx, [esp + 0x94]
push edx
mov byte [esp + 0x28c], 0
call fcn.00416fa0
jmp 0x42a03d
test esi, esi
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], 0
jl 0x429e31
jg 0x429ce4
cmp edi, 0xffffffff
jbe 0x429e31
cmp byte [ebp + 0xc], 1
jne 0x429e31
push 0
push 0xffffffffffffffff
push esi
push edi
call fcn.00515a70
mov dword [esp + 0x14], eax
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
xor esi, esi
cmp dword [esp + 0x14], esi
mov byte [esp + 0x288], 7
jl 0x429df8
cmp dword [esp + 0x28], 0
jg 0x429d3f
jl 0x429d39
cmp edi, 0xffffffff
jae 0x429d3f
lea eax, [esp + 0x24]
jmp 0x429d43
lea eax, [esp + 0x34]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push 0x103
lea eax, [esp + 0x171]
push 0
push eax
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], edx
mov byte [esp + 0x178], 0
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x88]
add esp, 0xc
cmp dword [esp + 0x90], 0x10
jae 0x429d8a
lea eax, [esp + 0x7c]
push esi
push eax
lea ecx, [esp + 0x174]
push str._s.part_d
push ecx
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0x10
lea edx, [esp + 0x16c]
push edx
lea ecx, [esp + 0x98]
call dword [0x52e394]
cmp dword [esp + 0x18], 0
je 0x429dcc
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
add eax, ecx
jmp 0x429dce
xor eax, eax
push eax
lea edx, [esp + 0x98]
push edx
lea ecx, [ebx + 8]
call fcn.00417aa0
add edi, 1
adc dword [esp + 0x28], 0xffffffff
add esi, 1
cmp esi, dword [esp + 0x14]
mov dword [esp + 0x24], edi
jle 0x429d2b
mov al, byte [ebx + 0x158]
and al, 0xfe
or al, 2
lea ecx, [esp + 0x78]
mov byte [ebx + 0x158], al
mov byte [esp + 0x288], 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_]
lea eax, [esp + 0x94]
push eax
mov byte [esp + 0x28c], 0
call fcn.00416fa0
jmp 0x429ea6
mov eax, dword [esp + 0x18]
test eax, eax
je 0x429e43
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
add eax, ecx
jmp 0x429e45
xor eax, eax
push eax
lea edx, [esp + 0x98]
push edx
lea ecx, [ebx + 8]
call fcn.00417aa0
and byte [ebx + 0x158], 0xfc
lea eax, [esp + 0x94]
push eax
mov byte [esp + 0x28c], 0
call fcn.00416fa0
jmp 0x429ea6
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [ebx + 8]
push edx
mov edx, eax
call fcn.004284e0
add esp, 8
test al, al
jne 0x429e96
push 0xa
jmp 0x42a034
mov al, byte [ebx + 0x158]
and al, 0xfd
or al, 1
mov byte [ebx + 0x158], al
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [ebx + 0x68]
call dword [0x52e398]
mov ecx, dword [ebx + 0x94]
mov esi, dword [ebx + 0x88]
mov edi, dword [ebx + 0x8c]
mov eax, ecx
cdq
add eax, esi
adc edx, edi
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.00515a70
mov edi, eax
mov eax, dword [esp + 0x20]
push str.pieces
mov dword [ebx + 0x90], edi
call fcn.0044d820
mov esi, eax
mov eax, dword [esp + 0x20]
push str.root_hash
call fcn.0044d820
test esi, esi
mov dword [esp + 0x14], eax
je 0x429f2e
mov edx, dword [esi + 0x10]
and edx, 0xe0000000
cmp edx, 0x60000000
je 0x429f4b
test eax, eax
je 0x42a032
mov ecx, dword [eax + 0x10]
and ecx, 0xe0000000
cmp ecx, 0x60000000
jne 0x42a032
test esi, esi
je 0x429f74
mov eax, dword [esi + 0xc]
lea edx, [edi + edi*4]
add edx, edx
add edx, edx
cmp eax, edx
je 0x429f64
push 0xc
jmp 0x42a034
mov esi, dword [esi]
mov eax, dword [esp + 0x30]
add esi, eax
mov dword [ebx + 0xe4], esi
jmp 0x429fea
cmp dword [eax + 0xc], 0x14
jne 0x429f5d
mov eax, 1
cmp edi, eax
jle 0x429f89
add eax, eax
cmp edi, eax
jg 0x429f83
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.0042c260
lea edx, [edi + edi*4]
add edx, edx
add edx, edx
push edx
push 0
xor edi, edi
call fcn.0042c290
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.0042c290
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 + 0x20]
push 0
push 0
push edx
mov eax, str.private
call fcn.0044d780
or eax, edx
je 0x42a005
mov al, 1
jmp 0x42a007
xor al, al
add al, al
add al, al
xor al, byte [ebx + 0x158]
lea ecx, [esp + 0x5c]
and al, 4
xor byte [ebx + 0x158], al
mov dword [esp + 0x288], 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 0x42a054
push 0xb
mov esi, dword [esp + 0x20]
call fcn.0042e810
lea ecx, [esp + 0x5c]
mov dword [esp + 0x288], 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 + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.00515015
mov esp, ebp
pop ebp
ret 8