Function at 0x490b40
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1054
call fcn.005865a0
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x1050], eax
push ebx
push ebp
or eax, 0xffffffff
xor ebp, ebp
xor ecx, ecx
cmp dword [esp + 0x1060], ebp
push esi
push edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], ecx
jle 0x490e4c
mov eax, dword [esp + 0x106c]
mov dword [esp + 0x24], eax
jmp 0x490b93
xor ebp, ebp
mov eax, dword [esp + 0x24]
cmp word [eax], 0xd
jne 0x490e35
movzx eax, word [edx + ecx*2]
cmp ax, word [edx + ecx*2 + 2]
je 0x490e35
movsx ebx, ax
add ebx, edx
je 0x490e35
mov eax, dword [esp + 0x1070]
cmp eax, ebp
je 0x490bd0
cmp byte [ecx + eax], 0
je 0x490e35
cmp byte [ebx + 0x12], 0
mov ecx, dword [esp + 0x1074]
lea edx, [esp + 0x1c]
push edx
push ebp
lea eax, [esp + 0x34]
push 4
push eax
seta byte [esp + 0x23]
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x41], 1
mov byte [esp + 0x40], 1
call fcn.004238c0
mov edi, eax
add esp, 0x10
cmp edi, ebp
jne 0x490ec9
cmp byte [esp + 0x13], 0
je 0x490c41
mov ecx, dword [ebx]
mov dword [esp + 0x4c], ecx
mov edx, dword [ebx + 4]
mov dword [esp + 0x50], edx
mov eax, dword [ebx + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x58], ecx
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x5c], edx
mov esi, dword [ebx]
mov dword [esp + 0x14], esi
jmp 0x490cd6
cmp dword [ebx + 4], 0xffffffff
lea eax, [ebx + 4]
jne 0x490c8f
movzx eax, word [ebx + 0x10]
push eax
push ebp
mov dword [esp + 0x3c], 1
call fcn.00424ca0
mov edi, eax
add esp, 8
mov dword [esp + 0x38], edi
cmp edi, ebp
je 0x490e67
push 0x5a8528
push edi
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, ebp
jne 0x490cd2
mov esi, 0xe21
jmp 0x490e7b
lea ecx, [esp + 0x20]
push ecx
push ebp
push 2
push eax
mov dword [esp + 0x44], ebp
call fcn.004238c0
mov edi, eax
add esp, 0x10
cmp edi, ebp
jne 0x490ec9
mov eax, dword [esp + 0x20]
push ebp
push 1
lea edx, [ebx + 0xc]
push edx
push eax
call fcn.00423900
mov edi, eax
add esp, 0x10
cmp edi, ebp
jne 0x490ec9
mov ecx, dword [ebx]
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x14]
lea eax, [ebx + 0xc]
push eax
xor edx, edx
push 3
lea ecx, [esp + 0x4c]
mov word [esp + 0x50], dx
mov edx, dword [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x54], ebp
call fcn.00423900
mov edi, eax
add esp, 0x10
cmp edi, ebp
jne 0x490ec9
cmp byte [esp + 0x13], 0
je 0x490d48
test esi, esi
je 0x490e08
cmp esi, 0xffa
jbe 0x490d1f
mov esi, 0xffa
lea eax, [esp + 0x60]
push eax
push esi
lea ecx, [esp + 0x54]
push ebp
push ecx
call fcn.0043c2e0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x490ec9
add ebp, esi
sub dword [esp + 0x14], esi
jmp 0x490dc9
cmp dword [esp + 0x34], 0
je 0x490d86
mov edx, dword [esp + 0x18]
push edx
push 0x1000
lea eax, [esp + 0x68]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fread]
mov esi, eax
add esp, 0x10
add ebp, esi
test esi, esi
jne 0x490dc9
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov dword [ebx], ebp
jmp 0x490e08
test esi, esi
je 0x490df1
cmp esi, 0x1000
jbe 0x490d97
mov esi, 0x1000
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push esi
lea edx, [esp + 0x68]
push edx
push eax
call fcn.00423d00
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x490ec9
cmp dword [esp + 0x3c], esi
jne 0x490e6e
sub dword [esp + 0x14], esi
add ebp, esi
mov edx, dword [esp + 0x1c]
push 0
push esi
lea ecx, [esp + 0x68]
push ecx
push edx
call fcn.00423e80
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x490ec9
mov esi, dword [esp + 0x14]
jmp 0x490d03
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004240d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x490ec9
mov edx, dword [esp + 0x1c]
push edx
call fcn.004240d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x490ec9
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x30]
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x28]
add dword [esp + 0x24], 6
inc ecx
cmp ecx, dword [esp + 0x1068]
mov dword [esp + 0x28], ecx
jl 0x490b91
xor eax, eax
mov ecx, dword [esp + 0x1060]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00586584
add esp, 0x1054
ret
mov esi, 0x848
jmp 0x490e77
mov edi, dword [esp + 0x38]
mov esi, 0x849
mov eax, dword [esp + 0x18]
test eax, eax
je 0x490e89
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x490e9b
push eax
call fcn.004240d0
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x490ead
push eax
call fcn.004240d0
add esp, 4
call dword [sym.imp.MSVCR90.dll__errno]
mov edx, dword [eax]
push edx
push edi
push 0x1fe3
push esi
call fcn.00406f10
add esp, 0x10
mov eax, esi
jmp 0x490e4e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x490edb
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x490eed
push eax
call fcn.004240d0
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x490eff
push eax
call fcn.004240d0
add esp, 4
push 0x1fe3
push 0
call fcn.00406f10
add esp, 8
mov eax, edi
jmp 0x490e4e