Function at 0x49eaa7
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x10
mov eax, 0x519c1e
call fcn.004db273
mov eax, dword [ebp + 8]
xor ecx, ecx
push ecx
push 0x80
push 3
push ecx
push ecx
push 0x80000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x1c], 0x533e78
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
and dword [ebp - 4], 0
cmp ebx, 0xffffffff
je 0x49eaf7
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49eb04
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x49ec9d
and dword [ebp - 0x10], 0
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.00495766
mov esi, dword [ebp - 0x10]
test al, al
jne 0x49eb27
push 8
pop edi
jmp 0x49ec8e
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49eb4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x49ec8e
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
call fcn.0040d53b
mov eax, dword [ebp + 8]
test eax, eax
je 0x49ec89
mov edi, dword [ebp + 0xc]
mov byte [eax + esi], 0
push str.utf_8
push dword [edi]
call fcn.004e4d98
pop ecx
pop ecx
test eax, eax
jne 0x49eb83
push 0xfde9
jmp 0x49ec7f
push str.utf_16
push dword [edi]
call fcn.004e4d98
pop ecx
pop ecx
test eax, eax
jne 0x49ebf4
mov edi, dword [ebp + 8]
shr edi, 1
call fcn.0040d266
push eax
push edi
push esi
lea ecx, [ebp + 0x10]
call fcn.00406f36
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx]
sub ecx, 0x10
mov dword [ebp + 0xc], ecx
lea edi, [eax - 0x10]
cmp edi, ecx
je 0x49ebef
cmp dword [ecx + 0xc], 0
jl 0x49ebe4
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x49ebe4
mov ecx, edi
call fcn.00406f9b
mov ecx, dword [ebp + 0xc]
mov edi, eax
call fcn.0040d570
lea eax, [edi + 0x10]
mov dword [ebx], eax
jmp 0x49ebef
push dword [eax - 0xc]
mov ecx, ebx
push eax
call fcn.0040d7d9
lea ecx, [ebp + 0x10]
jmp 0x49ec72
push str.ISO_8859_1
push dword [edi]
call fcn.004e4d98
pop ecx
pop ecx
test eax, eax
jne 0x49ec0d
push 0x6faf
jmp 0x49ec7f
push str.US_ASCII
push dword [edi]
call fcn.004e4d98
pop ecx
pop ecx
test eax, eax
jne 0x49ec7d
push dword [ebp + 8]
lea ecx, [ebp + 0xc]
push esi
call fcn.004a0994
mov byte [ebp - 4], 4
mov edx, dword [eax]
mov ecx, dword [ebx]
sub ecx, 0x10
mov dword [ebp + 0x10], ecx
lea edi, [edx - 0x10]
cmp edi, ecx
je 0x49ec6f
cmp dword [ecx + 0xc], 0
jl 0x49ec64
mov eax, dword [edi]
cmp eax, dword [ecx]
jne 0x49ec64
mov ecx, edi
call fcn.00406f9b
mov ecx, dword [ebp + 0x10]
mov edi, eax
call fcn.0040d570
lea eax, [edi + 0x10]
mov dword [ebx], eax
jmp 0x49ec6f
push dword [edx - 0xc]
mov ecx, ebx
push edx
call fcn.0040d7d9
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0040d05a
jmp 0x49ec89
push 0
mov edx, ebx
mov ecx, esi
call fcn.00476c30
pop ecx
mov ebx, dword [ebp - 0x14]
xor edi, edi
push esi
mov byte [ebp - 4], 0
call fcn.004dadb0
and dword [ebp - 0x10], 0
pop ecx
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], 0x533e78
test ebx, ebx
je 0x49ecb7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x18], 0
mov eax, edi
call fcn.004db23c
ret 0xc