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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b536
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x43a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41723d
mov ecx, dword [ebp - 0x24c]
cmp dword [ecx + 0xc], 0
jne 0x417244
xor eax, eax
jmp 0x417564
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0xffffffff
jne 0x417276
xor eax, eax
jmp 0x417564
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
push 0
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x264], eax
mov ecx, 0xb
mov esi, str.IIME_ENCODETABLE_READ
lea edi, [ebp - 0x218]
rep movsd dword es:[edi], dword [esi]
push 0x1dc
push 0
lea ecx, [ebp - 0x1ec]
push ecx
call fcn.0041ec10
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0x24c]
add ecx, 0x6c4
call fcn.004028a0
push eax
call fcn.004198f0
add esp, 8
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x264]
push ecx
push 0
push 2
push 0
mov edx, dword [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x260], 1
cmp dword [ebp - 0x258], 0
jne 0x41733b
mov dword [ebp - 0x260], 0
jmp 0x4174ff
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
jne 0x41736e
mov dword [ebp - 0x260], 0
jmp 0x4174ff
mov edi, dword [ebp - 0x24c]
add edi, 0x10
mov ecx, 0x159
mov esi, dword [ebp - 0x254]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x24c]
mov dword [ecx + 0x8ec], 0
mov ecx, dword [ebp - 0x24c]
call fcn.004179d0
mov edx, dword [ebp - 0x24c]
mov dword [edx], eax
mov eax, dword [ebp - 0x24c]
cmp dword [eax], 0
jne 0x4173c1
mov dword [ebp - 0x260], 0
jmp 0x4174ff
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx + 0xcc]
mov dword [ebp - 0x250], edx
mov eax, dword [ebp - 0x250]
cmp eax, dword [ebp - 0x264]
jae 0x4174ff
mov ecx, dword [ebp - 0x254]
add ecx, dword [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x248]
call fcn.00413ae0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00402880
mov edx, dword [ebp - 0x250]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x254]
add ecx, dword [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00402940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00402880
mov edx, dword [ebp - 0x250]
lea eax, [edx + eax*2 + 2]
mov dword [ebp - 0x250], eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x26c], esp
lea edx, [ebp - 0x230]
push edx
call fcn.004029c0
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 2
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x274], esp
lea eax, [ebp - 0x248]
push eax
call fcn.00413b60
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24c]
call fcn.00417b30
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
jne 0x4174d9
mov dword [ebp - 0x260], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.004028e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00413ac0
jmp 0x4174ff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.004028e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00413ac0
jmp 0x4173d3
cmp dword [ebp - 0x254], 0
je 0x41751f
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x254], 0
cmp dword [ebp - 0x258], 0
je 0x41753f
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x258], 0
cmp dword [ebp - 0x25c], 0xffffffff
je 0x41755f
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x25c], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d2df
mov esp, ebp
pop ebp
ret 4