Function at 0x57b720
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5bf848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebp
push esi
push edi
push str.r3dFS:_checking_archive_consistency_n
mov edi, ecx
call fcn.00569b20
mov esi, 1
add dword [0x697d80], esi
add esp, 4
xor ebp, ebp
push ebp
push esi
mov ecx, edi
mov dword [esp + 0x68], ebp
call fcn.00577c90
test al, al
jne 0x57b793
mov ecx, edi
call fcn.00578980
cmp dword [0x697d80], ebp
je 0x57b77d
sub dword [0x697d80], esi
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebx
lea ecx, [esp + 0x28]
mov byte [edi + 0x134], 0
call fcn.0057a9f0
mov esi, dword [esp + 0x70]
mov ebx, dword [esp + 0x74]
mov dword [esi], ebp
mov dword [esi + 4], ebp
mov dword [ebx], ebp
mov dword [ebx + 4], ebp
mov eax, dword [edi + 0x118]
sub eax, dword [edi + 0x114]
mov byte [esp + 0x64], 1
sar eax, 2
test eax, eax
jbe 0x57b811
mov edi, edi
mov ecx, dword [edi + 0x118]
sub ecx, dword [edi + 0x114]
sar ecx, 2
cmp ebp, ecx
jb 0x57b7e8
call fcn.00590ecc
mov edx, dword [edi + 0x114]
mov eax, dword [edx + ebp*4]
mov ecx, dword [eax + 0x10a]
add dword [esi], ecx
adc dword [esi + 4], 0
mov edx, dword [edi + 0x118]
sub edx, dword [edi + 0x114]
inc ebp
sar edx, 2
cmp ebp, edx
jb 0x57b7d0
mov eax, dword [edi + 0x118]
sub eax, dword [edi + 0x114]
xor esi, esi
sar eax, 2
mov dword [esp + 0x14], esi
test eax, eax
jbe 0x57ba12
jmp 0x57b834
mov esi, dword [esp + 0x14]
cmp byte [0x697cfc], 0
jne 0x57ba12
push 0x7202b4
lea ecx, [esp + 0x78]
call fcn.0056c860
mov ecx, dword [edi + 0x118]
sub ecx, dword [edi + 0x114]
mov byte [esp + 0x64], 2
sar ecx, 2
cmp esi, ecx
jb 0x57b86c
call fcn.00590ecc
mov edx, dword [edi + 0x114]
mov esi, dword [edx + esi*4]
mov eax, dword [esi + 0x10a]
add dword [ebx], eax
push 0
push 0
adc dword [ebx + 4], 0
movzx ecx, byte [esi + 0x105]
mov edx, dword [esi + 0x106]
mov ebp, dword [edi + ecx*4 + 0x340]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], 0x64667261
je 0x57b945
movzx edx, byte [esi + 0x105]
push edx
push esi
push str.FileSystem_corrupt1__file:__s__volume:_d_n
call fcn.00569b20
mov eax, esi
add esp, 0xc
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57b900
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x48]
call fcn.0056b780
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 3
call fcn.0057b670
cmp dword [esp + 0x58], 0x10
mov byte [esp + 0x64], 2
jb 0x57b9e4
mov ecx, dword [esp + 0x44]
push 1
push 1
push ecx
jmp 0x57b9dc
cmp byte [esp + 0x6c], 0
je 0x57b9e4
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
xor ebp, ebp
push esi
mov ecx, edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
call fcn.005782c0
mov byte [esp + 0x70], al
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x57b981
push eax
call fcn.0056ba00
add esp, 4
cmp byte [esp + 0x70], 0
jne 0x57b9e4
mov eax, esi
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebp
mov byte [esp + 0x44], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57b9a0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x48]
call fcn.0056b780
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 4
call fcn.0057b670
cmp dword [esp + 0x58], 0x10
mov byte [esp + 0x64], 2
jb 0x57b9e4
mov edx, dword [esp + 0x44]
push 1
push 1
push edx
call fcn.0056b960
add esp, 0xc
lea ecx, [esp + 0x74]
mov byte [esp + 0x64], 1
call fcn.0056c8d0
mov ecx, dword [edi + 0x118]
sub ecx, dword [edi + 0x114]
mov eax, dword [esp + 0x14]
inc eax
sar ecx, 2
mov dword [esp + 0x14], eax
cmp eax, ecx
jb 0x57b830
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [edi + 0x340]
mov ebx, 0x40
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x57ba33
push eax
call ebp
mov dword [esi], 0xffffffff
add esi, 4
sub ebx, 1
jne 0x57ba23
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [edi + 0x134], 1
jne 0x57baa0
push str.archive_Ok_n
call fcn.00569b20
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], bl
call fcn.0057aa40
cmp dword [0x697d80], ebx
je 0x57ba89
dec dword [0x697d80]
pop ebx
pop edi
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
xor ebx, ebx
test eax, eax
jbe 0x57baf7
xor ebp, ebp
cmp ebx, eax
jb 0x57bab5
call fcn.00590ecc
mov esi, dword [esp + 0x34]
cmp dword [esi + ebp + 0x18], 0x10
jb 0x57bac2
mov esi, dword [esi + ebp + 4]
jmp 0x57bac6
lea esi, [esi + ebp + 4]
push esi
lea ecx, [edi + 0x104]
call fcn.00579bc0
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add ebp, 0x1c
cmp ebx, eax
jb 0x57bab5
mov edx, dword [edi + 0x118]
sub edx, dword [edi + 0x114]
mov ecx, edi
test edx, 0xfffffffc
jne 0x57bb21
call fcn.00578980
push str.archive_is_corrupted_n
call fcn.00569b20
add esp, 4
jmp 0x57bb59
mov dword [edi + 0x104], 0
call fcn.00578a10
mov ecx, dword [esp + 0x38]
sub ecx, dword [esp + 0x34]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push str.archive_had__d_bad_files_n
call fcn.00569b20
add esp, 8
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 0
call fcn.0057aa40
cmp dword [0x697d80], 0
je 0x57bb76
dec dword [0x697d80]
mov ecx, dword [esp + 0x5c]
pop ebx
pop edi
pop esi
xor al, al
pop ebp
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc