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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f236
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x42a458]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x274], ecx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409cf9
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409cf9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
movdqu xmm0, xmmword [str.IIME_CODETABLE_READ]
push 0x1e0
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x1f0]
movdqu xmmword [ebp - 0x218], xmm0
push 0
movdqu xmm0, xmmword [0x4262d0]
push eax
movdqu xmmword [ebp - 0x208], xmm0
movq xmm0, qword [0x4262e0]
movq qword [ebp - 0x1f8], xmm0
call fcn.00412f00
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x218]
add esp, 0xc
push 0x426304
push eax
call esi
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x218]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
lea eax, [ebp - 0x218]
push 0x2e
push eax
call esi
test eax, eax
je 0x409cac
push 0x2e
lea eax, [ebp - 0x218]
push eax
call esi
mov ecx, 0x5f
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x270]
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x278], esi
call edi
test esi, esi
je 0x409cf9
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x26c], ebx
test ebx, ebx
jne 0x409d00
push esi
call edi
xor eax, eax
jmp 0x40a020
cmp dword [ebp + 0xc], 0
mov esi, dword [ebx + 0xbc]
jne 0x409d43
mov edi, dword [ebp - 0x274]
push esi
push ebx
push dword [edi + 0xc]
call fcn.00412f90
mov ecx, dword [edi + 0xc]
add esp, 0xc
mov dword [edi + 0x14], ecx
lea eax, [ecx + 0x564]
mov dword [edi + 0x10], eax
mov eax, dword [ecx + 0xbc]
mov dword [ecx + 0xc0], eax
mov ecx, edi
call fcn.0040b860
mov dword [edi], eax
cmp esi, dword [ebp - 0x270]
jae 0x40a008
nop
lea edx, [esi + ebx]
mov dword [ebp - 0x254], 0xf
mov dword [ebp - 0x258], 0
mov byte [ebp - 0x268], 0
cmp byte [edx], 0
jne 0x409d77
xor ecx, ecx
jmp 0x409d89
mov ecx, edx
lea edi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409d80
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x268]
call fcn.00401c60
mov dword [ebp - 4], 0
xor eax, eax
mov edi, dword [ebp - 0x258]
inc edi
mov dword [ebp - 0x23c], 7
add edi, esi
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], ax
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], eax
mov word [ebp - 0x238], ax
push eax
push 0x42624c
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 2
call fcn.00401e00
push 0
push 0x42624c
lea ecx, [ebp - 0x238]
call fcn.00401e00
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
lea edx, [edi + ebx]
mov byte [ebp - 4], 3
cmp word [edx], 0
jne 0x409e26
xor ecx, ecx
jmp 0x409e3f
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x409e30
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409e30
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x238]
call fcn.00401e00
mov esi, dword [ebp - 0x228]
inc esi
mov dword [ebp - 0x220], 0xfd
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x21c], 0
lea esi, [edi + esi*2]
jne 0x409e86
mov eax, dword [esi + ebx]
mov dword [ebp - 0x220], eax
mov eax, dword [esi + ebx + 4]
add esi, 8
mov dword [ebp - 0x21c], eax
sub esp, 0x38
xor eax, eax
mov edi, esp
mov dword [ebp - 0x280], esp
mov dword [ebp - 0x27c], edi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
lea ebx, [edi + 0x18]
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], eax
mov word [ebx], ax
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 5
cmp edi, eax
je 0x409ed4
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00402050
lea eax, [ebp - 0x238]
cmp ebx, eax
je 0x409eea
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00402050
mov eax, dword [ebp - 0x220]
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x21c]
mov dword [edi + 0x34], eax
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
lea eax, [ebp - 0x268]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00401b30
mov ecx, dword [ebp - 0x274]
push 1
mov byte [ebp - 4], 3
call fcn.0040a040
test eax, eax
je 0x409fe8
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 8
call fcn.0040d600
cmp dword [ebp - 0x224], 8
jb 0x409f65
push dword [ebp - 0x238]
call fcn.00411ee1
add esp, 4
xor eax, eax
mov dword [ebp - 0x224], 7
cmp dword [ebp - 0x23c], 8
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], ax
jb 0x409f99
push dword [ebp - 0x250]
call fcn.00411ee1
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x254], 0x10
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], ax
jb 0x409fd4
push dword [ebp - 0x268]
call fcn.00411ee1
add esp, 4
mov ebx, dword [ebp - 0x26c]
cmp esi, dword [ebp - 0x270]
jb 0x409d50
jmp 0x40a002
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0
call fcn.0040d570
lea ecx, [ebp - 0x268]
call fcn.00401ad0
mov ebx, dword [ebp - 0x26c]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411ee6
mov esp, ebp
pop ebp
ret 8