Function at 0x494d60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x632b20]
xor eax, ebp
mov dword [ebp - 0x24], eax
xor eax, eax
mov word [ebp - 0x1c], ax
cmp dword [ebp + 0x10], 0
jne 0x494d86
xor eax, eax
jmp 0x495011
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x128]
push ecx
call fcn.00494d10
add esp, 0x10
push 0x5ecaf0
lea edx, [ebp - 0x128]
push edx
call fcn.005cd6b5
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x494e6b
push 0x6080a0
call fcn.005cd9fc
add esp, 4
mov eax, dword [ebp + 0xc]
push eax
push 0x6080a0
push str._s_d
lea ecx, [ebp - 0x228]
push ecx
call fcn.005cc4f5
add esp, 0x10
lea edx, [ebp - 0x228]
push edx
call fcn.005cd9fc
add esp, 4
cmp dword [ebp + 0xc], 0
jle 0x494e31
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x6080a0
push str._s_d_d
lea edx, [ebp - 0x228]
push edx
call fcn.005cc4f5
add esp, 0x14
lea eax, [ebp - 0x228]
push eax
call fcn.005cd9fc
add esp, 4
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
lea edx, [ebp - 0x128]
push edx
call fcn.00495020
add esp, 0x14
test eax, eax
jge 0x494e5c
or eax, 0xffffffff
jmp 0x495011
mov eax, 1
jmp 0x495011
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.005cdc9c
add esp, 0xc
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005ce115
add esp, 4
mov byte [ebp - 0x18], al
mov edx, dword [ebp - 0xc]
push edx
call fcn.005ce115
add esp, 4
mov byte [ebp - 0x17], al
mov eax, dword [ebp - 0xc]
push eax
call fcn.005ce115
add esp, 4
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], 0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005ce115
add esp, 4
mov byte [ebp - 0x1d], al
mov edx, dword [ebp - 0xc]
push edx
push 1
push 4
lea eax, [ebp - 0x14]
push eax
call fcn.005cdfc1
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
push 1
push 4
lea edx, [ebp - 0x10]
push edx
call fcn.005cdfc1
add esp, 0x10
mov eax, dword [ebp - 0xc]
push eax
push 1
push 4
lea ecx, [ebp - 4]
push ecx
call fcn.005cdfc1
add esp, 0x10
mov edx, dword [ebp - 0xc]
push edx
push 1
push 4
lea eax, [ebp - 8]
push eax
call fcn.005cdfc1
add esp, 0x10
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005cd459
add esp, 4
mov edx, dword [ebp + 0x1c]
cmp edx, dword [ebp - 0x14]
jne 0x494fe7
mov eax, dword [ebp + 0x20]
cmp eax, dword [ebp - 0x10]
jne 0x494fe7
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 4]
jne 0x494fe7
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp - 8]
jne 0x494fe7
mov dword [ebp - 0x22c], 0x5ecb08
lea eax, [ebp - 0x18]
mov dword [ebp - 0x230], eax
mov ecx, dword [ebp - 0x230]
mov dl, byte [ecx]
mov byte [ebp - 0x231], dl
mov eax, dword [ebp - 0x22c]
cmp dl, byte [eax]
jne 0x494fb8
cmp byte [ebp - 0x231], 0
je 0x494fac
mov ecx, dword [ebp - 0x230]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x232], dl
mov eax, dword [ebp - 0x22c]
cmp dl, byte [eax + 1]
jne 0x494fb8
add dword [ebp - 0x230], 2
add dword [ebp - 0x22c], 2
cmp byte [ebp - 0x232], 0
jne 0x494f5a
mov dword [ebp - 0x238], 0
jmp 0x494fc3
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp - 0x238]
mov dword [ebp - 0x23c], edx
cmp dword [ebp - 0x23c], 0
jne 0x494fe7
movsx eax, byte [ebp - 0x1d]
cmp eax, 1
jne 0x494fe7
cmp dword [ebp + 0xc], 2
jne 0x49500f
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
lea edx, [ebp - 0x128]
push edx
call fcn.00495020
add esp, 0x14
test eax, eax
jge 0x49500f
or eax, 0xffffffff
jmp 0x495011
xor eax, eax
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.005cbcfe
mov esp, ebp
pop ebp
ret