Function at 0x140003690
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xf0], rax
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov r8d, 0x104
lea rdx, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Software_svchost
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r12
mov r13d, 0xf
mov qword [rbp - 0x30], r13
mov byte [rbp - 0x48], r12b
lea r9, [rbp - 0x58]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400104e0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140003b77
mov rcx, qword [rbp - 0x58]
mov qword [rsp + 0x30], rcx
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140003761
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.140006d90
nop
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
call fcn.14000d604
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140006c30
mov edi, 0x78
mov r8d, 8
lea rdx, str._svchost
lea rcx, [rsp + 0x68]
call fcn.140004980
movups xmm0, xmmword [rax]
movups xmm6, xmmword [rax + 0x10]
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r13
mov byte [rax], 0
bts edi, 7
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x38], xmm6
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140003845
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003840
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003840
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e0a4
movdqa xmm0, xmmword [0x140010f30]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14000389d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003898
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003898
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e0a4
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movdqa xmm0, xmm6
psrldq xmm0, 8
movq r13, xmm0
mov r14, qword [rbp - 0x48]
test esi, esi
jne 0x140003a56
lea rax, [rbp - 0x20]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x20]
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400038d0
mov qword [rsp + 0x38], rbx
call fcn.14000d604
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rbp - 0x78]
call fcn.140001e60
or edi, 0x300
or edi, 1
mov dword [rsp + 0x40], edi
lea rbx, [rbp - 0x78]
cmp qword [rbp - 0x60], 7
cmova rbx, qword [rbp - 0x78]
mov rax, qword [rbp - 0x68]
lea rdx, [rbx + rax*2]
mov rcx, rbx
call fcn.140001fd0
cmp rax, rdx
je 0x14000399c
nop
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x14000393f
cmp cx, 0x2f
jne 0x140003948
add rax, 2
cmp rax, rdx
jne 0x140003930
cmp rax, rdx
je 0x14000399c
nop dword [rax]
lea r8, [rdx - 2]
movzx ecx, word [r8]
cmp cx, 0x5c
je 0x14000396e
cmp cx, 0x2f
je 0x14000396e
mov rdx, r8
cmp rax, r8
jne 0x140003950
jmp 0x14000399c
cmp rax, rdx
je 0x14000399c
nop dword [rax]
nop word [rax + rax]
lea r8, [rdx - 2]
movzx ecx, word [r8]
cmp cx, 0x5c
je 0x140003994
cmp cx, 0x2f
jne 0x14000399c
mov rdx, r8
cmp rax, r8
jne 0x140003980
sub rdx, rbx
sar rdx, 1
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdx
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.140006d90
or edi, 0xc00
or edi, 2
mov dword [rsp + 0x40], edi
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 7
cmova rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
call fcn.14000d604
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x30]
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.140006c30
or edi, 0x7004
lea rdx, [rsp + 0x48]
mov rbx, qword [rsp + 0x48]
mov r15, qword [rsp + 0x60]
cmp r15, 0xf
cmova rdx, rbx
lea rcx, [rbp - 0x48]
cmp r13, 0xf
cmova rcx, r14
movq r8, xmm6
cmp r8, qword [rsp + 0x58]
jne 0x140003a60
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140003a60
mov sil, 1
jmp 0x140003a63
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x48]
xor sil, sil
test dil, 4
je 0x140003ab9
and edi, 0xfffffffb
cmp r15, 0xf
jbe 0x140003aa6
lea rdx, [r15 + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140003a9e
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003a9e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.14000e0a4
movdqa xmm0, xmmword [0x140010f30]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
movdqa xmm6, xmmword [0x140010f20]
test dil, 2
je 0x140003b1a
and edi, 0xfffffffd
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x140003b0e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003b09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003b09
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e0a4
movdqu xmmword [rsp + 0x78], xmm6
mov word [rsp + 0x68], r12w
test dil, 1
je 0x140003b7e
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x140003b6b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003b5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003b5e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e0a4
movdqa xmm6, xmmword [0x140010f20]
movdqu xmmword [rbp - 0x68], xmm6
mov word [rbp - 0x78], r12w
jmp 0x140003b7e
xor sil, sil
mov r14, qword [rbp - 0x48]
cmp r13, 0xf
jbe 0x140003bb8
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140003bb0
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003bb0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14000e0a4
movzx eax, sil
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14000df70
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret