Function at 0x495e60
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, eax
mov eax, dword [esi + 0x14]
test eax, eax
push edi
jne 0x495e89
cmp dword [esi + 4], eax
setne cl
test cl, cl
jne 0x495e85
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
test eax, eax
je 0x495e9b
mov ecx, dword [esi + 0x1c]
xor eax, eax
cmp eax, ecx
sbb eax, eax
not eax
and eax, ecx
mov dword [esi + 0x18], eax
jmp 0x495eab
mov ecx, dword [esi + 4]
push 0
push 0
push ecx
call fcn.006081d8
add esp, 0xc
call fcn.00410290
mov ebx, eax
xor ebp, ebp
mov edx, ebx
or edx, ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
jne 0x495ecd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
xor edi, edi
lea eax, [esp + 0x20]
call fcn.00487150
test ebp, ebp
ja 0x495ef2
jb 0x495ee6
cmp ebx, 0x41c2
jae 0x495ef2
mov edi, dword [esp + 0x2c]
mov ebp, ebx
mov dword [esp + 0x34], edi
jmp 0x495eff
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x2c]
mov ebp, 0x41c2
test edi, edi
ja 0x495f0b
cmp ebx, 0x8384
jbe 0x495f1d
mov dword [esp + 0x18], 0x41c2
mov dword [esp + 0x1c], 0
jmp 0x495f2f
mov eax, ebx
sub eax, ebp
mov dword [esp + 0x18], eax
mov eax, edi
sbb eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push 0
lea eax, [eax + ebp + 4]
lea ecx, [esp + 0x24]
call fcn.00487200
mov eax, dword [esp + 0x24]
mov dword [eax], ebx
cmp dword [esi + 0x14], 0
lea ecx, [eax + 4]
mov dword [esp + 0x14], ecx
je 0x495fe3
mov eax, ebp
mov ebx, ecx
mov edi, esi
call fcn.00410220
cmp eax, ebp
jne 0x495fcb
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
add dword [esp + 0x14], ebp
sub ebx, ebp
sbb edi, dword [esp + 0x34]
mov ecx, ebx
mov eax, edi
or ecx, eax
je 0x4960a2
mov edi, dword [esp + 0x18]
sub ebx, edi
sbb eax, dword [esp + 0x1c]
mov edx, ebx
or edx, eax
je 0x49603f
cmp dword [esi + 0x14], 0
je 0x496030
mov eax, dword [esi + 0x18]
cmp eax, 0xffffffff
je 0x49603f
add ebx, eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esi + 0x18], ebx
jbe 0x495fc6
mov eax, ebx
mov dword [esi + 0x18], eax
jmp 0x49603f
lea esi, [esp + 0x20]
mov edi, 2
call fcn.00487190
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, dword [esi + 4]
test eax, eax
je 0x495fff
push eax
push 1
push ebp
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x495fff
xor eax, eax
jmp 0x49600d
cmp dword [esi + 4], 0
mov eax, 2
jne 0x49600d
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x495f78
mov edi, dword [esp + 0x10]
lea esi, [esp + 0x20]
call fcn.00487190
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov eax, dword [esi + 4]
push 1
push ebx
push eax
call fcn.006081d8
add esp, 0xc
cmp dword [esi + 0x14], 0
je 0x496066
mov ebx, dword [esp + 0x14]
mov eax, edi
mov edi, esi
call fcn.00410220
cmp eax, dword [esp + 0x18]
jne 0x495fcb
mov dword [esp + 0x10], 0
jmp 0x4960a2
mov eax, dword [esi + 4]
test eax, eax
je 0x496086
mov ecx, dword [esp + 0x14]
push eax
push 1
push edi
push ecx
call fcn.0060860a
add esp, 0x10
test eax, eax
je 0x496086
xor esi, esi
jmp 0x496096
cmp dword [esi + 4], 0
je 0x496093
mov esi, 2
jmp 0x496096
mov esi, dword [esi + 0xc]
test esi, esi
mov dword [esp + 0x10], esi
jne 0x496019
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x20]
call fcn.00495ce0
lea esi, [esp + 0x20]
call fcn.00487190
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret