Function at 0x40e5d0
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 0x41f266
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 - 0x260], edi
mov eax, dword [ebx + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e879
cmp dword [edi + 0xc], 0
je 0x40e879
cmp dword [edi + 0x594], 7
lea esi, [edi + 0x580]
mov eax, esi
jbe 0x40e648
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x40e879
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
movups xmm0, xmmword [str.IIME_STCODETABLE_READ]
mov ecx, dword [0x42674c]
push 0x1dc
movups xmmword [ebp - 0x220], xmm0
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x1f4]
movups xmm0, xmmword [0x426734]
push 0
push eax
movups xmmword [ebp - 0x210], xmm0
mov dword [ebp - 0x1f8], ecx
movq xmm0, qword [0x426744]
movq qword [ebp - 0x200], xmm0
call fcn.00412cc0
add esp, 0xc
cmp dword [esi + 0x14], 7
jbe 0x40e6d5
mov esi, dword [esi]
lea edx, [ebp - 0x220]
mov ecx, esi
call fcn.00405c70
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x254]
push 0
push 2
push 0
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40e720
push dword [ebp - 0x25c]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x40e87b
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
jne 0x40e740
xor esi, esi
jmp 0x40e842
add edi, 0x10
mov esi, eax
mov ecx, 0x159
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x260]
mov ecx, edi
mov dword [edi + 0x57c], 0
call fcn.0040e8a0
mov dword [edi], eax
test eax, eax
jne 0x40e770
xor esi, esi
jmp 0x40e836
mov esi, dword [edi + 0xcc]
cmp esi, dword [ebp - 0x254]
jae 0x40e831
mov eax, dword [ebp - 0x258]
lea ecx, [ebp - 0x250]
add eax, esi
push eax
call fcn.00404a40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x238]
mov eax, dword [ebp - 0x240]
lea esi, [esi + eax*2]
mov eax, dword [ebp - 0x258]
add esi, 2
add eax, esi
push eax
call fcn.00404a40
mov byte [ebp - 4], 1
sub esp, 0x18
mov eax, dword [ebp - 0x228]
mov ecx, esp
mov dword [ebp - 0x260], esp
lea esi, [esi + eax*2]
lea eax, [ebp - 0x238]
add esi, 2
push eax
call fcn.00404b20
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp - 0x250]
mov ecx, esp
push eax
call fcn.00404b20
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040e8e0
lea ecx, [ebp - 0x238]
test eax, eax
je 0x40e85e
call fcn.00401d40
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], 0xffffffff
call fcn.00401d40
cmp esi, dword [ebp - 0x254]
jb 0x40e782
mov esi, 1
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x40e87b
xor esi, esi
call fcn.00401d40
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], 0xffffffff
call fcn.00401d40
jmp 0x40e836
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