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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b3c6
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 0x4170dd
mov ecx, dword [ebp - 0x24c]
cmp dword [ecx + 0xc], 0
jne 0x4170e4
xor eax, eax
jmp 0x417404
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 0x417116
xor eax, eax
jmp 0x417404
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.0041eab0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0x24c]
add ecx, 0x6c4
call fcn.004028a0
push eax
call fcn.00419780
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 0x4171db
mov dword [ebp - 0x260], 0
jmp 0x41739f
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 0x41720e
mov dword [ebp - 0x260], 0
jmp 0x41739f
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.00417860
mov edx, dword [ebp - 0x24c]
mov dword [edx], eax
mov eax, dword [ebp - 0x24c]
cmp dword [eax], 0
jne 0x417261
mov dword [ebp - 0x260], 0
jmp 0x41739f
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 0x41739f
mov ecx, dword [ebp - 0x254]
add ecx, dword [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x248]
call fcn.00413990
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.00413a10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24c]
call fcn.004179c0
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
jne 0x417379
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.00413970
jmp 0x41739f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.004028e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00413970
jmp 0x417273
cmp dword [ebp - 0x254], 0
je 0x4173bf
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 0x4173df
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 0x4173ff
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.0041d17f
mov esp, ebp
pop ebp
ret 4