Function at 0x7ff74af92ac
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x2d0
mov rax, qword [0x7ff74b58340]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
xor r15d, r15d
mov rax, rdx
mov rbx, rcx
lea rsi, [0x7ff74b58350]
lea r13d, [r15 + 1]
mov edi, r15d
cmp r8d, 3
je 0x7ff74b18a90
mov ebp, 2
cmp r8d, ebp
jne 0x7ff74af94fd
lea rcx, [rsp + 0x48]
lea rdx, str.InprocServer32
mov r9d, 0x20019
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x48], r15
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
cmp eax, ebp
cmove r13d, r15d
cmp rcx, r15
je 0x7ff74af9344
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp r13d, r15d
je 0x7ff74af9519
lea rcx, [rsp + 0xb2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xb0], r15w
call sub.msvcrt.dll_memset
cmp dword [rbx + 0xdc], 0x200
mov edx, 0x103
lea rcx, [rsp + 0xb0]
je 0x7ff74af9556
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
cmp eax, r15d
jbe 0x7ff74b18d98
lea eax, [rax - 1]
mov edx, 0x5c
cmp word [rsp + rax*2 + 0xb0], dx
je 0x7ff74af93c0
mov eax, esi
inc esi
mov word [rsp + rax*2 + 0xb0], dx
mov word [rsp + rsi*2 + 0xb0], r15w
mov rcx, qword [0x7ff74b584e0]
mov edi, esi
mov rax, rbp
add rdi, 0x3e
mov r14, 0xffffffffffffffff
mov qword [rsp + 0x38], rdi
mul rdi
cmovo rax, r14
xor edx, edx
mov r8, rax
call qword [0x7ff74b58358]
mov qword [rbx + 0x108], rax
cmp rax, r15
je 0x7ff74b18d7c
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x28], r15d
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0xb0]
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x30], rax
call fcn.7ff74af0674
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, str.DllHost.exe__Processid:
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call fcn.7ff74af0674
lea rcx, [rbx + 0x40]
lea r8d, [r14 + 0x28]
lea rdx, [rsp + 0x60]
call fcn.7ff74af9550
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call fcn.7ff74af0674
mov edi, eax
jmp 0x7ff74af9492
cmp edi, r15d
jl 0x7ff74af94f1
mov rcx, qword [0x7ff74b584e0]
lea edi, [rsi + 0xc]
mov rax, rbp
mul rdi
cmovo rax, r14
xor edx, edx
mov r8, rax
call qword [0x7ff74b58358]
mov qword [rbx + 0x110], rax
cmp rax, r15
je 0x7ff74b18d8e
lea r8, [rsp + 0xb0]
mov rdx, rdi
mov rcx, rax
call fcn.7ff74af051c
mov rcx, qword [rbx + 0x110]
lea r8, str.DllHost.exe
mov rdx, rdi
call fcn.7ff74af91bc
mov edi, eax
lea rsi, [0x7ff74b58350]
cmp r13d, r15d
je 0x7ff74af9504
or dword [rbx + 0xd0], 4
cmp edi, 0x80070002
je 0x7ff74b18d86
cmp edi, r15d
jl 0x7ff74b18df4
mov eax, edi
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.7ff74ae3090
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x7ff74af938e
add rcx, 8
lea r8, [rsp + 0x48]
lea rdx, [0x7ff74b4db10]
mov rax, qword [rcx]
mov qword [rsp + 0x48], r15
call qword [rax + 0x30]
cmp eax, r15d
mov edi, eax
jl 0x7ff74af9519
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x50], r15d
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x50]
call qword [rax + 0xd0]
cmp eax, r15d
mov edi, eax
jl 0x7ff74b18d6c
mov rdi, qword [rsp + 0x38]
xor eax, eax
or r14, 0xffffffffffffffff
mov rcx, r14
lea ebp, [rax + 2]
repne scasw ax, word [rdi]
mov rax, rbp
not rcx
cmp dword [rsp + 0x50], r15d
jne 0x7ff74b18bf3
lea rdi, [rcx + 0x32]
mov rcx, qword [0x7ff74b584e0]
mov qword [rsp + 0x40], rdi
mul rdi
cmovo rax, r14
xor edx, edx
mov r8, rax
call qword [0x7ff74b58358]
mov qword [rbx + 0x108], rax
cmp rax, r15
je 0x7ff74b18c2f
mov r8, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x30]
mov rdx, rdi
mov rcx, rax
mov qword [rsp + 0x30], rax
call fcn.7ff74af0674
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
lea r8, [0x7ff74b4f348]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call fcn.7ff74af0674
lea rcx, [rbx + 0x30]
lea r8d, [r15 + 0x27]
lea rdx, [rsp + 0x60]
call fcn.7ff74af9550
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call fcn.7ff74af0674
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
lea r8, str.__Embedding
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call fcn.7ff74af0674
jmp 0x7ff74b18c2b
mul rcx
mov rdi, rcx
mov rcx, qword [0x7ff74b584e0]
cmovo rax, r14
xor edx, edx
mov r8, rax
call qword [0x7ff74b58358]
mov qword [rbx + 0x108], rax
cmp rax, r15
je 0x7ff74b18c2f
mov r8, qword [rsp + 0x38]
mov rdx, rdi
mov rcx, rax
call fcn.7ff74af051c
mov edi, eax
jmp 0x7ff74b18c34
mov edi, 0x8007000e
cmp edi, r15d
jl 0x7ff74b18d6c
cmp dword [rbx + 0xdc], 0x200
je 0x7ff74b18cec
mov rdx, qword [rbx + 0x108]
lea r8, [rsp + 0x40]
mov rcx, rbx
call fcn.7ff74afa5ac
cmp eax, r15d
mov edi, eax
jl 0x7ff74b18d6c
cmp dword [rsp + 0x40], ebp
je 0x7ff74b18cec
mov edi, 0x80040154
cmp dword [0x7ff74b582c8], r15d
je 0x7ff74b18cbb
mov rcx, qword [0x7ff74b58350]
cmp rcx, rsi
je 0x7ff74b18cbb
test byte [rcx + 0x1c], 8
je 0x7ff74b18cbb
mov rax, qword [rbx + 0x108]
mov rcx, qword [rcx + 0x10]
lea r9, [rbx + 0x60]
lea r8, [0x7ff74b4f5f0]
mov edx, 0x23
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call fcn.7ff74b2ddbc
mov r8, qword [rbx + 0x108]
mov r13d, r15d
cmp r8, r15
je 0x7ff74b18ce5
lea rax, [0x7ff74b4f658]
cmp r8, rax
je 0x7ff74b18ce5
mov rcx, qword [0x7ff74b584e0]
xor edx, edx
call qword [case.0x7ff74b3e5fd.0]
mov qword [rbx + 0x108], r15
cmp edi, r15d
jl 0x7ff74b18d6c
cmp r13d, r15d
je 0x7ff74b18d6c
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], r15
lea rdx, [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0xd8]
cmp eax, r15d
jl 0x7ff74b18d69
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rcx, r14
repne scasw ax, word [rdi]
mov rax, rbp
not rcx
mov rdi, rcx
mul rcx
mov rcx, qword [0x7ff74b584e0]
cmovo rax, r14
xor edx, edx
mov r8, rax
call qword [0x7ff74b58358]
mov qword [rbx + 0x110], rax
cmp rax, r15
je 0x7ff74b18d62
mov r8, qword [rsp + 0x30]
mov rdx, rdi
mov rcx, rax
call fcn.7ff74af051c
mov edi, eax
jmp 0x7ff74b18d6c
mov edi, 0x8007000e
jmp 0x7ff74b18d6c
mov edi, r15d
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x7ff74af94f8
mov edi, 0x8007000e
jmp 0x7ff74af9492
mov edi, r15d
jmp 0x7ff74af9519
mov edi, 0x8007000e
jmp 0x7ff74af94f1
cmp dword [0x7ff74b582c8], r15d
je 0x7ff74af94f1
mov rcx, qword [0x7ff74b58350]
lea rsi, [0x7ff74b58350]
cmp rcx, rsi
je 0x7ff74af94f8
test byte [rcx + 0x1c], 1
je 0x7ff74af94f8
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x7ff74b58350]
lea r9, [rbx + 0x60]
mov rcx, qword [rcx + 0x10]
lea r8, [0x7ff74b4f5f0]
mov edx, 0x24
mov dword [rsp + 0x20], eax
call fcn.7ff74b298f0
jmp 0x7ff74af94f8
cmp dword [0x7ff74b582c8], r15d
je 0x7ff74af9519
mov rcx, qword [0x7ff74b58350]
cmp rcx, rsi
je 0x7ff74af9519
test byte [rcx + 0x1c], 1
je 0x7ff74af9519
mov rcx, qword [rcx + 0x10]
lea r9, [rbx + 0x60]
lea r8, [0x7ff74b4f5f0]
mov edx, 0x25
mov dword [rsp + 0x20], edi
call fcn.7ff74b298f0
nop
jmp 0x7ff74af9519