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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6125
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4e4050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x20], 0x4c2580
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x42e81d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x42eaa3
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42e83a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x42eaa3
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.00408cb0
mov esi, dword [ebp - 0x10]
test al, al
jne 0x42e862
mov edi, 8
jmp 0x42ea8f
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42e889
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x42ea8f
mov ebx, dword [ebp + 0x10]
mov ecx, ebx
call fcn.00403720
mov eax, dword [ebp + 8]
test eax, eax
je 0x42ea8a
mov edi, dword [ebp + 0xc]
mov byte [eax + esi], 0
push str.utf_8
push dword [edi]
call fcn.004879a3
add esp, 8
test eax, eax
jne 0x42e8c2
push 0xfde9
jmp 0x42ea7e
push str.utf_16
push dword [edi]
call fcn.004879a3
add esp, 8
test eax, eax
jne 0x42e98b
mov ebx, dword [ebp + 8]
shr ebx, 1
call fcn.00404500
mov ecx, eax
test ecx, ecx
je 0x42eade
test esi, esi
jne 0x42e8f9
test ebx, ebx
jne 0x42eae8
mov eax, dword [ecx]
push 2
push ebx
call dword [eax]
test eax, eax
je 0x42ead9
lea edi, [eax + 0x10]
mov dword [ebp + 0xc], edi
cmp ebx, dword [edi - 8]
jg 0x42eae8
mov dword [edi - 0xc], ebx
xor eax, eax
add ebx, ebx
mov word [ebx + edi], ax
test ebx, ebx
je 0x42e956
push ebx
test esi, esi
je 0x42e937
push esi
push edi
call fcn.0047f880
add esp, 0xc
jmp 0x42e956
push 0
push edi
call fcn.0047fe00
add esp, 0xc
test esi, esi
jne 0x42e956
call fcn.004831ad
mov dword [eax], 0x16
call fcn.004830af
mov byte [ebp - 4], 3
lea eax, [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00408f80
mov byte [ebp - 4], 1
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x42ea8a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x42ea8a
push str.ISO_8859_1
push dword [edi]
call fcn.004879a3
add esp, 8
test eax, eax
jne 0x42e9a8
push 0x6faf
jmp 0x42ea7e
push str.US_ASCII
push dword [edi]
call fcn.004879a3
add esp, 8
test eax, eax
jne 0x42ea7c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
call fcn.00404500
mov ecx, eax
test ecx, ecx
je 0x42eade
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x42ea4f
test esi, esi
je 0x42eae8
push 0
push 0
push eax
push esi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
test ebx, ebx
js 0x42eae8
mov ecx, dword [edi - 8]
mov edx, 1
sub edx, dword [edi - 4]
sub ecx, ebx
or ecx, edx
jge 0x42ea29
push ebx
lea ecx, [ebp + 0xc]
call fcn.00402600
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
push ebx
push edi
push eax
push esi
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp ebx, dword [edi - 8]
jg 0x42eae8
mov dword [edi - 0xc], ebx
xor eax, eax
mov word [edi + ebx*2], ax
mov ebx, dword [ebp + 0x10]
mov byte [ebp - 4], 6
lea eax, [ebp + 0xc]
push eax
mov ecx, ebx
call fcn.00408f80
mov byte [ebp - 4], 1
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x42ea8a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x42ea8a
push 0
mov edx, ebx
mov ecx, esi
call fcn.0040d1a0
add esp, 4
mov ebx, dword [ebp - 0x18]
xor edi, edi
mov byte [ebp - 4], 0
push esi
call fcn.0047e2af
add esp, 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x20], 0x4c2580
test ebx, ebx
je 0x42eac3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.004027e0
push 0x80004005
call fcn.004027c0
push 0x80070057
call fcn.004027c0
int3