Function at 0x493d30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push esi
push 5
push ecx
push 0
mov dword [ebp - 0xc4], fcn.00494d00
mov dword [ebp - 0xc0], 0x494d50
mov dword [ebp - 0xbc], 0x494d70
mov dword [ebp - 0xb8], 0x494d90
mov dword [ebp - 0xb4], fcn.00494da0
mov dword [ebp - 0xb0], 0x494df0
mov dword [ebp - 0xac], 0x494e00
mov dword [ebp - 0xa8], 0
call fcn.00494d00
mov esi, eax
add esp, 0xc
mov dword [ebp - 0xa4], esi
test esi, esi
jne 0x493da8
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 2
push 0
push esi
mov ebx, 0xffff
mov dword [ebp - 0x10], 0
call fcn.00689d8b
add esp, 0xc
test eax, eax
je 0x493dce
xor ebx, ebx
jmp 0x493eb6
push esi
call fcn.0068a432
cmp eax, 0xffff
mov dword [ebp - 8], eax
push 0x404
cmovb ebx, eax
mov dword [ebp - 4], ebx
call fcn.00695890
mov edi, eax
add esp, 8
test edi, edi
jne 0x493dfc
xor ebx, ebx
jmp 0x493eb6
mov esi, 4
cmp ebx, esi
jbe 0x493ea4
mov ecx, 0x404
nop
lea eax, [esi + 0x400]
mov esi, ebx
cmp eax, ebx
push 0
cmovbe esi, eax
mov eax, dword [ebp - 8]
sub eax, esi
mov ebx, esi
push eax
push dword [ebp - 0xa4]
cmp esi, 0x404
mov dword [ebp - 0xc], eax
cmova ebx, ecx
call fcn.00689d8b
add esp, 0xc
test eax, eax
jne 0x493ea4
push dword [ebp - 0xa4]
push ebx
push 1
push edi
call fcn.00689979
add esp, 0x10
cmp eax, ebx
jne 0x493ea4
lea ecx, [ebx - 3]
test ecx, ecx
jle 0x493e94
lea eax, [edi + 3]
add eax, ecx
mov edx, ecx
lea eax, [eax - 1]
dec ecx
cmp byte [eax - 3], 0x50
jne 0x493e84
cmp byte [edx + edi], 0x4b
jne 0x493e84
cmp byte [eax - 1], 5
jne 0x493e84
cmp byte [eax], 6
je 0x493e8a
test ecx, ecx
jg 0x493e67
jmp 0x493e94
mov eax, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp - 0x10], eax
jne 0x493ea4
mov ebx, dword [ebp - 4]
mov ecx, 0x404
cmp esi, ebx
jb 0x493e10
push edi
call fcn.00694690
mov ebx, dword [ebp - 0x10]
add esp, 4
mov esi, dword [ebp - 0xa4]
mov edi, ebx
neg edi
push 0
sbb edi, edi
push ebx
push esi
neg edi
push 0
dec edi
call fcn.00494da0
or ecx, 0xffffffff
mov edx, esi
test eax, eax
lea eax, [ebp - 4]
push eax
cmovne edi, ecx
lea ecx, [ebp - 0xc4]
call fcn.00493c00
test eax, eax
lea ecx, [ebp - 0xc4]
mov eax, 0xffffffff
mov edx, esi
cmovne edi, eax
lea eax, [ebp - 8]
push eax
call fcn.00493b50
test eax, eax
lea ecx, [ebp - 0xc4]
mov eax, 0xffffffff
mov edx, esi
cmovne edi, eax
lea eax, [ebp - 0xc]
push eax
call fcn.00493b50
test eax, eax
lea ecx, [ebp - 0xc4]
mov eax, 0xffffffff
mov edx, esi
cmovne edi, eax
lea eax, [ebp - 0xa0]
push eax
call fcn.00493b50
mov esi, dword [ebp - 0xa4]
lea ecx, [ebp - 0xc4]
test eax, eax
mov edx, esi
mov eax, 0xffffffff
cmovne edi, eax
lea eax, [ebp - 4]
push eax
call fcn.00493b50
add esp, 0x24
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xa0]
jne 0x493f7c
cmp dword [ebp - 0xc], 0
jne 0x493f7c
cmp dword [ebp - 8], 0
je 0x493f81
mov edi, 0xffffff99
lea eax, [ebp - 0x84]
mov edx, esi
push eax
lea ecx, [ebp - 0xc4]
call fcn.00493c00
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0xc4]
test eax, eax
mov esi, 0xffffffff
lea eax, [ebp - 0x80]
push eax
cmovne edi, esi
call fcn.00493c00
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0xc4]
test eax, eax
lea eax, [ebp - 0x9c]
push eax
cmovne edi, esi
call fcn.00493b50
mov ecx, dword [ebp - 0x84]
add esp, 0xc
mov edx, dword [ebp - 0x80]
test eax, eax
cmovne edi, esi
lea eax, [ecx + edx]
cmp ebx, eax
jb 0x494064
test edi, edi
jne 0x494064
mov eax, ebx
mov dword [ebp - 0x88], ebx
sub eax, ecx
mov dword [ebp - 0x28], edi
sub eax, edx
mov dword [ebp - 0x24], edi
push 0xb4
mov dword [ebp - 0x98], eax
call fcn.00695890
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x49405b
push 0
push 0
sub esp, 8
lea esi, [ebp - 0xc4]
mov ecx, 0x2d
lea eax, [ebx + 0x98]
mov edi, ebx
lea edx, [ebx + 0x48]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x44]
push 0
mov dword [ebx + 0x34], ecx
mov ecx, ebx
push 0
push eax
mov dword [ebx + 0x30], 0
call fcn.00494090
add esp, 0x1c
neg eax
sbb eax, eax
inc eax
mov dword [ebx + 0x38], eax
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
call dword [ebp - 0xb0]
add esp, 8
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret