Function at 0x40efe0
Capabilities:
Check if file exists
Delete file
Get common file path
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ff81
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x42b458]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea esi, [ebx + 0x30]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.Iime_stc.map
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f048
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f048
mov ecx, esi
call fcn.004018d0
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 2
push 2
push 0
push 3
push 0xc0000000
push esi
call edi
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x40f1a9
push str.Iime_STTrie_Codetable
push dword [ebx + 0x14]
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx + 8], eax
test eax, eax
je 0x40f1a9
push 0
push 0
push 0
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 0xc], eax
test eax, eax
je 0x40f1a2
cmp dword [ebx + 0x2c], 8
lea esi, [ebx + 0x18]
jb 0x40f0b6
mov eax, dword [esi]
jmp 0x40f0b8
mov eax, esi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call edi
mov dword [ebp - 0x24c], eax
cmp eax, 0xffffffff
je 0x40f1a2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
movdqu xmm0, xmmword [str.IIME_STCODETABLE_READ]
mov ecx, dword [0x42739c]
mov edi, eax
push 0x1dc
movdqu xmmword [ebp - 0x218], xmm0
lea eax, [ebp - 0x1ec]
mov dword [ebp - 0x250], edi
movdqu xmm0, xmmword [0x427384]
push 0
push eax
movdqu xmmword [ebp - 0x208], xmm0
mov dword [ebp - 0x1f0], ecx
movq xmm0, qword [0x427394]
movq qword [ebp - 0x1f8], xmm0
call fcn.00413440
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40f147
mov esi, dword [esi]
lea edx, [ebp - 0x218]
mov ecx, esi
call fcn.0040dd10
mov esi, dword [ebp - 0x24c]
lea eax, [ebp - 0x218]
push eax
push edi
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x254], edi
call esi
test edi, edi
je 0x40f1a2
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [ebp - 0x24c], edx
test edx, edx
jne 0x40f1b0
push edi
call esi
mov ecx, ebx
call fcn.0040ee60
xor eax, eax
jmp 0x40f351
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0xc]
test ecx, ecx
je 0x40f1c9
lea ebx, [ebx]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x40f1c0
mov edi, dword [ebx + 0xc]
mov esi, edx
mov ecx, 0x159
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0xc]
mov dword [ebx + 0x10], ecx
mov eax, dword [ecx + 0xbc]
mov dword [ecx + 0xc0], eax
mov ecx, ebx
call fcn.0040f370
mov edi, dword [ebp - 0x250]
mov dword [ebx], eax
mov eax, dword [ebx + 0x10]
mov esi, dword [eax + 0xbc]
cmp esi, edi
jae 0x40f334
jmp 0x40f210
mov eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x248]
add eax, esi
push eax
call fcn.004056c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x238]
lea esi, [esi + eax*2]
mov eax, dword [ebp - 0x24c]
add esi, 2
add eax, esi
push eax
call fcn.004056c0
mov byte [ebp - 4], 1
sub esp, 0x18
mov eax, dword [ebp - 0x220]
mov ecx, esp
mov dword [ebp - 0x250], esp
push 0xffffffffffffffff
lea esi, [esi + eax*2]
mov dword [ecx + 0x14], 7
xor eax, eax
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
add esi, 2
lea eax, [ebp - 0x230]
push eax
call fcn.00402050
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x248]
push eax
call fcn.00402050
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0040f4f0
test eax, eax
je 0x40f31e
cmp dword [ebp - 0x21c], 8
jb 0x40f2d9
push dword [ebp - 0x230]
call fcn.00412421
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x40f314
push dword [ebp - 0x248]
call fcn.00412421
add esp, 4
cmp esi, edi
jb 0x40f210
jmp 0x40f334
lea ecx, [ebp - 0x230]
call fcn.00401b00
lea ecx, [ebp - 0x248]
call fcn.00401b00
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412426
mov esp, ebp
pop ebp
ret