Function at 0x495e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0xc], 0
je 0x495f1c
push 2
push 0
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
call eax
neg eax
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xorpd xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
call eax
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
call eax
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x495ef1
or eax, 0xffffffff
jmp 0x4960a9
push 0
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
call eax
push edx
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00496300
add esp, 0x10
test eax, eax
je 0x495f1a
or eax, 0xffffffff
jmp 0x4960a9
jmp 0x495f3a
push 2
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00496300
add esp, 0x10
test eax, eax
je 0x495f3a
or eax, 0xffffffff
jmp 0x4960a9
mov eax, dword [ebp + 8]
push eax
call fcn.00496430
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0xffff
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x14]
jbe 0x495f5e
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
push 0x404
call fcn.0046756d
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x495f7c
or eax, 0xffffffff
jmp 0x4960a9
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0xc], 4
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jae 0x496094
mov ecx, dword [ebp - 0xc]
add ecx, 0x400
cmp ecx, dword [ebp - 0x10]
jbe 0x495fac
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
jmp 0x495fb7
mov eax, dword [ebp - 0xc]
add eax, 0x400
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x18]
cmp edx, 0x404
jbe 0x495fd7
mov dword [ebp - 0x20], 0x404
jmp 0x495fe0
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
push 0
mov edx, dword [ebp - 0x18]
xor eax, eax
push eax
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00496300
add esp, 0x10
test eax, eax
je 0x496004
jmp 0x496094
mov edx, dword [ebp + 8]
push edx
push 1
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00496220
add esp, 0x10
cmp eax, 1
je 0x496021
jmp 0x496094
mov edx, dword [ebp - 0x24]
sub edx, 3
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 0x30], 0
jl 0x496087
mov edx, dword [ebp - 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
cmp eax, 0x50
jne 0x496085
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx + 1]
cmp edx, 0x4b
jne 0x496085
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
movzx ecx, byte [eax + 2]
cmp ecx, 5
jne 0x496085
mov edx, dword [ebp - 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx + 3]
cmp eax, 6
jne 0x496085
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
jmp 0x496087
jmp 0x49602a
cmp dword [ebp - 0x1c], 0
je 0x49608f
jmp 0x496094
jmp 0x495f8a
cmp dword [ebp - 8], 0
je 0x4960a6
mov edx, dword [ebp - 8]
push edx
call fcn.00465474
add esp, 4
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret