Function at 0x14001c764
Capabilities:
Get common file path
Get file version info

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 - 0x68]
sub rsp, 0x140
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x30], rax
xor r12d, r12d
lea rdi, [rcx + 0x18]
mov rsi, rcx
mov ebx, r12d
cmp qword [rdi], r12
jne 0x14001cb88
mov r13d, 0x80
mov ebx, 0x80004005
mov ecx, r13d
call fcn.14003c460
mov qword [rdi], rax
test rax, rax
je 0x14001cb8f
test dword [rsi + 4], 0xfffffffc
jne 0x14001c815
cmp dword [rsi + 4], 2
je 0x14001c815
test rdi, rdi
je 0x14001cb83
mov rcx, rax
call fcn.14003c408
mov ecx, 0x10
mov qword [rdi], r12
call fcn.14003c460
mov qword [rdi], rax
test rax, rax
jne 0x14001c809
mov ebx, 0x8007000e
jmp 0x14001cb88
lea r8, str.0.0.0.0
jmp 0x14001cb5e
mov dword [rsp + 0x44], r12d
cmp qword [rsi + 0x10], r12
je 0x14001cb2c
mov ecx, 0x208
call fcn.14003c460
mov r15, rax
test rax, rax
je 0x14001cb2c
mov rdx, rax
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14001cb1d
mov rcx, qword [rsi + 0x10]
mov edx, 0x5c
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov r14, rax
test rax, rax
je 0x14001c86d
add r14, 2
jmp 0x14001c871
mov r14, qword [rsi + 0x10]
mov rcx, r15
mov dword [rsp + 0x40], r12d
mov esi, r12d
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov r8, r14
mov edx, 0x104
mov rcx, r15
call fcn.140001584
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], r12d
mov rcx, r15
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r12d, eax
mov r14d, 1
test eax, eax
jne 0x14001ca64
mov rcx, r15
call fcn.140017488
xor r12d, r12d
test eax, eax
je 0x14001cb1d
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], r13d
mov r8d, r14d
xor edx, edx
mov dword [rsp + 0x20], 3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14001cb1d
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov r13d, ebx
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x14001ca59
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x14001ca59
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0xac
call sub.msvcrt.dll_memset
movzx ecx, word [rsp + 0x70]
mov r13d, r12d
movzx esi, word [rsp + 0x72]
movzx eax, word [rsp + 0x76]
mov dword [rsp + 0x40], ecx
lea rcx, [rbp - 0x80]
shl esi, 0x10
or esi, eax
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
cmp eax, 0xffffffff
je 0x14001ca59
mov r8d, dword [rbp - 0x80]
lea r9d, [r12 + 1]
movzx eax, r8w
neg ax
test r8d, r8d
cmovg ax, r8w
movzx ecx, ax
mov eax, 0x88888889
mul ecx
movzx eax, word [rsp + 0x78]
movzx ecx, word [rsp + 0x76]
shr edx, 5
cmp r8d, r9d
jge 0x14001c9a7
add ax, dx
jmp 0x14001c9c2
cmp ax, dx
jae 0x14001c9bf
mov r8d, 0xffff
add cx, r8w
mov word [rsp + 0x76], cx
add ax, 0x18
sub ax, dx
mov word [rsp + 0x78], ax
cmp ax, 0x17
jbe 0x14001ca0f
add cx, r9w
mov edx, 0xffe8
add ax, dx
mov word [rsp + 0x76], cx
mov word [rsp + 0x78], ax
cmp cx, 0x20
jne 0x14001ca0f
movzx eax, word [rsp + 0x72]
add ax, r9w
mov word [rsp + 0x76], r9w
mov word [rsp + 0x72], ax
cmp ax, 0xd
jne 0x14001ca0f
add word [rsp + 0x70], r9w
mov word [rsp + 0x72], r9w
xorps xmm0, xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
movsd qword [rsp + 0x50], xmm0
call qword [sym.imp.OLEAUT32.dll_VariantTimeToSystemTime]
test eax, eax
je 0x14001ca59
movsd xmm0, qword [rsp + 0x50]
lea rdx, [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
test eax, eax
je 0x14001ca59
movzx esi, word [rsp + 0x72]
movzx ecx, word [rsp + 0x70]
movzx eax, word [rsp + 0x76]
shl esi, 0x10
or esi, eax
mov dword [rsp + 0x40], ecx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001cacb
mov rcx, r12
call fcn.14003c460
mov r14, rax
test rax, rax
je 0x14001cb1a
mov r9, rax
mov r8d, r12d
xor edx, edx
mov rcx, r15
mov r13d, ebx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
xor r12d, r12d
test eax, eax
je 0x14001cac3
lea r9, [rsp + 0x58]
mov rcx, r14
lea r8, [rsp + 0x68]
lea rdx, [0x140042140]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14001cac3
mov rax, qword [rsp + 0x68]
mov r13d, r12d
mov ecx, dword [rax + 8]
mov esi, dword [rax + 0xc]
mov dword [rsp + 0x40], ecx
mov rcx, r14
call fcn.14003c408
test r13d, r13d
js 0x14001cb1d
mov edx, dword [rsp + 0x40]
lea r8, str._lu._lu._lu._lu
movzx eax, dx
shr edx, 0x10
movzx ecx, si
mov r9d, edx
mov dword [rsp + 0x30], ecx
mov edx, 0x104
shr esi, 0x10
mov rcx, r15
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], eax
call fcn.140001734
mov rdx, r15
mov rcx, rdi
call fcn.140016d18
mov ebx, eax
mov dword [rsp + 0x44], 1
jmp 0x14001cb1d
xor r12d, r12d
mov rcx, r15
call fcn.14003c408
cmp dword [rsp + 0x44], r12d
jne 0x14001cb88
test rdi, rdi
je 0x14001cb83
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001cb41
call fcn.14003c408
mov qword [rdi], r12
mov ecx, 0x10
call fcn.14003c460
mov qword [rdi], rax
test rax, rax
je 0x14001c7ff
lea r8, str.1.0.0.0
mov edx, 8
mov rcx, rax
call fcn.140001470
mov ebx, eax
test eax, eax
jns 0x14001cb88
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001cb88
call fcn.14003c408
mov qword [rdi], r12
jmp 0x14001cb88
mov ebx, 0x80004003
not ebx
shr ebx, 0x1f
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14003c810
lea r11, [rsp + 0x140]
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