Function at 0x140025560
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 0x140025da2
or r8, 0xffffffffffffffff
mov rax, r8
inc rax
cmp word [rdx + rax*2], r14w
jne 0x1400255c1
mov ecx, 0x3a
lea rsi, [rax + 1]
lea eax, [rcx - 0x38]
cmp cx, word [rdx + 2]
jne 0x14002587d
mul rsi
cmovo rax, r8
mov rcx, rax
call fcn.14003c460
mov r8, qword [r15 + 0x50]
mov r13, rax
cmp word [r8], 0x52
je 0x140025609
cmp word [r8], 0x72
jne 0x140025d95
test r13, r13
je 0x140025da2
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 0x140025d95
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 0x14002568a
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 0x14002568a
mov word [rax], cx
add rax, 2
je 0x14002568a
mov rcx, rax
call fcn.140016dcc
mov r12, rax
mov rdx, 0xffffffff80000000
mov rcx, r13
call fcn.14001a950
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 0x14002586e
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 0x140025863
cmp dword [rsp + 0x68], edi
jne 0x140025863
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 0x14002572c
add ebx, edi
lea rcx, [rax + 2]
mov edx, r14d
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x140025726
mov ecx, ebx
sub ecx, edi
je 0x140025808
sub ecx, edi
je 0x1400257e1
cmp ecx, edi
lea rcx, [rbp - 0x70]
je 0x1400257b4
test ebx, ebx
je 0x14002576d
call qword [sym.imp.msvcrt.dll__wtoi]
mov dword [rsp + 0x40], eax
jmp 0x140025823
add ebx, edi
lea rcx, [rax + 2]
mov edx, esi
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x140025767
lea rcx, [rbp - 0x70]
sub ebx, edi
je 0x1400257ab
sub ebx, edi
je 0x1400257a2
cmp ebx, edi
je 0x140025799
call qword [sym.imp.msvcrt.dll__wtoi]
mov dword [rsp + 0x48], eax
jmp 0x140025823
lea rdx, str._lu__lu__lu__lu
jmp 0x1400257bb
lea rdx, str._lu__lu__lu
jmp 0x1400257ec
lea rdx, str._lu__lu
jmp 0x140025813
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 0x140025823
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 0x140025823
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 0x140025d95
mul rsi
cmovo rax, r8
mov rcx, rax
call fcn.14003c460
mov r13, rax
test rax, rax
je 0x140025da2
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 0x1400258ca
mov word [rax], r12w
add rsi, 2
mov rcx, r13
call fcn.140016dcc
mov qword [rsp + 0x70], rax
test rsi, rsi
je 0x1400258f4
lea rdx, [0x140044d18]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140025d95
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.140017e7c
mov esi, 0x104
test eax, eax
je 0x140025937
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 0x140025937
test al, 0x10
je 0x140025979
mov edx, esi
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140025d5e
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 0x140025d5e
test al, 0x10
jne 0x140025d5e
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 0x140025b47
lea rcx, [rbp + 0x40]
call fcn.140017488
test eax, eax
je 0x140025d59
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 0x140025d59
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 0x140025b3c
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x140025b3c
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 0x140025b3c
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 0x140025a8e
add ax, dx
jmp 0x140025aa9
cmp ax, dx
jae 0x140025aa6
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 0x140025aef
add cx, di
mov edx, 0xffe8
add ax, dx
mov word [rsp + 0x7e], cx
mov word [rbp - 0x80], ax
cmp cx, 0x20
jne 0x140025aef
movzx eax, word [rsp + 0x7a]
add ax, di
mov word [rsp + 0x7e], di
mov word [rsp + 0x7a], ax
cmp ax, 0xd
jne 0x140025aef
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 0x140025b3c
movsd xmm0, qword [rsp + 0x58]
lea rdx, [rsp + 0x78]
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x140025b3c
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 0x140025bb3
mov rcx, r15
call fcn.14003c460
mov rsi, rax
test rax, rax
je 0x140025d59
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 0x140025bab
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 0x140025bab
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.14003c408
test r12d, r12d
js 0x140025d56
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 0x140025c1b
add ebx, edi
lea rcx, [rax + 2]
mov edx, r14d
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x140025c15
mov ecx, ebx
sub ecx, edi
je 0x140025cf9
sub ecx, edi
je 0x140025cd2
cmp ecx, edi
lea rcx, [rbp + 0x40]
je 0x140025ca5
test ebx, ebx
jne 0x140025c99
lea esi, [rax + 0x2c]
jmp 0x140025c52
add ebx, edi
lea rcx, [rax + 2]
mov edx, esi
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x140025c4c
lea rcx, [rbp + 0x40]
sub ebx, edi
je 0x140025c90
sub ebx, edi
je 0x140025c87
cmp ebx, edi
je 0x140025c7e
call qword [sym.imp.msvcrt.dll__wtoi]
mov dword [rsp + 0x48], eax
jmp 0x140025d14
lea rdx, str._lu__lu__lu__lu
jmp 0x140025cac
lea rdx, str._lu__lu__lu
jmp 0x140025cdd
lea rdx, str._lu__lu
jmp 0x140025d04
call qword [sym.imp.msvcrt.dll__wtoi]
mov dword [rsp + 0x40], eax
jmp 0x140025d14
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 0x140025d14
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 0x140025d14
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 0x140025d59
xor r12d, r12d
mov r15, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov edi, r12d
cmp rbx, rsi
setae dil
jae 0x140025d95
mov rax, qword [r15 + 0x78]
test rax, rax
je 0x140025d95
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x140025d88
call fcn.140016dcc
jmp 0x140025d8b
mov rax, r12
cmp rax, rsi
mov edi, r12d
setae dil
test r13, r13
je 0x140025da2
mov rcx, r13
call fcn.14003c408
mov eax, edi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.14003c810
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