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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x280
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x140076bc8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r13, r8
mov r12, rdx
mov qword [rsp + 0x68], r8
xor esi, esi
mov dword [rsp + 0x30], esi
call fcn.140021e08
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x140007032
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [0x1400582df]
or rbx, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x140007076
movzx edi, dx
mov ecx, edi
call fcn.140021df4
test rax, rax
je 0x140007092
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002ef0
jmp 0x140007092
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x38]
call fcn.140003070
nop
call fcn.140021e08
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x1400070b1
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
call fcn.140021e08
mov rcx, rax
test rax, rax
setne sil
test esi, esi
jne 0x1400070de
mov ecx, 0x80004005
call fcn.140001000
int3
mov rax, qword [rax]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x48], rdi
mov edx, 0x200
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov rdx, qword [r13]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
je 0x14000729e
mov r9, rax
mov r8d, ebp
mov edx, dword [rsp + 0x30]
lea rcx, [rsp + 0x70]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x140007295
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x50]
lea rdx, [0x140058cac]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x14000729e
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 0xc]
mov r8d, dword [rax + 8]
movzx eax, cx
shr ecx, 0x10
movzx r9d, r8w
shr r8d, 0x10
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._d._d._d._d
lea rcx, [rsp + 0x38]
call fcn.140003610
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rsi - 8], 0
jl 0x1400071d4
cmp rax, qword [rsi - 0x18]
jne 0x1400071d4
lea rbp, [rsi - 0x18]
lock add dword [rsi - 8], 1
mov rdi, qword [rsp + 0x48]
jmp 0x14000720e
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rsi - 0x10]
call qword [rax]
mov rbp, rax
test rax, rax
jne 0x1400071f0
call fcn.140002210
int3
mov eax, dword [rsi - 0x10]
mov dword [rbp + 8], eax
mov eax, dword [rsi - 0x10]
add eax, 1
movsxd rdx, eax
mov r8, rsi
lea rcx, [rbp + 0x18]
mov r9, rdx
call fcn.14003cf60
lea rax, [rbp + 0x18]
mov qword [r12], rax
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140007232
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140007253
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
nop
mov eax, ebx
lock xadd dword [rsi - 8], eax
add eax, 0xffffffff
test eax, eax
jg 0x140007270
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
nop
mov rdx, qword [r13]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14000728d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov rax, r12
jmp 0x140007388
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rsi, qword [rsp + 0x38]
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rsi - 8], 0
jl 0x1400072cc
cmp rax, qword [rsi - 0x18]
jne 0x1400072cc
lea rbp, [rsi - 0x18]
lock add dword [rsi - 8], 1
mov rdi, qword [rsp + 0x48]
jmp 0x140007306
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rsi - 0x10]
call qword [rax]
mov rbp, rax
test rax, rax
jne 0x1400072e8
call fcn.140002210
int3
mov eax, dword [rsi - 0x10]
mov dword [rbp + 8], eax
mov eax, dword [rsi - 0x10]
add eax, 1
movsxd rdx, eax
mov r8, rsi
lea rcx, [rbp + 0x18]
mov r9, rdx
call fcn.14003cf60
lea rax, [rbp + 0x18]
mov qword [r12], rax
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000732a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14000734b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
nop
mov eax, ebx
lock xadd dword [rsi - 8], eax
add eax, 0xffffffff
test eax, eax
jg 0x140007368
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
nop
mov rdx, qword [r13]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x140007385
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.oledlg.dll_OleUIBusyA]
mov rax, r12
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14003bc70
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret