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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5345
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x507074]
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 - 0x24], 0x4df930
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0
cmp ebx, 0xffffffff
jne 0x43201d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4322b3
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43203a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x4322b3
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.004081f0
mov esi, dword [ebp - 0x10]
test al, al
jne 0x432062
mov edi, 8
jmp 0x43229f
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 0x432089
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x43229f
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.00403530
mov eax, dword [ebp + 8]
test eax, eax
je 0x43229d
mov byte [eax + esi], 0
mov eax, dword [ebp + 0xc]
push str.utf_8
push dword [eax]
call fcn.004a01f3
add esp, 8
test eax, eax
jne 0x4320c2
push 0xfde9
jmp 0x432291
mov eax, dword [ebp + 0xc]
push str.utf_16
push dword [eax]
call fcn.004a01f3
add esp, 8
test eax, eax
jne 0x432191
mov edi, dword [ebp + 8]
shr edi, 1
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x4322ee
test esi, esi
jne 0x4320fc
test edi, edi
jne 0x4322f8
mov eax, dword [ecx]
push 2
push edi
call dword [eax]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4322e9
add eax, 0x10
mov dword [ebp + 0xc], eax
cmp edi, dword [eax - 8]
jg 0x4322f8
mov dword [eax - 0xc], edi
xor ecx, ecx
add edi, edi
mov word [edi + eax], cx
test edi, edi
je 0x43215c
push edi
test esi, esi
je 0x43213d
push esi
push eax
call fcn.00498000
add esp, 0xc
jmp 0x43215c
push 0
push eax
call fcn.00498580
add esp, 0xc
test esi, esi
jne 0x43215c
call fcn.0049b9dd
mov dword [eax], 0x16
call fcn.0049b8df
mov byte [ebp - 4], 3
lea eax, [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00409440
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43229d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x43229d
mov eax, dword [ebp + 0xc]
push str.ISO_8859_1
push dword [eax]
call fcn.004a01f3
add esp, 8
test eax, eax
jne 0x4321b1
push 0x6faf
jmp 0x432291
mov eax, dword [ebp + 0xc]
push str.US_ASCII
push dword [eax]
call fcn.004a01f3
add esp, 8
test eax, eax
jne 0x43228f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x4322ee
mov eax, dword [ecx]
call dword [eax + 0xc]
mov dword [ebp - 0x18], eax
lea edi, [eax + 0x10]
mov dword [ebp + 0xc], edi
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x432261
test esi, esi
je 0x4322f8
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 0x4322f8
mov ecx, dword [ebp - 0x18]
mov edx, 1
sub edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
sub ecx, ebx
or ecx, edx
jge 0x43223b
push ebx
lea ecx, [ebp + 0xc]
call fcn.004023b0
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 0x4322f8
mov dword [edi - 0xc], ebx
xor eax, eax
mov word [edi + ebx*2], ax
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 4], 6
lea eax, [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00409440
mov byte [ebp - 4], 1
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x43229d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x43229d
push 0
mov edx, edi
mov ecx, esi
call fcn.0040d740
add esp, 4
xor edi, edi
mov byte [ebp - 4], 0
push esi
call fcn.0049696e
add esp, 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], 0x4df930
test ebx, ebx
je 0x4322d3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 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.00402590
push 0x80004005
call fcn.00402570
push 0x80070057
call fcn.00402570
int3