Function at 0x1400254f8
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file version info
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x288]
sub rsp, 0x360
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rdx, qword [rcx + 0x50]
xor r14d, r14d
mov qword [rsp + 0x60], rcx
mov r15, rcx
mov edi, 1
mov r12d, r14d
mov ebx, r14d
test rdx, rdx
je 0x140025d3a
or r8, 0xffffffffffffffff
mov rax, r8
inc rax
cmp word [rdx + rax*2], r14w
jne 0x140025559
mov ecx, 0x3a
lea rsi, [rax + 1]
lea eax, [rcx - 0x38]
cmp cx, word [rdx + 2]
jne 0x140025815
mul rsi
cmovo rax, r8
mov rcx, rax
call fcn.14003c310
mov r8, qword [r15 + 0x50]
mov r13, rax
cmp word [r8], 0x52
je 0x1400255a1
cmp word [r8], 0x72
jne 0x140025d2d
test r13, r13
je 0x140025d3a
add r8, 4
mov rdx, rsi
mov rcx, r13
call fcn.140001470
mov esi, 0x2c
mov rcx, r13
mov edx, esi
call qword [sym.imp.msvcrt.dll_wcschr]
mov r15, rax
test rax, rax
je 0x140025d2d
mov edx, esi
mov qword [rsp + 0x60], r14
lea rcx, [rax + 2]
mov word [rax], r14w
call qword [sym.imp.msvcrt.dll_wcschr]
mov r14, rax
xor eax, eax
test r14, r14
je 0x140025622
mov word [r14], ax
mov edx, esi
add r14, 2
mov rcx, r14
call qword [sym.imp.msvcrt.dll_wcschr]
xor ecx, ecx
test rax, rax
je 0x140025622
mov word [rax], cx
add rax, 2
je 0x140025622
mov rcx, rax
call fcn.140016d8c
mov r12, rax
mov rdx, 0xffffffff80000000
mov rcx, r13
call fcn.14001a8fc
lea rcx, [rsp + 0x60]
mov r9d, edi
mov qword [rsp + 0x20], rcx
lea rdx, [r15 + 2]
mov rcx, rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r15d, r15d
test eax, eax
jne 0x140025806
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x68], edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov dword [rsp + 0x6c], 0x80
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400257fb
cmp dword [rsp + 0x68], edi
jne 0x1400257fb
mov dword [rsp + 0x48], r15d
lea r14d, [r15 + 0x2e]
mov dword [rsp + 0x50], r15d
lea rcx, [rbp - 0x70]
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x58], r15d
jmp 0x1400256c4
add ebx, edi
lea rcx, [rax + 2]
mov edx, r14d
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x1400256be
mov ecx, ebx
sub ecx, edi
je 0x1400257a0
sub ecx, edi
je 0x140025779
cmp ecx, edi
lea rcx, [rbp - 0x70]
je 0x14002574c
test ebx, ebx
je 0x140025705
call qword [sym.imp.msvcrt.dll__wtoi]
mov dword [rsp + 0x40], eax
jmp 0x1400257bb
add ebx, edi
lea rcx, [rax + 2]
mov edx, esi
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x1400256ff
lea rcx, [rbp - 0x70]
sub ebx, edi
je 0x140025743
sub ebx, edi
je 0x14002573a
cmp ebx, edi
je 0x140025731
call qword [sym.imp.msvcrt.dll__wtoi]
mov dword [rsp + 0x48], eax
jmp 0x1400257bb
lea rdx, str._lu__lu__lu__lu
jmp 0x140025753
lea rdx, str._lu__lu__lu
jmp 0x140025784
lea rdx, str._lu__lu
jmp 0x1400257ab
lea rdx, str._lu._lu._lu._lu
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll_swscanf]
jmp 0x1400257bb
lea rdx, str._lu._lu._lu
lea rcx, [rbp - 0x70]
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_swscanf]
jmp 0x1400257bb
lea rdx, str._lu._lu
lea rcx, [rbp - 0x70]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x48]
call qword [sym.imp.msvcrt.dll_swscanf]
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
shl eax, 0x10
add ecx, eax
mov eax, dword [rsp + 0x40]
shl eax, 0x10
add edx, eax
mov ebx, ecx
and rbx, 0xffffffffffff0000
movzx eax, cx
or rbx, rax
mov eax, edx
shr rax, 0x10
shl rbx, 0x10
or rbx, rax
movzx eax, dx
shl rbx, 0x10
or rbx, rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r12, rbx
mov edi, r15d
setbe dil
jmp 0x140025d2d
mul rsi
cmovo rax, r8
mov rcx, rax
call fcn.14003c310
mov r13, rax
test rax, rax
je 0x140025d3a
mov r8, qword [r15 + 0x50]
mov rdx, rsi
mov rcx, rax
mov dword [rsp + 0x40], r12d
call fcn.140001470
mov edx, 0x3a
mov rcx, r13
call qword [sym.imp.msvcrt.dll_wcschr]
mov rsi, rax
test rax, rax
je 0x140025862
mov word [rax], r12w
add rsi, 2
mov rcx, r13
call fcn.140016d8c
mov qword [rsp + 0x70], rax
test rsi, rsi
je 0x14002588c
lea rdx, [0x140044d18]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140025d2d
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.140017e34
mov esi, 0x104
test eax, eax
je 0x1400258cf
lea rcx, [rbp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, [0x140040238]
mov edx, esi
lea rcx, [rbp + 0x40]
call fcn.140001584
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400258cf
test al, 0x10
je 0x140025911
mov edx, esi
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140025cf6
lea r8, str.msdxm.ocx
mov rdx, rsi
lea rcx, [rbp + 0x40]
call fcn.140001584
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140025cf6
test al, 0x10
jne 0x140025cf6
lea rdx, [rsp + 0x6c]
mov dword [rsp + 0x6c], r12d
lea rcx, [rbp + 0x40]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r15d, eax
test eax, eax
jne 0x140025adf
lea rcx, [rbp + 0x40]
call fcn.140017448
test eax, eax
je 0x140025cf1
mov qword [rsp + 0x30], r12
lea rcx, [rbp + 0x40]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov r8d, edi
mov dword [rsp + 0x20], 3
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140025cf1
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov r12d, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetFileTime]
xor r15d, r15d
test eax, eax
je 0x140025ad4
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x140025ad4
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0xac
call sub.msvcrt.dll_memset
movzx ecx, word [rsp + 0x78]
mov r12d, r15d
movzx r14d, word [rsp + 0x7a]
movzx eax, word [rsp + 0x7e]
mov dword [rsp + 0x40], ecx
lea rcx, [rbp - 0x70]
shl r14d, 0x10
or r14d, eax
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x140025ad4
mov r8d, dword [rbp - 0x70]
movzx eax, r8w
neg ax
test r8d, r8d
cmovg ax, r8w
movzx ecx, ax
mov eax, 0x88888889
mul ecx
movzx eax, word [rbp - 0x80]
movzx ecx, word [rsp + 0x7e]
shr edx, 5
cmp r8d, edi
jge 0x140025a26
add ax, dx
jmp 0x140025a41
cmp ax, dx
jae 0x140025a3e
mov r8d, 0xffff
add cx, r8w
mov word [rsp + 0x7e], cx
add ax, 0x18
sub ax, dx
mov word [rbp - 0x80], ax
cmp ax, 0x17
jbe 0x140025a87
add cx, di
mov edx, 0xffe8
add ax, dx
mov word [rsp + 0x7e], cx
mov word [rbp - 0x80], ax
cmp cx, 0x20
jne 0x140025a87
movzx eax, word [rsp + 0x7a]
add ax, di
mov word [rsp + 0x7e], di
mov word [rsp + 0x7a], ax
cmp ax, 0xd
jne 0x140025a87
add word [rsp + 0x78], di
mov word [rsp + 0x7a], di
xorps xmm0, xmm0
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x78]
movsd qword [rsp + 0x58], xmm0
call qword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x140025ad4
movsd xmm0, qword [rsp + 0x58]
lea rdx, [rsp + 0x78]
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x140025ad4
movzx r14d, word [rsp + 0x7a]
movzx ecx, word [rsp + 0x78]
movzx eax, word [rsp + 0x7e]
shl r14d, 0x10
or r14d, eax
mov dword [rsp + 0x40], ecx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140025b4b
mov rcx, r15
call fcn.14003c310
mov rsi, rax
test rax, rax
je 0x140025cf1
mov r9, rax
lea rcx, [rbp + 0x40]
mov r8d, r15d
xor edx, edx
mov r12d, 0x80004005
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
xor r15d, r15d
test eax, eax
je 0x140025b43
lea r9, [rsp + 0x68]
mov rcx, rsi
lea r8, [rsp + 0x48]
lea rdx, [0x140042140]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140025b43
mov rax, qword [rsp + 0x48]
mov r12d, r15d
mov ecx, dword [rax + 8]
mov r14d, dword [rax + 0xc]
mov dword [rsp + 0x40], ecx
mov rcx, rsi
call fcn.14003c2b8
test r12d, r12d
js 0x140025cee
mov edx, dword [rsp + 0x40]
lea r8, str._lu._lu._lu._lu
movzx eax, dx
shr edx, 0x10
movzx ecx, r14w
mov r9d, edx
mov dword [rsp + 0x30], ecx
mov edx, 0x103
shr r14d, 0x10
lea rcx, [rbp + 0x40]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
call fcn.140001734
xor r12d, r12d
lea rcx, [rbp + 0x40]
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x40], r12d
lea r14d, [r12 + 0x2e]
mov dword [rsp + 0x58], r12d
jmp 0x140025bb3
add ebx, edi
lea rcx, [rax + 2]
mov edx, r14d
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x140025bad
mov ecx, ebx
sub ecx, edi
je 0x140025c91
sub ecx, edi
je 0x140025c6a
cmp ecx, edi
lea rcx, [rbp + 0x40]
je 0x140025c3d
test ebx, ebx
jne 0x140025c31
lea esi, [rax + 0x2c]
jmp 0x140025bea
add ebx, edi
lea rcx, [rax + 2]
mov edx, esi
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x140025be4
lea rcx, [rbp + 0x40]
sub ebx, edi
je 0x140025c28
sub ebx, edi
je 0x140025c1f
cmp ebx, edi
je 0x140025c16
call qword [sym.imp.msvcrt.dll__wtoi]
mov dword [rsp + 0x48], eax
jmp 0x140025cac
lea rdx, str._lu__lu__lu__lu
jmp 0x140025c44
lea rdx, str._lu__lu__lu
jmp 0x140025c75
lea rdx, str._lu__lu
jmp 0x140025c9c
call qword [sym.imp.msvcrt.dll__wtoi]
mov dword [rsp + 0x40], eax
jmp 0x140025cac
lea rdx, str._lu._lu._lu._lu
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x48]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll_swscanf]
jmp 0x140025cac
lea rdx, str._lu._lu._lu
lea rcx, [rbp + 0x40]
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_swscanf]
jmp 0x140025cac
lea rdx, str._lu._lu
lea rcx, [rbp + 0x40]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x48]
call qword [sym.imp.msvcrt.dll_swscanf]
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x50]
mov edx, dword [rsp + 0x58]
shl eax, 0x10
add ecx, eax
mov eax, dword [rsp + 0x40]
shl eax, 0x10
add edx, eax
mov ebx, ecx
and rbx, 0xffffffffffff0000
movzx eax, cx
or rbx, rax
mov eax, edx
shr rax, 0x10
shl rbx, 0x10
or rbx, rax
movzx eax, dx
shl rbx, 0x10
or rbx, rax
jmp 0x140025cf1
xor r12d, r12d
mov r15, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov edi, r12d
cmp rbx, rsi
setae dil
jae 0x140025d2d
mov rax, qword [r15 + 0x78]
test rax, rax
je 0x140025d2d
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x140025d20
call fcn.140016d8c
jmp 0x140025d23
mov rax, r12
cmp rax, rsi
mov edi, r12d
setae dil
test r13, r13
je 0x140025d3a
mov rcx, r13
call fcn.14003c2b8
mov eax, edi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret