Function at 0x40f2b0
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f376
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x258
mov eax, dword [0x42a040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x254], edi
mov esi, dword [ebx + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f59e
cmp dword [edi + 0xc], 0
je 0x40f59e
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
je 0x40f59e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
movups xmm0, xmmword [str.IIME_ENCODETABLE_READ]
mov ecx, dword [0x4267c0]
mov esi, eax
push 0x1dc
movups xmmword [ebp - 0x220], xmm0
lea eax, [ebp - 0x1f4]
mov dword [ebp - 0x25c], esi
movups xmm0, xmmword [0x4267a8]
push 0
push eax
movups xmmword [ebp - 0x210], xmm0
mov dword [ebp - 0x1f8], ecx
movq xmm0, qword [0x4267b8]
movq qword [ebp - 0x200], xmm0
call fcn.00412cc0
lea ecx, [edi + 0x6c4]
add esp, 0xc
cmp dword [ecx + 0x14], 7
jbe 0x40f3aa
mov ecx, dword [ecx]
lea edx, [ebp - 0x220]
call fcn.00405c70
lea eax, [ebp - 0x220]
push eax
push esi
mov esi, dword [ebp - 0x260]
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x264], eax
test eax, eax
je 0x40f590
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x258], eax
test eax, eax
je 0x40f584
add edi, 0x10
mov esi, eax
mov ecx, 0x159
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x254]
mov ecx, edi
mov dword [edi + 0x8ec], 0
call fcn.0040f930
mov dword [edi], eax
test eax, eax
je 0x40f572
mov esi, dword [edi + 0xcc]
cmp esi, dword [ebp - 0x25c]
jae 0x40f572
nop word [eax + eax]
mov edx, dword [ebp - 0x258]
xorps xmm0, xmm0
add edx, esi
mov dword [ebp - 0x228], 0
mov eax, edx
mov dword [ebp - 0x224], 0
movups xmmword [ebp - 0x238], xmm0
lea ecx, [eax + 1]
mov dword [ebp - 0x254], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f471
sub eax, dword [ebp - 0x254]
lea ecx, [ebp - 0x238]
push eax
push edx
call fcn.00406a60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x250]
mov eax, dword [ebp - 0x228]
inc eax
add esi, eax
mov eax, dword [ebp - 0x258]
add eax, esi
push eax
call fcn.00404a40
mov byte [ebp - 4], 1
sub esp, 0x18
mov eax, dword [ebp - 0x240]
mov ecx, esp
mov dword [ebp - 0x254], esp
lea esi, [esi + eax*2]
lea eax, [ebp - 0x250]
add esi, 2
push eax
call fcn.00404b20
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp - 0x238]
mov ecx, esp
push eax
call fcn.00406740
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040f970
lea ecx, [ebp - 0x250]
test eax, eax
je 0x40f55b
call fcn.00401d40
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x224]
cmp ecx, 0xf
jbe 0x40f546
mov edx, dword [ebp - 0x238]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f53c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f5c0
push ecx
push edx
call fcn.004117af
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp esi, dword [ebp - 0x25c]
jb 0x40f440
jmp 0x40f572
call fcn.00401d40
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], 0xffffffff
call fcn.004066c0
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [ebp - 0x260]
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40f5a0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004113fe
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.004147eb
int3