Function at 0x40add0
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 0x41ec56
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x278
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 - 0x278], edi
mov esi, dword [ebx + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b1ef
cmp dword [edi + 0xc], 0
je 0x40b1ef
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x280], eax
cmp eax, 0xffffffff
je 0x40b1ef
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
movups xmm0, xmmword [str.IIME_CODETABLE_READ]
mov edi, eax
lea eax, [ebp - 0x1f8]
push 0x1e0
movups xmmword [ebp - 0x220], xmm0
push 0
movups xmm0, xmmword [0x4266c4]
push eax
mov dword [ebp - 0x27c], edi
movups xmmword [ebp - 0x210], xmm0
movq xmm0, qword [0x4266d4]
movq qword [ebp - 0x200], xmm0
call fcn.00412cc0
add esp, 0xc
lea edx, [ebp - 0x220]
mov ecx, esi
call fcn.00405c70
lea eax, [ebp - 0x220]
push eax
push edi
push 0
push 2
push 0
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x284], eax
test eax, eax
jne 0x40aef6
push dword [ebp - 0x280]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x40b1f1
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
mov dword [ebp - 0x274], edi
test edi, edi
jne 0x40af18
xor esi, esi
jmp 0x40b1b2
cmp dword [ebx + 0xc], 0
jne 0x40af98
mov eax, dword [ebp - 0x278]
mov ecx, 0x159
mov esi, dword [ebp - 0x274]
push 4
push 0x3000
lea edi, [eax + 0x14]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 0xd0]
sub esi, 0x564
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, dword [ebp - 0x274]
mov ecx, eax
mov eax, dword [ebp - 0x278]
mov dword [eax + 0x10], ecx
test ecx, ecx
jne 0x40af6c
xor esi, esi
jmp 0x40b1ab
push esi
lea eax, [edi + 0x564]
push eax
push ecx
call fcn.00412740
mov ecx, dword [ebp - 0x278]
add esp, 0xc
mov dword [ecx + 0x90c], 0
call fcn.0040cd50
mov dword [ecx], eax
test eax, eax
je 0x40af65
mov esi, dword [edi + 0xbc]
cmp esi, dword [ebp - 0x27c]
jae 0x40b1a6
nop word [eax + eax]
lea edx, [esi + edi]
mov dword [ebp - 0x260], 0
mov ecx, edx
mov dword [ebp - 0x25c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x270], xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x274], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40afe0
sub ecx, dword [ebp - 0x274]
push ecx
push edx
lea ecx, [ebp - 0x270]
call fcn.00406a60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x258]
mov eax, dword [ebp - 0x260]
inc eax
add esi, eax
call fcn.004055d0
lea edx, [esi + edi]
mov byte [ebp - 4], 1
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x274], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b027
sub eax, dword [ebp - 0x274]
lea ecx, [ebp - 0x240]
sar eax, 1
push eax
push edx
call fcn.00401dd0
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x228], 0xfd
mov dword [ebp - 0x224], 0
lea esi, [esi + eax*2]
add esi, 2
cmp dword [ebx + 0xc], 0
jne 0x40b083
mov eax, dword [esi + edi]
mov dword [ebp - 0x228], eax
mov eax, dword [esi + edi + 4]
add esi, 8
mov dword [ebp - 0x224], eax
push 1
sub esp, 0x38
lea eax, [ebp - 0x258]
mov ecx, esp
mov dword [ebp - 0x274], esp
push eax
call fcn.00405680
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp - 0x270]
mov ecx, esp
push eax
call fcn.00406740
mov ecx, dword [ebp - 0x278]
mov byte [ebp - 4], 1
call fcn.0040b220
test eax, eax
je 0x40b1ce
mov byte [ebp - 4], 3
lea eax, [ebp - 0x258]
cmp dword [ebp - 0x244], 7
mov dword [ebp - 0x248], 0
cmova eax, dword [ebp - 0x258]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x258]
call fcn.004065c0
cmp dword [ebp - 0x22c], 7
lea eax, [ebp - 0x240]
mov dword [ebp - 0x230], 0
cmova eax, dword [ebp - 0x240]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x240]
call fcn.004065c0
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
call fcn.00401d40
lea ecx, [ebp - 0x258]
call fcn.00401d40
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0x25c]
cmp ecx, 0xf
jbe 0x40b193
mov edx, dword [ebp - 0x270]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40b189
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b211
push ecx
push edx
call fcn.004117af
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp esi, dword [ebp - 0x27c]
jb 0x40afb0
mov esi, 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x284]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x40b1f1
lea ecx, [ebp - 0x258]
xor esi, esi
call fcn.00405910
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], 0xffffffff
call fcn.004066c0
jmp 0x40b1ab
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 8
call fcn.004147eb
int3