Function at 0x57c330
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
mov dword [ebp - 4], edi
je 0x57c34f
cmp byte [ebx + 0x5c], 0x72
je 0x57c363
mov edx, 0xfffffffe
mov ebx, dword [ebp - 0xc]
mov eax, edx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x38]
cmp ecx, 0xfffffffd
sete al
cmp ecx, 0xffffffff
sete dl
or eax, edx
test al, 1
mov edx, 0xffffffff
jne 0x57c354
xor edx, edx
dec ecx
je 0x57c354
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 0x10]
mov edx, esi
mov dword [ebx + 0xc], esi
mov ecx, dword [ebp + 0x10]
test edi, edi
mov dword [ebx + 0x10], ecx
je 0x57c4a1
mov eax, dword [ebx + 0x6c]
cmp eax, 0xffffffff
je 0x57c3cc
mov byte [esi], al
mov edx, dword [ebx + 0xc]
inc esi
inc dword [ebx + 0x68]
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [ebx + 0x70]
inc edx
mov dword [ebx + 0xc], edx
dec ecx
test eax, eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x6c], 0xffffffff
jne 0x57c4d5
test ecx, ecx
jne 0x57c425
jmp 0x57c4a1
add dword [ebx + 0x64], edx
xor eax, eax
add dword [ebx + 0x68], ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00580fc0
mov dword [ebx + 0x38], eax
mov edi, dword [ebx + 0x64]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 0x10]
sub edi, edx
mov edx, dword [ebx + 0x68]
mov dword [ebx + 0x64], edi
sub edx, ecx
cmp eax, 1
mov dword [ebx + 0x68], edx
je 0x57c509
test eax, eax
jne 0x57c49e
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x57c49e
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x57c49e
mov edx, dword [ebx + 0x58]
test edx, edx
jne 0x57c9b3
mov edx, dword [ebx + 4]
test edx, edx
jne 0x57c3d5
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x57c3d5
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov eax, dword [ebx + 0x40]
mov edx, 1
mov dword [esp + 4], edx
mov edi, 0x4000
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov ecx, dword [ebx + 0x44]
mov dword [esp], ecx
call sub.msvcrt.dll_fread
mov dword [ebx + 4], eax
test eax, eax
mov edx, eax
jne 0x57c48a
mov dword [ebx + 0x3c], 1
mov ecx, dword [ebx + 0x40]
test byte [ecx + 0xc], 0x20
jne 0x57caa3
mov edi, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x10]
mov dword [ebx], edi
jmp 0x57c3d5
mov dword [ebx + 0x38], 0xfffffffd
mov edx, dword [ebx + 0xc]
mov dword [esp + 4], esi
sub edx, esi
mov dword [esp + 8], edx
mov esi, dword [ebx + 0x4c]
mov dword [esp], esi
call fcn.005807b0
mov dword [ebx + 0x4c], eax
mov ecx, dword [ebx + 0x10]
cmp ecx, dword [ebp + 0x10]
je 0x57c4e6
mov edx, dword [ebp + 0x10]
sub edx, ecx
mov ebx, dword [ebp - 0xc]
mov eax, edx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0x38], 1
mov edx, 1
jmp 0x57c354
mov edi, dword [ebx + 0x38]
mov edx, 0xffffffff
cmp edi, 0xfffffffd
sete bl
inc edi
sete al
or eax, ebx
test al, 1
jne 0x57c354
mov edx, dword [ebp + 0x10]
sub edx, ecx
jmp 0x57c4c6
mov ecx, dword [ebx + 0xc]
mov dword [esp + 4], esi
sub ecx, esi
mov dword [esp + 8], ecx
mov esi, dword [ebx + 0x4c]
mov dword [esp], esi
call fcn.005807b0
mov dword [ebx + 0x4c], eax
mov ecx, dword [ebx + 0x3c]
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x18], 0xffffffff
test ecx, ecx
jne 0x57c551
mov eax, dword [ebx + 4]
test eax, eax
je 0x57c838
mov edx, dword [ebx]
dec eax
mov dword [ebx + 4], eax
lea eax, [edx + 1]
movzx edi, byte [edx]
mov dword [ebx], eax
mov dword [ebp - 0x18], edi
test ecx, ecx
mov edi, 0xffffffff
jne 0x57c573
mov eax, dword [ebx + 4]
test eax, eax
je 0x57c774
mov edx, dword [ebx]
dec eax
mov dword [ebx + 4], eax
lea eax, [edx + 1]
movzx edi, byte [edx]
mov dword [ebx], eax
mov edx, dword [ebp - 0x18]
shl edi, 8
add edi, edx
mov dword [ebp - 0x14], edi
test ecx, ecx
mov edi, 0xffffffff
jne 0x57c5a0
mov eax, dword [ebx + 4]
test eax, eax
je 0x57c7d6
mov edx, dword [ebx]
dec eax
mov dword [ebx + 4], eax
lea eax, [edx + 1]
movzx edi, byte [edx]
mov dword [ebx], eax
mov edx, dword [ebp - 0x14]
shl edi, 0x10
add edi, edx
mov dword [ebp - 0x1c], edi
test ecx, ecx
mov edi, 0xffffffff
jne 0x57c707
mov eax, dword [ebx + 4]
test eax, eax
je 0x57c6ad
mov edx, dword [ebx]
dec eax
lea ecx, [edx + 1]
mov dword [ebx + 4], eax
movzx edi, byte [edx]
mov dword [ebx], ecx
cmp edi, 0xffffffff
je 0x57c707
mov eax, dword [ebp - 0x1c]
shl edi, 0x18
add eax, edi
cmp eax, dword [ebx + 0x4c]
jne 0x57c497
mov edx, dword [ebx + 0x3c]
test edx, edx
jne 0x57c768
mov eax, dword [ebx + 4]
test eax, eax
je 0x57c956
mov ecx, dword [ebx]
dec eax
lea edi, [ecx + 1]
mov dword [ebx + 4], eax
mov dword [ebx], edi
test edx, edx
jne 0x57c768
mov eax, dword [ebx + 4]
test eax, eax
je 0x57c8f9
mov ecx, dword [ebx]
dec eax
mov dword [ebx + 4], eax
lea eax, [ecx + 1]
mov dword [ebx], eax
test edx, edx
jne 0x57c768
mov eax, dword [ebx + 4]
test eax, eax
je 0x57c89c
mov ecx, dword [ebx]
dec eax
lea edi, [ecx + 1]
mov dword [ebx + 4], eax
mov dword [ebx], edi
test edx, edx
jne 0x57c768
mov eax, dword [ebx + 4]
test eax, eax
je 0x57c713
mov ecx, dword [ebx]
dec eax
mov dword [ebx + 4], eax
lea eax, [ecx + 1]
movzx edx, byte [ecx]
mov dword [ebx], eax
inc edx
je 0x57c768
mov eax, ebx
call fcn.0057b800
mov edi, dword [ebx + 0x38]
test edi, edi
jne 0x57c49e
mov dword [esp], ebx
call fcn.00580bd0
mov dword [esp], 0
xor edx, edx
xor ecx, ecx
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call fcn.005807b0
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x38]
jmp 0x57c40b
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov edx, dword [ebx + 0x40]
mov eax, 0x4000
mov dword [esp + 8], eax
mov ecx, 1
mov dword [esp + 4], ecx
mov dword [esp + 0xc], edx
mov edi, dword [ebx + 0x44]
mov dword [esp], edi
call sub.msvcrt.dll_fread
test eax, eax
jne 0x57c9ff
mov dword [ebx + 4], 0
mov edi, dword [ebx + 0x40]
mov dword [ebx + 0x3c], 1
test byte [edi + 0xc], 0x20
je 0x57c702
mov dword [ebx + 0x38], 0xffffffff
mov edi, 0xffffffff
mov dword [ebx + 0x38], 0xfffffffd
jmp 0x57c5da
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov edi, dword [ebx + 0x40]
mov edx, 0x4000
mov dword [esp + 8], edx
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp + 0xc], edi
mov ecx, dword [ebx + 0x44]
mov dword [esp], ecx
call sub.msvcrt.dll_fread
test eax, eax
jne 0x57ca23
mov dword [ebx + 4], 0
mov ecx, dword [ebx + 0x40]
mov dword [ebx + 0x3c], 1
test byte [ecx + 0xc], 0x20
je 0x57c768
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x38], 0xfffffffd
jmp 0x57c670
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov edi, dword [ebx + 0x40]
mov eax, 0x4000
mov dword [esp + 8], eax
mov ecx, 1
mov dword [esp + 4], ecx
mov dword [esp + 0xc], edi
mov edx, dword [ebx + 0x44]
mov dword [esp], edx
call sub.msvcrt.dll_fread
test eax, eax
jne 0x57c9f2
mov dword [ebx + 4], 0
mov edx, dword [ebx + 0x40]
mov dword [ebx + 0x3c], 1
test byte [edx + 0xc], 0x20
je 0x57c7c9
mov dword [ebx + 0x38], 0xffffffff
mov ecx, dword [ebx + 0x3c]
mov edi, 0xffffffff
jmp 0x57c573
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov edx, dword [ebx + 0x40]
mov eax, 0x4000
mov dword [esp + 8], eax
mov edi, 1
mov dword [esp + 4], edi
mov dword [esp + 0xc], edx
mov ecx, dword [ebx + 0x44]
mov dword [esp], ecx
call sub.msvcrt.dll_fread
test eax, eax
jne 0x57c9e5
mov dword [ebx + 4], 0
mov ecx, dword [ebx + 0x40]
mov dword [ebx + 0x3c], 1
test byte [ecx + 0xc], 0x20
je 0x57c82b
mov dword [ebx + 0x38], 0xffffffff
mov ecx, dword [ebx + 0x3c]
mov edi, 0xffffffff
jmp 0x57c5a0
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov ecx, dword [ebx + 0x40]
mov eax, 0x4000
mov dword [esp + 8], eax
mov edx, 1
mov dword [esp + 4], edx
mov dword [esp + 0xc], ecx
mov edi, dword [ebx + 0x44]
mov dword [esp], edi
call sub.msvcrt.dll_fread
test eax, eax
jne 0x57ca09
mov dword [ebx + 4], 0
mov edi, dword [ebx + 0x40]
mov dword [ebx + 0x3c], 1
test byte [edi + 0xc], 0x20
je 0x57c88d
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
mov ecx, dword [ebx + 0x3c]
jmp 0x57c551
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov eax, dword [ebx + 0x40]
mov ecx, 0x4000
mov dword [esp + 8], ecx
mov edi, 1
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov edx, dword [ebx + 0x44]
mov dword [esp], edx
call sub.msvcrt.dll_fread
test eax, eax
jne 0x57ca3a
mov dword [ebx + 4], 0
mov edx, dword [ebx + 0x40]
mov dword [ebx + 0x3c], 1
test byte [edx + 0xc], 0x20
je 0x57c8f1
mov dword [ebx + 0x38], 0xffffffff
mov edx, dword [ebx + 0x3c]
jmp 0x57c648
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov edi, dword [ebx + 0x40]
mov edx, 0x4000
mov dword [esp + 8], edx
mov eax, 1
mov dword [esp + 4], eax
mov dword [esp + 0xc], edi
mov ecx, dword [ebx + 0x44]
mov dword [esp], ecx
call sub.msvcrt.dll_fread
test eax, eax
jne 0x57ca2d
mov dword [ebx + 4], 0
mov ecx, dword [ebx + 0x40]
mov dword [ebx + 0x3c], 1
test byte [ecx + 0xc], 0x20
je 0x57c94e
mov dword [ebx + 0x38], 0xffffffff
mov edx, dword [ebx + 0x3c]
jmp 0x57c62a
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov eax, dword [ebx + 0x40]
mov ecx, 0x4000
mov dword [esp + 8], ecx
mov edi, 1
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov edx, dword [ebx + 0x44]
mov dword [esp], edx
call sub.msvcrt.dll_fread
test eax, eax
jne 0x57ca16
mov dword [ebx + 4], 0
mov edx, dword [ebx + 0x40]
mov dword [ebx + 0x3c], 1
test byte [edx + 0xc], 0x20
je 0x57c9ab
mov dword [ebx + 0x38], 0xffffffff
mov edx, dword [ebx + 0x3c]
jmp 0x57c60c
mov esi, dword [ebx + 4]
cmp ecx, esi
jae 0x57c9bc
mov esi, ecx
test esi, esi
jne 0x57ca73
test ecx, ecx
jne 0x57ca47
mov eax, dword [ebp + 0x10]
sub eax, ecx
add dword [ebx + 0x64], eax
add dword [ebx + 0x68], eax
test eax, eax
jne 0x57c9de
mov dword [ebx + 0x3c], 1
mov edx, eax
jmp 0x57c354
mov edx, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x3c]
mov dword [ebx], edx
jmp 0x57c594
mov edx, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x3c]
mov dword [ebx], edx
jmp 0x57c567
mov edx, dword [ebx + 0x44]
mov dword [ebx], edx
jmp 0x57c5c5
mov edx, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x3c]
mov dword [ebx], edx
jmp 0x57c542
mov ecx, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
mov dword [ebx], ecx
jmp 0x57c603
mov ecx, dword [ebx + 0x44]
mov dword [ebx], ecx
jmp 0x57c65d
mov ecx, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
mov dword [ebx], ecx
jmp 0x57c621
mov ecx, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
mov dword [ebx], ecx
jmp 0x57c63f
mov edi, dword [ebx + 0x40]
mov edx, 1
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp + 0xc], edi
mov esi, dword [ebp - 0x10]
mov dword [esp], esi
call sub.msvcrt.dll_fread
mov ecx, dword [ebx + 0x10]
sub ecx, eax
mov dword [ebx + 0x10], ecx
jmp 0x57c9c8
mov edi, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [esp + 8], esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
add dword [ebp - 0x10], esi
add dword [ebx], esi
sub dword [ebx + 4], esi
mov ecx, dword [ebp - 0x10]
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebx + 0x10]
sub ecx, esi
mov dword [ebx + 0x10], ecx
jmp 0x57c9c4
mov dword [ebx + 0x38], 0xffffffff
mov edx, dword [ebx + 0xc]
jmp 0x57c4a1