Function at 0x40fdb0
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 0x420091
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 + 0x17c]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.Iime_enc.map
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fe1b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40fe1b
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 0x40ff85
push str.Iime_EnTrie_Codetable
push dword [ebx + 0x384]
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx + 8], eax
test eax, eax
je 0x40ff85
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 0x40ff7e
cmp dword [ebx + 0x178], 8
lea esi, [ebx + 0x164]
jb 0x40fe92
mov eax, dword [esi]
jmp 0x40fe94
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 0x40ff7e
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
movdqu xmm0, xmmword [str.IIME_ENCODETABLE_READ]
mov ecx, dword [0x427410]
mov edi, eax
push 0x1dc
movdqu xmmword [ebp - 0x218], xmm0
lea eax, [ebp - 0x1ec]
mov dword [ebp - 0x250], edi
movdqu xmm0, xmmword [0x4273f8]
push 0
push eax
movdqu xmmword [ebp - 0x208], xmm0
mov dword [ebp - 0x1f0], ecx
movq xmm0, qword [0x427408]
movq qword [ebp - 0x1f8], xmm0
call fcn.00413440
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x40ff23
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 0x40ff7e
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 0x40ff8c
push edi
call esi
mov ecx, ebx
call fcn.0040fa20
xor eax, eax
jmp 0x41012d
mov ecx, dword [ebx + 0x384]
mov eax, dword [ebx + 0xc]
test ecx, ecx
je 0x40ffa9
lea esp, [esp]
mov byte [eax], 0
lea eax, [eax + 1]
dec ecx
jne 0x40ffa0
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.00410770
mov edi, dword [ebp - 0x250]
mov dword [ebx], eax
mov eax, dword [ebx + 0x10]
mov esi, dword [eax + 0xbc]
cmp esi, edi
jae 0x410110
jmp 0x40fff0
mov eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x248]
add eax, esi
push eax
call fcn.00401a70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
mov eax, dword [ebp - 0x238]
inc eax
add esi, eax
mov eax, dword [ebp - 0x24c]
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
lea eax, [ebp - 0x248]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00401b30
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00410900
test eax, eax
je 0x4100fa
cmp dword [ebp - 0x21c], 8
jb 0x4100b5
push dword [ebp - 0x230]
call fcn.00412421
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x234], 0x10
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x4100f0
push dword [ebp - 0x248]
call fcn.00412421
add esp, 4
cmp esi, edi
jb 0x40fff0
jmp 0x410110
lea ecx, [ebp - 0x230]
call fcn.00401b00
lea ecx, [ebp - 0x248]
call fcn.00401ad0
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