Function at 0x14000d360
Capabilities:
Get common file path
Get file version info
Identify system language via api

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2f0
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140298ad8]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r12, rdx
mov qword [rbp - 0x40], rdx
xor r13d, r13d
mov dword [rsp + 0x54], r13d
call fcn.14002d140
mov rcx, rax
mov eax, r13d
test rcx, rcx
setne al
test eax, eax
jne 0x14000d3ce
mov ecx, 0x80004005
call fcn.140001910
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r12], rax
mov r15d, 1
mov dword [rsp + 0x54], r15d
mov qword [rsp + 0x48], r13
call fcn.14002d140
mov rcx, rax
mov eax, r13d
test rcx, rcx
setne al
test eax, eax
jne 0x14000d40c
mov ecx, 0x80004005
call fcn.140001910
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
call fcn.14002d140
mov rcx, rax
mov eax, r13d
test rcx, rcx
setne al
test eax, eax
jne 0x14000d44a
mov ecx, 0x80004005
call fcn.140001910
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 0x30]
lea rax, [rbp - 0x30]
or rsi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x14000d495
movzx ebx, cx
mov ecx, ebx
call fcn.14003e9c8
test rax, rax
je 0x14000d584
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005050
jmp 0x14000d584
lea rax, [rbp - 0x30]
mov rdi, rsi
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14000d4a0
test edi, edi
jne 0x14000d507
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x14000d584
cmp dword [rdx + 0x10], 0
jge 0x14000d4e3
cmp dword [rbx - 0xc], 0
jge 0x14000d4d6
mov ecx, 0x80070057
call fcn.140001910
int3
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x14000d584
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000d4f3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
jmp 0x14000d584
mov r13d, dword [rbx - 0x10]
lea r14, [rbp - 0x30]
sub r14, rbx
sar r14, 1
test edi, edi
jns 0x14000d524
mov ecx, 0x80070057
call fcn.140001910
int3
sub r15d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, r15d
jge 0x14000d543
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140001650
mov rbx, qword [rsp + 0x40]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
lea r15, [rax + rax]
add rdx, rdx
mov r9, r15
cmp r14, r13
ja 0x14000d567
lea r8, [rbx + r14*2]
call fcn.1401aefb8
jmp 0x14000d570
lea r8, [rbp - 0x30]
call fcn.1401aef30
cmp edi, dword [rbx - 0xc]
jg 0x14000d99e
mov dword [rbx - 0x10], edi
xor r13d, r13d
mov word [r15 + rbx], r13w
mov r8d, SafeArrayGetDim
lea rdx, str.kernel32.dll
lea rcx, [rsp + 0x40]
call fcn.140004e90
lea rdx, [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov r14d, eax
test eax, eax
je 0x14000d96a
lea ecx, [rax + 1]
call fcn.1401b0080
mov rdi, rax
mov r9, rax
mov r8d, r14d
mov edx, dword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x14000d95c
mov r8d, 0x18
lea rdx, str.VarFileInfoTranslation
lea rcx, [rsp + 0x30]
call fcn.1400016b0
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14000d668
cmp dword [rsp + 0x38], 4
jne 0x14000d668
mov r9d, 4
mov r8, qword [rsp + 0x48]
mov edx, r9d
lea rcx, [rsp + 0x50]
call fcn.1401aef30
mov edx, dword [rsp + 0x50]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx r9d, dl
shr edx, 8
movzx r8d, dl
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
lea rdx, str.StringFileInfo_02X_02X_02X_02XFileVersion
lea rcx, [rsp + 0x30]
call fcn.140005d60
jmp 0x14000d683
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx r8d, ax
lea rdx, str.StringFileInfo_04X04B0FileVersion
lea rcx, [rsp + 0x30]
call fcn.140005d60
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14000d95c
mov rdx, qword [rsp + 0x48]
test rdx, rdx
jne 0x14000d6b2
mov eax, r13d
jmp 0x14000d6bf
mov rax, rsi
inc rax
cmp word [rdx + rax*2], 0
jne 0x14000d6b5
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.1400016b0
mov dword [rsp + 0x3c], r13d
lea r9, [rsp + 0x3c]
lea r8, [0x1402472fc]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14001c450
nop
lea r8, [rsp + 0x58]
lea rdx, str._KernelMajorVersion___
lea rcx, [rbp - 0x50]
call fcn.140004c10
nop
lea r8, [0x140247300]
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.140004dc0
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
mov rcx, r12
call fcn.140004e90
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000d740
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000d758
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r9, [rsp + 0x3c]
lea r8, [0x1402472fc]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14001c450
nop
lea r8, [rsp + 0x60]
lea rdx, str._KernelMinorVersion___
lea rcx, [rsp + 0x78]
call fcn.140004c10
nop
lea r8, [0x140247300]
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140004dc0
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
mov rcx, r12
call fcn.140004e90
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000d7c8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000d7e1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r9, [rsp + 0x3c]
lea r8, [0x1402472fc]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.14001c450
nop
lea r8, [rsp + 0x68]
lea rdx, str._KernelBuildNum___
lea rcx, [rbp - 0x80]
call fcn.140004c10
nop
lea r8, [0x140247300]
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.140004dc0
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
mov rcx, r12
call fcn.140004e90
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000d850
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000d868
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r9, [rsp + 0x3c]
lea r8, [0x14024717c]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.14001c450
nop
lea r8, [rsp + 0x70]
lea rdx, str._KernelReleaseNum___
lea rcx, [rbp - 0x68]
call fcn.140004c10
nop
lea r8, [0x140247300]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140004dc0
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
mov rcx, r12
call fcn.140004e90
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000d8d7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000d8f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000d90a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000d924
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000d93e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000d957
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x40]
test rdi, rdi
je 0x14000d96a
mov rcx, rdi
call fcn.1401b01cc
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000d97f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000d999
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, r12
jmp 0x14000d9a9
mov ecx, 0x80070057
call fcn.140001910
nop
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1401aef10
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret