Function at 0x56a420
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5c9d58
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.0055a180
mov esi, 1
add dword [0x698a98], esi
add esp, 4
xor ebp, ebp
push ebp
push esi
mov ecx, edi
mov dword [esp + 0x68], ebp
call fcn.00566e70
test al, al
jne 0x56a493
mov ecx, edi
call fcn.00567b90
cmp dword [0x698a98], ebp
je 0x56a47d
sub dword [0x698a98], 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.00569590
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 0x56a511
mov edi, edi
mov ecx, dword [edi + 0x118]
sub ecx, dword [edi + 0x114]
sar ecx, 2
cmp ebp, ecx
jb 0x56a4e8
call fcn.0057d0e4
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 0x56a4d0
mov eax, dword [edi + 0x118]
sub eax, dword [edi + 0x114]
xor esi, esi
sar eax, 2
mov dword [esp + 0x74], esi
test eax, eax
jbe 0x56a700
jmp 0x56a534
mov esi, dword [esp + 0x74]
cmp byte [0x698a18], 0
jne 0x56a700
push 0x71806c
mov dword [esp + 0x28], 0x71806c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x118]
sub ecx, dword [edi + 0x114]
mov byte [esp + 0x64], 2
sar ecx, 2
cmp esi, ecx
jb 0x56a571
call fcn.0057d0e4
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 + 0x18], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 4
lea ecx, [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], 0x64667261
je 0x56a63c
movzx edx, byte [esi + 0x105]
push edx
push esi
push str.FileSystem_corrupt1__file:__s__volume:_d_n
call fcn.0055a180
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]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x56a600
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x48]
call fcn.00403760
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 3
call fcn.0056a370
cmp dword [esp + 0x58], 0x10
jb 0x56a6d0
mov ecx, dword [esp + 0x44]
push ecx
jmp 0x56a6c8
cmp byte [esp + 0x6c], 0
je 0x56a6d0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
xor ebp, ebp
push esi
mov ecx, edi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
call fcn.00567460
mov byte [esp + 0x70], al
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x56a678
push eax
call fcn.0057c38d
add esp, 4
cmp byte [esp + 0x70], 0
jne 0x56a6d0
mov eax, esi
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebp
mov byte [esp + 0x44], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x56a695
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x48]
call fcn.00403760
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x68], 4
call fcn.0056a370
cmp dword [esp + 0x58], 0x10
jb 0x56a6d0
mov edx, dword [esp + 0x44]
push edx
call fcn.0057c38d
add esp, 4
push 0x71806c
mov byte [esp + 0x68], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [edi + 0x118]
sub ecx, dword [edi + 0x114]
mov eax, dword [esp + 0x74]
inc eax
sar ecx, 2
mov dword [esp + 0x74], eax
cmp eax, ecx
jb 0x56a530
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [edi + 0x340]
mov ebx, 0x40
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x56a721
push eax
call ebp
mov dword [esi], 0xffffffff
add esi, 4
sub ebx, 1
jne 0x56a711
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
sub ecx, ebp
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 0x56a7e6
push str.archive_Ok_n
call fcn.0055a180
mov esi, dword [esp + 0x38]
add esp, 4
cmp esi, ebx
je 0x56a7a8
mov edi, dword [esp + 0x38]
cmp esi, edi
je 0x56a79f
add esi, 0x18
cmp dword [esi], 0x10
jb 0x56a784
mov edx, dword [esi - 0x14]
push edx
call fcn.0057c38d
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], 0
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, edi
jne 0x56a773
mov esi, dword [esp + 0x34]
push esi
call fcn.0057c38d
add esp, 4
mov ecx, dword [esp + 0x28]
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.0057c38d
add esp, 4
cmp dword [0x698a98], ebx
je 0x56a7cf
dec dword [0x698a98]
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 0x56a83d
xor esi, esi
cmp ebx, eax
jb 0x56a7fb
call fcn.0057d0e4
mov ebp, dword [esp + 0x34]
cmp dword [esi + ebp + 0x18], 0x10
jb 0x56a808
mov ebp, dword [esi + ebp + 4]
jmp 0x56a80c
lea ebp, [esi + ebp + 4]
push ebp
lea ecx, [edi + 0x104]
call fcn.00568b40
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
sub ecx, ebp
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
add esi, 0x1c
cmp ebx, eax
jb 0x56a7fb
mov edx, dword [edi + 0x118]
sub edx, dword [edi + 0x114]
mov ecx, edi
test edx, 0xfffffffc
jne 0x56a8bf
call fcn.00567b90
push str.archive_is_corrupted_n
call fcn.0055a180
mov esi, dword [esp + 0x38]
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x56a8b5
mov edi, dword [esp + 0x38]
cmp esi, edi
je 0x56a8ac
add esi, 0x18
lea ebx, [ebx]
cmp dword [esi], 0x10
jb 0x56a891
mov eax, dword [esi - 0x14]
push eax
call fcn.0057c38d
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], 0
add esi, 0x1c
lea ecx, [esi - 0x18]
cmp ecx, edi
jne 0x56a880
mov esi, dword [esp + 0x34]
push esi
call fcn.0057c38d
add esp, 4
mov edx, dword [esp + 0x28]
push edx
jmp 0x56a94a
mov dword [edi + 0x104], 0
call fcn.00567c20
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.0055a180
mov esi, dword [esp + 0x3c]
xor ebx, ebx
add esp, 8
cmp esi, ebx
je 0x56a945
mov edi, dword [esp + 0x38]
cmp esi, edi
je 0x56a93c
add esi, 0x18
lea esp, [esp]
cmp dword [esi], 0x10
jb 0x56a921
mov ecx, dword [esi - 0x14]
push ecx
call fcn.0057c38d
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], 0
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x56a910
mov esi, dword [esp + 0x34]
push esi
call fcn.0057c38d
add esp, 4
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.0057c38d
add esp, 4
cmp dword [0x698a98], ebx
je 0x56a96c
dec dword [0x698a98]
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