Function at 0x494130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x5c9550]
xor eax, ebp
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xa0], 1
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x94], 0x7fe0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x4941b2
or eax, 0xffffffff
jmp 0x49448a
mov eax, dword [ebp - 0x94]
add eax, 0x20
push eax
call fcn.00452e85
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4941d5
or eax, 0xffffffff
jmp 0x49448a
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a3b45
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
push 0x58
push 1
lea eax, [ebp - 0x90]
push eax
call fcn.004544a3
add esp, 0x10
movzx ecx, word [ebp - 0x8a]
mov dword [ebp - 0x24], ecx
push 2
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.004a3b45
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.004a3a5f
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x28], 0
mov ecx, 1
test ecx, ecx
je 0x49447b
mov eax, dword [ebp - 0x94]
cdq
mov ecx, dword [ebp - 0x9c]
push ecx
mov ecx, dword [ebp - 0xa0]
push ecx
push edx
push eax
call fcn.004579f0
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov eax, dword [ebp - 0x14]
sbb eax, edx
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jg 0x494352
jl 0x49428e
cmp dword [ebp - 0xa8], 0
jae 0x494352
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a3b45
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x94]
add eax, 0x20
push eax
push 1
mov ecx, dword [ebp - 8]
push ecx
call fcn.004544a3
add esp, 0x10
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x94]
add edx, 0x20
cmp dword [ebp - 4], edx
je 0x4942d8
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
jmp 0x4942e4
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x94]
mov dword [ebp - 0x28], ecx
push 0
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 1
push 0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
cdq
push edx
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00493a90
add esp, 0x30
mov byte [ebp - 0x2d], al
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jae 0x494323
mov byte [ebp - 0x2d], 0
movzx ecx, byte [ebp - 0x2d]
test ecx, ecx
je 0x494348
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov dword [ebp - 0x2c], 0
jmp 0x49447b
push 0
mov eax, dword [ebp - 0x94]
cdq
mov ecx, dword [ebp - 0x9c]
push ecx
mov ecx, dword [ebp - 0xa0]
push ecx
push edx
push eax
call fcn.004579f0
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov eax, dword [ebp - 0x14]
sbb eax, edx
push eax
push ecx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a3b45
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x94]
add eax, 0x20
push eax
push 1
mov ecx, dword [ebp - 8]
push ecx
call fcn.004544a3
add esp, 0x10
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x94]
add edx, 0x20
cmp dword [ebp - 4], edx
je 0x4943c0
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
jmp 0x4943cc
mov ecx, dword [ebp - 0x28]
add ecx, dword [ebp - 0x94]
mov dword [ebp - 0x28], ecx
push 0
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
push 1
push 0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
cdq
push edx
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00493a90
add esp, 0x30
mov byte [ebp - 0x2d], al
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jae 0x49440b
mov byte [ebp - 0x2d], 0
movzx ecx, byte [ebp - 0x2d]
test ecx, ecx
je 0x494458
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0x94]
cdq
push edx
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
mov edx, dword [ebp - 0xa0]
push edx
call fcn.004579f0
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov eax, dword [ebp - 0x14]
sbb eax, edx
add ecx, dword [ebp - 0x20]
adc eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov dword [edx + 4], eax
mov dword [ebp - 0x2c], 0
jmp 0x49447b
mov eax, dword [ebp - 0xa0]
add eax, 1
mov ecx, dword [ebp - 0x9c]
adc ecx, 0
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], ecx
jmp 0x494233
mov edx, dword [ebp - 8]
push edx
call fcn.00452f4f
add esp, 4
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.00452910
mov esp, ebp
pop ebp
ret