Function at 0x493fb2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [esp + 4], 0x5035ed
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x49402f
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._1963_:_Unable_to_open_file__s.
mov dword [esp + 8], str.is_ascii_utf8
mov dword [esp + 4], 0xb5b
mov dword [esp], str.shared_file_op.c
call dbg._mdebug1
mov dword [ebp - 0x10], 1
jmp 0x49466c
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._fgetpos
mov dword [esp + 4], 1
mov dword [esp], 0x10001
call sym._calloc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4940f0
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x503710
mov dword [esp + 8], str.is_ascii_utf8
mov dword [esp + 4], 0xb62
mov dword [esp], str.shared_file_op.c
call dbg._merror_exit
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0xc]
jae 0x494110
add dword [ebp - 0x18], 1
mov dword [ebp - 0x20], 0
jmp 0x4940e1
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
add eax, edx
movzx eax, byte [eax]
test al, al
jns 0x4940dd
mov dword [ebp - 0xc], 0
jmp 0x4940ea
add dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 0xffff
jle 0x4940c5
cmp dword [ebp - 0xc], 0
je 0x494113
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x10000
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._fgets
test eax, eax
jne 0x4940aa
jmp 0x494114
nop
jmp 0x494114
nop
cmp dword [ebp - 0xc], 0
jne 0x494668
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._fsetpos
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x2c], 0
jmp 0x494637
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jae 0x49466b
add dword [ebp - 0x1c], 1
movzx eax, byte [ebp - 0x3c]
cmp al, 0xef
jne 0x4941e6
movzx eax, byte [ebp - 0x3b]
cmp al, 0xbb
jne 0x4941e6
movzx eax, byte [ebp - 0x3a]
cmp al, 0xbf
jne 0x4941e6
mov dword [esp + 8], 1
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._fseek
test eax, eax
je 0x494602
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._1116_:_Could_not_set_position_in_file__s_due_to____d____s__.
mov dword [esp + 8], str.is_ascii_utf8
mov dword [esp + 4], 0xb8f
mov dword [esp], str.shared_file_op.c
call dbg._merror
jmp 0x494602
movzx eax, byte [ebp - 0x3c]
cmp al, 9
je 0x494212
movzx eax, byte [ebp - 0x3c]
cmp al, 0xa
je 0x494212
movzx eax, byte [ebp - 0x3c]
cmp al, 0xd
je 0x494212
movzx eax, byte [ebp - 0x3c]
cmp al, 0x1f
jbe 0x49428d
movzx eax, byte [ebp - 0x3c]
cmp al, 0x7e
ja 0x49428d
mov eax, 1
sub eax, dword [ebp - 0x2c]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._fseek
test eax, eax
je 0x494605
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._1116_:_Could_not_set_position_in_file__s_due_to____d____s__.
mov dword [esp + 8], str.is_ascii_utf8
mov dword [esp + 4], 0xb97
mov dword [esp], str.shared_file_op.c
call dbg._merror
jmp 0x494605
movzx eax, byte [ebp - 0x3c]
cmp al, 0xc1
jbe 0x49432c
movzx eax, byte [ebp - 0x3c]
cmp al, 0xdf
ja 0x49432c
movzx eax, byte [ebp - 0x3b]
test al, al
jns 0x49432c
movzx eax, byte [ebp - 0x3b]
cmp al, 0xbf
ja 0x49432c
mov dword [esp + 8], 1
mov dword [esp + 4], 0xfffffffe
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._fseek
test eax, eax
je 0x494608
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._1116_:_Could_not_set_position_in_file__s_due_to____d____s__.
mov dword [esp + 8], str.is_ascii_utf8
mov dword [esp + 4], 0xba0
mov dword [esp], str.shared_file_op.c
call dbg._merror
jmp 0x494608
movzx eax, byte [ebp - 0x3c]
cmp al, 0xe0
jne 0x4943d7
movzx eax, byte [ebp - 0x3b]
cmp al, 0x9f
jbe 0x4943d7
movzx eax, byte [ebp - 0x3b]
cmp al, 0xbf
ja 0x4943d7
movzx eax, byte [ebp - 0x3a]
test al, al
jns 0x4943d7
movzx eax, byte [ebp - 0x3a]
cmp al, 0xbf
ja 0x4943d7
mov dword [esp + 8], 1
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._fseek
test eax, eax
je 0x49460b
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._1116_:_Could_not_set_position_in_file__s_due_to____d____s__.
mov dword [esp + 8], str.is_ascii_utf8
mov dword [esp + 4], 0xbab
mov dword [esp], str.shared_file_op.c
call dbg._merror
jmp 0x49460b
movzx eax, byte [ebp - 0x3c]
cmp al, 0xe0
jbe 0x4943e7
movzx eax, byte [ebp - 0x3c]
cmp al, 0xec
jbe 0x4943fb
movzx eax, byte [ebp - 0x3c]
cmp al, 0xee
je 0x4943fb
movzx eax, byte [ebp - 0x3c]
cmp al, 0xef
jne 0x49449a
movzx eax, byte [ebp - 0x3b]
test al, al
jns 0x49449a
movzx eax, byte [ebp - 0x3b]
cmp al, 0xbf
ja 0x49449a
movzx eax, byte [ebp - 0x3a]
test al, al
jns 0x49449a
movzx eax, byte [ebp - 0x3a]
cmp al, 0xbf
ja 0x49449a
mov dword [esp + 8], 1
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._fseek
test eax, eax
je 0x49460e
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._1116_:_Could_not_set_position_in_file__s_due_to____d____s__.
mov dword [esp + 8], str.is_ascii_utf8
mov dword [esp + 4], 0xbb7
mov dword [esp], str.shared_file_op.c
call dbg._merror
jmp 0x49460e
movzx eax, byte [ebp - 0x3c]
cmp al, 0xed
jne 0x494545
movzx eax, byte [ebp - 0x3b]
test al, al
jns 0x494545
movzx eax, byte [ebp - 0x3b]
cmp al, 0x9f
ja 0x494545
movzx eax, byte [ebp - 0x3a]
test al, al
jns 0x494545
movzx eax, byte [ebp - 0x3a]
cmp al, 0xbf
ja 0x494545
mov dword [esp + 8], 1
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._fseek
test eax, eax
je 0x494611
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call sym._strerror
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._1116_:_Could_not_set_position_in_file__s_due_to____d____s__.
mov dword [esp + 8], str.is_ascii_utf8
mov dword [esp + 4], 0xbc3
mov dword [esp], str.shared_file_op.c
call dbg._merror
jmp 0x494611
movzx eax, byte [ebp - 0x3c]
cmp al, 0xf0
jne 0x494581
movzx eax, byte [ebp - 0x3b]
cmp al, 0x8f
jbe 0x494581
movzx eax, byte [ebp - 0x3b]
cmp al, 0xbf
ja 0x494581
movzx eax, byte [ebp - 0x3a]
test al, al
jns 0x494581
movzx eax, byte [ebp - 0x3a]
cmp al, 0xbf
ja 0x494581
movzx eax, byte [ebp - 0x39]
test al, al
jns 0x494581
movzx eax, byte [ebp - 0x39]
cmp al, 0xbf
jbe 0x494614
movzx eax, byte [ebp - 0x3c]
cmp al, 0xf0
jbe 0x4945c1
movzx eax, byte [ebp - 0x3c]
cmp al, 0xf3
ja 0x4945c1
movzx eax, byte [ebp - 0x3b]
test al, al
jns 0x4945c1
movzx eax, byte [ebp - 0x3b]
cmp al, 0xbf
ja 0x4945c1
movzx eax, byte [ebp - 0x3a]
test al, al
jns 0x4945c1
movzx eax, byte [ebp - 0x3a]
cmp al, 0xbf
ja 0x4945c1
movzx eax, byte [ebp - 0x39]
test al, al
jns 0x4945c1
movzx eax, byte [ebp - 0x39]
cmp al, 0xbf
jbe 0x494617
movzx eax, byte [ebp - 0x3c]
cmp al, 0xf4
jne 0x4945f9
movzx eax, byte [ebp - 0x3b]
test al, al
jns 0x4945f9
movzx eax, byte [ebp - 0x3b]
cmp al, 0x8f
ja 0x4945f9
movzx eax, byte [ebp - 0x3a]
test al, al
jns 0x4945f9
movzx eax, byte [ebp - 0x3a]
cmp al, 0xbf
ja 0x4945f9
movzx eax, byte [ebp - 0x39]
test al, al
jns 0x4945f9
movzx eax, byte [ebp - 0x39]
cmp al, 0xbf
jbe 0x49461a
mov dword [ebp - 0x10], 1
jmp 0x49466c
nop
jmp 0x49461b
nop
jmp 0x49461b
nop
jmp 0x49461b
nop
jmp 0x49461b
nop
jmp 0x49461b
nop
jmp 0x49461b
nop
jmp 0x49461b
nop
jmp 0x49461b
nop
mov dword [esp + 8], 4
mov dword [esp + 4], 0
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call sym._memset
nop
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 1
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x494143
jmp 0x49466c
nop
jmp 0x49466c
nop
cmp dword [ebp - 0x24], 0
je 0x49467d
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call sym._fclose
cmp dword [ebp - 0x14], 0
je 0x494695
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 4]
leave
ret