Function at 0x140078c88
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5b0]
sub rsp, 0x6b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
xor r12d, r12d
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov rcx, qword [str.___t_]
lea r13, str.___t_
lea eax, [r12 + 5]
lea rdi, [0x140005aa0]
lea r15d, [r12 + 2]
cmp rcx, r13
je 0x140078d15
test byte [rcx + 0x1c], r15b
je 0x140078d15
cmp byte [rcx + 0x19], al
jb 0x140078d15
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x10]
mov r8, rdi
call fcn.14000e618
mov rcx, qword [str.___t_]
test rsi, rsi
je 0x1400790ae
test r14, r14
je 0x1400790ae
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
add ecx, 0xfffffffb
cmp ecx, 1
ja 0x140078efb
call fcn.1400771cc
test eax, eax
jne 0x140078efb
lea r8d, [rax + 0x10]
lea rcx, [rsp + 0x54]
xor edx, edx
mov dword [rsp + 0x50], r12d
call sub.msvcrt.dll_memset
mov ebx, 0x208
lea rcx, [rbp - 0x7e]
mov r8d, ebx
xor edx, edx
mov word [rbp - 0x80], r12w
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x192]
xor edx, edx
mov r8d, 0x40e
mov word [rbp + 0x190], r12w
call sub.msvcrt.dll_memset
lea rcx, [rbp - 0x80]
mov edx, 0x105
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x140078dde
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x1400790d6
test byte [rcx + 0x1c], r15b
je 0x1400790d6
cmp byte [rcx + 0x19], r15b
jb 0x1400790d6
mov edx, 0x17
mov r9d, eax
jmp 0x1400790ca
lea r9, [rbp - 0x80]
lea r8, [0x140005b30]
lea rcx, [rbp + 0x190]
mov rdx, rbx
call fcn.14001000c
test eax, eax
jns 0x140078e32
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x140078e28
test byte [rcx + 0x1c], r15b
je 0x140078e28
cmp byte [rcx + 0x19], r15b
jb 0x140078e28
mov rcx, qword [rcx + 0x10]
mov edx, 0x18
mov r9d, eax
mov r8, rdi
call fcn.14000e63c
mov eax, 0x10b
jmp 0x1400790d8
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x190]
mov dword [rsp + 0x50], 0x14
call fcn.140072df4
mov ebx, eax
test eax, 0xfffffffd
je 0x140078e82
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x1400790d6
test byte [rcx + 0x1c], r15b
je 0x1400790d6
cmp byte [rcx + 0x19], r15b
jb 0x1400790d6
mov edx, 0x19
jmp 0x140078dd6
mov eax, 5
cmp ax, word [rsp + 0x58]
jne 0x140078efb
cmp r15w, word [rsp + 0x5a]
jne 0x140078efb
mov eax, 0x6f0
cmp ax, word [rsp + 0x5c]
je 0x140078eae
mov eax, 0xa28
cmp ax, word [rsp + 0x5c]
jne 0x140078efb
call fcn.140078b18
test rax, rax
jne 0x140078eee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x1400790d6
test byte [rcx + 0x1c], r15b
je 0x1400790d6
cmp byte [rcx + 0x19], r15b
jb 0x1400790d6
mov edx, 0x1a
jmp 0x140078dd6
mov qword [r14], r12
mov qword [rsi], rax
xor eax, eax
jmp 0x1400790d8
lea rax, [rsp + 0x40]
lea rdx, [0x140002bb0]
mov r9d, 0x111
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x140078f56
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x1400790d6
test byte [rcx + 0x1c], r15b
je 0x1400790d6
cmp byte [rcx + 0x19], r15b
jb 0x1400790d6
mov edx, 0x1b
jmp 0x140078dd6
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea ebx, [r9 + 1]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
test rax, rax
jne 0x140078fa6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x14007907a
test byte [rcx + 0x1c], r15b
je 0x14007907a
cmp byte [rcx + 0x19], r15b
jb 0x14007907a
lea edx, [rdi + 0x1c]
jmp 0x140079067
mov rcx, qword [rsp + 0x40]
xor edx, edx
mov r9, rax
lea r8d, [rdx + 4]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov ebx, eax
test eax, eax
je 0x140078fef
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x14007907a
test byte [rcx + 0x1c], r15b
je 0x14007907a
cmp byte [rcx + 0x19], r15b
jb 0x14007907a
mov edx, 0x1d
jmp 0x140079067
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rdx, [0x140002af8]
xor ecx, ecx
mov dword [rsp + 0x28], 4
call fcn.140078870
mov ebx, eax
test eax, eax
jne 0x14007908e
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.140078a14
cmp dword [rsp + 0x48], 4
jne 0x14007907e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x14007907e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r13
je 0x14007907a
test byte [rcx + 0x1c], r15b
je 0x14007907a
cmp byte [rcx + 0x19], r15b
jb 0x14007907a
mov edx, 0x1e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140005aa0]
mov r9d, eax
call fcn.14000e63c
test ebx, ebx
jne 0x14007908e
mov rax, qword [rsp + 0x40]
mov qword [rsi], rdi
mov qword [r14], rax
jmp 0x140078ef4
test rdi, rdi
je 0x14007909c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400790d6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400790d6
mov ebx, 0x57
cmp rcx, r13
je 0x1400790d6
test byte [rcx + 0x1c], r15b
je 0x1400790d6
cmp byte [rcx + 0x19], r15b
jb 0x1400790d6
lea edx, [rbx - 0x41]
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
mov r8, rdi
call fcn.14000e63c
mov eax, ebx
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.140088640
mov rbx, qword [rsp + 0x700]
add rsp, 0x6b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret