Function at 0x5735e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x5735f9
cmp byte [ebx + 0x5c], 0x72
je 0x573608
mov edx, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [ebx + 0x38]
cmp ecx, 0xfffffffd
sete dl
cmp ecx, 0xffffffff
sete al
or eax, edx
or edx, 0xffffffff
test al, 1
jne 0x5735fe
xor edx, edx
dec ecx
je 0x5735fe
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
mov edx, esi
mov edi, esi
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], ecx
test eax, eax
je 0x573740
mov eax, dword [ebx + 0x6c]
cmp eax, 0xffffffff
je 0x573673
mov byte [esi], al
lea edi, [esi + 1]
mov eax, dword [ebx + 0x68]
mov edx, dword [ebx + 0xc]
inc eax
mov ecx, dword [ebx + 0x10]
inc edx
dec ecx
mov dword [ebx + 0x68], eax
mov eax, dword [ebx + 0x70]
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x6c], 0xffffffff
mov esi, edi
test eax, eax
jne 0x57376b
test ecx, ecx
jne 0x5736d1
jmp 0x573740
mov eax, dword [ebx + 0x64]
add eax, edx
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x68]
add eax, ecx
mov dword [ebx + 0x68], eax
push eax
push eax
push 0
push ebx
call fcn.00576da0
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 4]
add esp, 0x10
sub edx, ecx
mov ecx, dword [ebx + 0x10]
mov dword [ebx + 0x64], edx
mov edx, dword [ebx + 0x68]
sub edx, ecx
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x68], edx
cmp eax, 1
je 0x57379d
test eax, eax
jne 0x57373d
mov edx, dword [ebx + 0x3c]
test edx, edx
jne 0x57373d
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x57373d
mov edx, dword [ebx + 0x58]
test edx, edx
jne 0x573805
mov edx, dword [ebx + 4]
test edx, edx
jne 0x573680
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x573680
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov eax, dword [ebx + 0x40]
push eax
push 0x4000
push 1
mov eax, dword [ebx + 0x44]
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
mov edx, eax
mov dword [ebx + 4], eax
test eax, eax
jne 0x573729
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x3c], 1
test byte [eax + 0xc], 0x20
jne 0x57388c
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x10]
mov dword [ebx], eax
jmp 0x573680
mov dword [ebx + 0x38], 0xfffffffd
mov edx, dword [ebx + 0xc]
sub edx, esi
push eax
push edx
push esi
mov eax, dword [ebx + 0x4c]
push eax
call fcn.00576690
mov ecx, dword [ebx + 0x10]
add esp, 0x10
mov dword [ebx + 0x4c], eax
cmp ecx, dword [ebp + 0x10]
je 0x57377c
mov edx, dword [ebp + 0x10]
sub edx, ecx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 1
mov dword [ebx + 0x38], 1
jmp 0x5735fe
mov eax, dword [ebx + 0x38]
cmp eax, 0xfffffffd
sete dl
inc eax
sete al
or eax, edx
or edx, 0xffffffff
test al, 1
jne 0x5735fe
mov edx, dword [ebp + 0x10]
sub edx, ecx
jmp 0x573761
push eax
mov eax, dword [ebx + 0xc]
sub eax, esi
push eax
push esi
mov esi, dword [ebx + 0x4c]
push esi
call fcn.00576690
mov esi, dword [ebx + 0xc]
mov dword [ebx + 0x4c], eax
mov eax, ebx
call fcn.00573580
add esp, 0x10
cmp eax, dword [ebx + 0x4c]
jne 0x573736
mov eax, ebx
call fcn.00573580
mov eax, ebx
call fcn.00572f90
mov ecx, dword [ebx + 0x38]
test ecx, ecx
jne 0x57373d
sub esp, 0xc
push ebx
call fcn.00576a40
add esp, 0xc
push 0
push 0
push 0
call fcn.00576690
add esp, 0x10
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x38]
jmp 0x5736bf
mov esi, dword [ebx + 4]
cmp ecx, esi
jae 0x57380e
mov esi, ecx
test esi, esi
jne 0x57385e
test ecx, ecx
jne 0x573844
mov esi, dword [ebp + 0x10]
mov edx, dword [ebx + 0x68]
sub esi, ecx
mov ecx, dword [ebx + 0x64]
mov dword [ebp + 0x10], esi
mov eax, dword [ebp + 0x10]
add ecx, eax
add edx, eax
mov dword [ebx + 0x64], ecx
mov dword [ebx + 0x68], edx
test eax, eax
jne 0x57383c
mov dword [ebx + 0x3c], 1
mov edx, dword [ebp + 0x10]
jmp 0x5735fe
mov eax, dword [ebx + 0x40]
push eax
push ecx
push 1
push edi
call sub.msvcrt.dll_fread
mov ecx, dword [ebx + 0x10]
sub ecx, eax
add esp, 0x10
mov dword [ebx + 0x10], ecx
jmp 0x573816
push eax
push esi
add edi, esi
mov eax, dword [ebx]
push eax
mov eax, dword [ebx + 0xc]
push eax
call fcn.0058e948
mov eax, dword [ebx]
mov ecx, dword [ebx + 0x10]
add eax, esi
sub ecx, esi
mov dword [ebx], eax
mov eax, dword [ebx + 4]
sub eax, esi
add esp, 0x10
mov dword [ebx + 0xc], edi
mov dword [ebx + 0x10], ecx
mov dword [ebx + 4], eax
jmp 0x573812
mov edx, dword [ebx + 0xc]
mov dword [ebx + 0x38], 0xffffffff
jmp 0x573740