Function at 0x415d0d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, ecx
test ebx, ebx
je 0x415d31
cmp byte [ebx + 0x5c], 0x72
je 0x415d3b
mov edx, 0xfffffffe
jmp 0x415fa5
mov eax, dword [ebx + 0x38]
cmp eax, 0xfffffffd
sete dl
cmp eax, 0xffffffff
sete al
or eax, edx
mov edx, 0xffffffff
test al, 1
jne 0x415fa5
mov edx, 0
cmp dword [ebx + 0x38], 1
je 0x415fa5
mov dword [ebp - 0x10], ecx
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
test edi, edi
je 0x415f66
cmp dword [ebx + 0x6c], 0xffffffff
je 0x415dbf
mov eax, dword [ebx + 0x6c]
mov edx, dword [ebp - 0x10]
mov byte [edx], al
inc edx
mov dword [ebp - 0x10], edx
inc dword [ebx + 0xc]
dec dword [ebx + 0x10]
mov dword [ebx + 0x6c], 0xffffffff
inc dword [ebx + 0x68]
inc esi
cmp dword [ebx + 0x70], 0
je 0x415dbf
mov dword [ebx + 0x38], 1
mov edx, 1
jmp 0x415fa5
mov dword [ebx + 0x38], 0xffffffff
jmp 0x415f66
cmp dword [ebx + 0x10], 0
je 0x415f66
cmp dword [ebx + 0x58], 0
je 0x415e49
mov esi, dword [ebx + 4]
cmp dword [ebx + 0x10], esi
jae 0x415dda
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x415e04
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
add dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0xc], eax
add dword [ebx], esi
sub dword [ebx + 0x10], esi
sub dword [ebx + 4], esi
cmp dword [ebx + 0x10], 0
je 0x415e2e
mov eax, dword [ebx + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov edx, dword [ebp - 0x10]
mov dword [esp], edx
call sub.msvcrt.dll_fread
sub dword [ebx + 0x10], eax
sub edi, dword [ebx + 0x10]
add dword [ebx + 0x64], edi
add dword [ebx + 0x68], edi
test edi, edi
jne 0x415e42
mov dword [ebx + 0x3c], 1
mov edx, edi
jmp 0x415fa5
cmp dword [ebx + 4], 0
jne 0x415ea2
cmp dword [ebx + 0x3c], 0
jne 0x415ea2
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov eax, dword [ebx + 0x40]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4000
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [ebx + 4], eax
test eax, eax
jne 0x415e9d
mov dword [ebx + 0x3c], 1
mov eax, dword [ebx + 0x40]
test byte [eax + 0xc], 0x20
jne 0x415db3
mov eax, dword [ebx + 0x44]
mov dword [ebx], eax
mov eax, dword [ebx + 0x64]
add eax, dword [ebx + 4]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x68]
add eax, dword [ebx + 0x10]
mov dword [ebx + 0x68], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.00418e52
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x64]
sub eax, dword [ebx + 4]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x68]
sub eax, dword [ebx + 0x10]
mov dword [ebx + 0x68], eax
cmp dword [ebx + 0x38], 1
jne 0x415f50
mov eax, dword [ebx + 0xc]
sub eax, esi
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call fcn.0041a99a
mov dword [ebx + 0x4c], eax
mov esi, dword [ebx + 0xc]
mov dword [esp], ebx
call fcn.004166a8
cmp eax, dword [ebx + 0x4c]
je 0x415f13
mov dword [ebx + 0x38], 0xfffffffd
jmp 0x415f50
mov dword [esp], ebx
call fcn.004166a8
mov dword [esp], ebx
call fcn.00415ac0
cmp dword [ebx + 0x38], 0
jne 0x415f66
mov dword [esp], ebx
call fcn.00418ae0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0041a99a
mov dword [ebx + 0x4c], eax
cmp dword [ebx + 0x38], 0
jne 0x415f66
cmp dword [ebx + 0x3c], 0
jne 0x415f66
cmp dword [ebx + 0x10], 0
jne 0x415dc9
mov eax, dword [ebx + 0xc]
sub eax, esi
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x4c]
mov dword [esp], eax
call fcn.0041a99a
mov dword [ebx + 0x4c], eax
cmp dword [ebx + 0x10], edi
jne 0x415fa0
mov eax, dword [ebx + 0x38]
cmp eax, 0xfffffffd
sete dl
cmp eax, 0xffffffff
sete al
or eax, edx
mov edx, 0xffffffff
test al, 1
jne 0x415fa5
mov edx, edi
sub edx, dword [ebx + 0x10]
mov eax, edx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret