Function at 0x5a7a30
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5ecf38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push str.r3dFS:_checking_archive_consistency_n
mov ebx, ecx
call fcn.00596cb0
inc dword [0x7ddf98]
add esp, 4
push 0
push 1
mov ecx, ebx
mov dword [esp + 0x54], 0
call fcn.005a6cb0
test al, al
jne 0x5a7a83
mov ecx, ebx
call fcn.005a7630
xor bl, bl
jmp 0x5a7e0c
push ebp
xor ebp, ebp
mov byte [ebx + 0x128], 0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov ecx, dword [esp + 0x5c]
xor edx, edx
mov eax, dword [esp + 0x60]
mov byte [esp + 0x50], 1
mov dword [ecx], ebp
mov dword [ecx + 4], ebp
mov dword [eax], ebp
mov dword [eax + 4], ebp
mov eax, dword [ebx + 0x10c]
sub eax, dword [ebx + 0x108]
sar eax, 2
test eax, eax
je 0x5a7af9
jmp 0x5a7ad0
mov eax, dword [ebx + 0x108]
mov eax, dword [eax + edx*4]
mov eax, dword [eax + 0x106]
add dword [ecx], eax
adc dword [ecx + 4], 0
inc edx
mov eax, dword [ebx + 0x10c]
sub eax, dword [ebx + 0x108]
sar eax, 2
cmp edx, eax
jb 0x5a7ad0
mov eax, dword [ebx + 0x10c]
sub eax, dword [ebx + 0x108]
push esi
xor esi, esi
sar eax, 2
mov dword [esp + 0x1c], esi
push edi
test eax, eax
je 0x5a7ce5
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, edi
cmp byte [0x7df55c], 0
jne 0x5a7ce1
push 0x866bc4
lea ecx, [esp + 0x18]
call fcn.00598fa0
mov eax, dword [ebx + 0x108]
mov ecx, dword [esp + 0x68]
push 0
push 0
mov edi, dword [eax + esi*4]
mov byte [esp + 0x60], 2
mov eax, dword [edi + 0x106]
add dword [ecx], eax
adc dword [ecx + 4], 0
movzx eax, byte [edi + 0x105]
push dword [edi + 0x10a]
mov esi, dword [ebx + eax*4 + 0x338]
push esi
call ebp
push 0
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], 0
push eax
push 4
lea eax, [esp + 0x24]
mov dword [esp + 0x30], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], 0x69737573
je 0x5a7bfe
movzx eax, byte [edi + 0x105]
push eax
push edi
push str.FileSystem_corrupt1__file:__s__volume:_d_n
call fcn.00596cb0
add esp, 0xc
mov dword [esp + 0x4c], 0xf
cmp byte [edi], 0
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
jne 0x5a7bd7
xor ecx, ecx
jmp 0x5a7be9
mov ecx, edi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5a7be0
sub ecx, edx
push ecx
push edi
lea ecx, [esp + 0x40]
call fcn.005982d0
mov byte [esp + 0x58], 3
jmp 0x5a7c89
cmp byte [esp + 0x60], 0
je 0x5a7cb3
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], 0
push eax
push edi
mov ecx, ebx
call fcn.005a6710
mov byte [esp + 0x64], al
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5a7c40
push eax
call fcn.00598e00
add esp, 4
cmp byte [esp + 0x64], 0
jne 0x5a7cb3
cmp byte [edi], 0
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
jne 0x5a7c65
xor ecx, ecx
jmp 0x5a7c79
mov ecx, edi
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5a7c70
sub ecx, edx
push ecx
push edi
lea ecx, [esp + 0x40]
call fcn.005982d0
mov byte [esp + 0x58], 4
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x30]
call fcn.005a8600
cmp dword [esp + 0x4c], 0x10
mov byte [esp + 0x58], 2
jb 0x5a7cb3
push 1
push 1
push dword [esp + 0x40]
call fcn.00598f20
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 1
call fcn.0057edb0
mov eax, dword [ebx + 0x10c]
mov esi, dword [esp + 0x20]
sub eax, dword [ebx + 0x108]
inc esi
sar eax, 2
mov dword [esp + 0x20], esi
cmp esi, eax
jb 0x5a7b20
mov ebp, dword [esp + 0x2c]
lea esi, [ebx + 0x338]
mov edi, 0x40
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x5a7d04
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0xffffffff
add esi, 4
dec edi
jne 0x5a7cf0
mov edi, dword [esp + 0x30]
mov eax, 0x2aaaaaab
mov ecx, edi
mov byte [ebx + 0x128], 1
sub ecx, ebp
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x60], eax
jne 0x5a7d44
push str.archive_Ok_n
call fcn.00596cb0
add esp, 4
mov bl, 1
jmp 0x5a7dc1
test eax, eax
je 0x5a7d76
mov esi, ebp
mov edi, eax
lea esp, [esp]
cmp dword [esi + 0x14], 0x10
jb 0x5a7d5a
mov eax, dword [esi]
jmp 0x5a7d5c
mov eax, esi
push eax
lea ecx, [ebx + 0x104]
call fcn.005a74d0
add esi, 0x18
dec edi
jne 0x5a7d50
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
mov eax, dword [ebx + 0x10c]
mov ecx, ebx
sub eax, dword [ebx + 0x108]
test eax, 0xfffffffc
jne 0x5a7d9f
call fcn.005a7630
push str.archive_is_corrupted_n
call fcn.00596cb0
add esp, 4
jmp 0x5a7dbf
mov dword [ebx + 0x104], 0
call fcn.005a81e0
push dword [esp + 0x60]
push str.archive_had__d_bad_files_n
call fcn.00596cb0
add esp, 8
xor bl, bl
mov byte [esp + 0x58], 0
test ebp, ebp
je 0x5a7e09
mov esi, ebp
cmp ebp, edi
je 0x5a7dfc
cmp dword [esi + 0x14], 0x10
jb 0x5a7de4
push 1
push 1
push dword [esi]
call fcn.00598f20
add esp, 0xc
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x18
cmp esi, edi
jne 0x5a7dd0
push 1
push 1
push ebp
call fcn.00598f20
add esp, 0xc
pop edi
pop esi
pop ebp
mov ecx, dword [0x7ddf98]
mov al, bl
test ecx, ecx
je 0x5a7e1f
dec ecx
mov dword [0x7ddf98], ecx
mov ecx, dword [esp + 0x44]
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 0xc