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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a436
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x438040]
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 0x41629d
mov ecx, dword [ebp - 0x24c]
cmp dword [ecx + 0xc], 0
jne 0x4162a4
xor eax, eax
jmp 0x4165c4
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 0x4162d6
xor eax, eax
jmp 0x4165c4
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.0041de40
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0x24c]
add ecx, 0x6c4
call fcn.00401fe0
push eax
call fcn.00418b70
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 0x41639b
mov dword [ebp - 0x260], 0
jmp 0x41655f
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 0x4163ce
mov dword [ebp - 0x260], 0
jmp 0x41655f
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.00416a20
mov edx, dword [ebp - 0x24c]
mov dword [edx], eax
mov eax, dword [ebp - 0x24c]
cmp dword [eax], 0
jne 0x416421
mov dword [ebp - 0x260], 0
jmp 0x41655f
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 0x41655f
mov ecx, dword [ebp - 0x254]
add ecx, dword [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x248]
call fcn.00416e40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.00412b90
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.00402080
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00401fd0
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.00402160
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.00412d10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24c]
call fcn.00416b80
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
jne 0x416539
mov dword [ebp - 0x260], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00402020
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00412cf0
jmp 0x41655f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00402020
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00412cf0
jmp 0x416433
cmp dword [ebp - 0x254], 0
je 0x41657f
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 0x41659f
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 0x4165bf
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.0041c52e
mov esp, ebp
pop ebp
ret 4