Function at 0x140077880
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x3d0], xmm6
mov qword [rbp + 0x3c8], 0xfffffffffffffffe
mov r15d, r8d
mov rbx, rdx
mov r14, rcx
mov rsi, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
mov rdi, rdx
jb 0x1400778c7
mov rdi, qword [rbx]
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x320], xmm0
movdqa xmmword [rbp + 0x310], xmm0
test rsi, rsi
je 0x14007796f
mov qword [rbp + 0x328], 7
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
jae 0x140078519
cmp rsi, 8
jb 0x14007797f
mov rax, rsi
or rax, 7
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x14007851e
mov r12d, r15d
mov r15, rbx
cmp rax, 0xb
mov ebx, 0xa
cmovae rbx, rax
lea rcx, [rbx + rbx]
cmp rbx, 0x7ff
jb 0x14007798e
movabs rax, 0x7fffffffffffffec
cmp rbx, rax
jae 0x14007851e
add rcx, 0x29
call fcn.1400b605c
mov rcx, rax
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140077997
mov qword [rbp + 0x328], 7
jmp 0x140077aeb
lea rax, [rbp + 0x310]
cmp rsi, 0x10
jae 0x1400779b1
jmp 0x1400779cb
add rcx, 2
call fcn.1400b605c
mov qword [rbp + 0x310], rax
mov qword [rbp + 0x328], rbx
mov rbx, r15
mov r15d, r12d
cmp rsi, 0x10
jb 0x1400779cb
lea rcx, [rdi + rsi]
cmp rax, rcx
jae 0x140077a89
lea rcx, [rax + rsi*2]
cmp rdi, rcx
jae 0x140077a89
mov rcx, rdi
mov rdx, rsi
mov r8, rax
lea r9, [rdx - 1]
mov r11, rdx
and r11, 7
je 0x140077a0b
xor r10d, r10d
nop word cs:[rax + rax]
movsx edi, byte [rcx + r10]
mov word [r8], di
add r8, 2
inc r10
cmp r11, r10
jne 0x1400779f0
add rcx, r10
sub rdx, r10
cmp r9, 7
jb 0x140077ade
xor r9d, r9d
nop dword [rax + rax]
movsx r10d, byte [rcx + r9]
mov word [r8 + r9*2], r10w
movsx r10d, byte [rcx + r9 + 1]
mov word [r8 + r9*2 + 2], r10w
movsx r10d, byte [rcx + r9 + 2]
mov word [r8 + r9*2 + 4], r10w
movsx r10d, byte [rcx + r9 + 3]
mov word [r8 + r9*2 + 6], r10w
movsx r10d, byte [rcx + r9 + 4]
mov word [r8 + r9*2 + 8], r10w
movsx r10d, byte [rcx + r9 + 5]
mov word [r8 + r9*2 + 0xa], r10w
movsx r10d, byte [rcx + r9 + 6]
mov word [r8 + r9*2 + 0xc], r10w
movsx r10d, byte [rcx + r9 + 7]
mov word [r8 + r9*2 + 0xe], r10w
add r9, 8
cmp rdx, r9
jne 0x140077a20
jmp 0x140077ade
mov r9, rsi
and r9, 0xfffffffffffffff0
lea rcx, [rdi + r9]
mov edx, esi
and edx, 0xf
lea r8, [rax + r9*2]
xor r10d, r10d
movq xmm0, qword [rdi + r10]
punpcklbw xmm0, xmm0
movq xmm1, qword [rdi + r10 + 8]
punpcklbw xmm1, xmm1
psraw xmm0, 8
psraw xmm1, 8
movdqu xmmword [rax + r10*2], xmm0
movdqu xmmword [rax + r10*2 + 0x10], xmm1
add r10, 0x10
cmp r9, r10
jne 0x140077aa0
cmp rsi, r9
jne 0x1400779d4
mov qword [rbp + 0x320], rsi
mov word [rax + rsi*2], 0
movzx ecx, r15b
add rcx, 0xffffffff80000001
lea rax, [rbp + 0x338]
mov qword [rsp + 0x20], rax
lea rdx, [0x14018e104]
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140077b27
pxor xmm0, xmm0
movdqu xmmword [r14], xmm0
jmp 0x140077b6e
mov rcx, qword [rbp + 0x338]
xorps xmm6, xmm6
movups xmmword [rsp + 0x50], xmm6
lea rax, [rbp + 0x354]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x350]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140077be8
movups xmmword [r14], xmm6
mov qword [r14 + 0x10], 0
mov qword [r14 + 0x18], 0xf
mov rax, qword [rbp + 0x328]
cmp rax, 8
jb 0x140077bca
mov rcx, qword [rbp + 0x310]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x140077bc5
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140078514
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.1400b60a0
mov rax, r14
movaps xmm6, xmmword [rbp + 0x3d0]
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov byte [rbp + 0x3c7], r15b
mov qword [rbp + 0x2f8], rbx
mov qword [rbp + 0x3b8], r14
mov dword [rbp + 0x354], 0x104
mov dword [rbp + 0x350], 0x104
mov ecx, 0x208
call fcn.1400b60d4
mov rdi, rax
mov ecx, 0x104
call fcn.1400b60d4
mov r13, rax
movaps xmmword [rbp + 0x390], xmm6
mov qword [rbp + 0x3a8], 7
xor eax, eax
mov ecx, 7
lea rbx, [rbp + 0x390]
lea r15, [rbp + 0x35c]
lea r14, [rbp + 0x334]
xor esi, esi
mov qword [rbp + 0x2f0], rdi
jmp 0x140077c8b
cmp eax, 0x103
je 0x140077e2b
inc esi
mov rax, qword [rbp + 0x390]
mov rcx, qword [rbp + 0x3a8]
mov qword [rbp + 0x3a0], 0
cmp rcx, 8
cmovb rax, rbx
mov word [rax], 0
mov eax, dword [rbp + 0x354]
mov dword [rbp + 0x35c], eax
mov eax, dword [rbp + 0x350]
mov dword [rbp + 0x358], eax
mov rcx, qword [rbp + 0x338]
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], 0
mov edx, esi
mov r8, rdi
lea r9, [rbp + 0x358]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140077c70
cmp dword [rbp + 0x334], 1
jne 0x140077c70
mov r8d, dword [rbp + 0x358]
movaps xmmword [rbp + 0xe0], xmm6
movaps xmmword [rbp + 0xf0], xmm6
lea r12, [rbp + 0xe0]
mov rcx, r12
mov rdx, rdi
call fcn.1400808b0
cmp qword [rbp + 0xf8], 8
jb 0x140077d35
mov r12, qword [rbp + 0xe0]
cmp qword [rbp + 0x328], 8
lea rcx, [rbp + 0x310]
jb 0x140077d4d
mov rcx, qword [rbp + 0x310]
mov r8, qword [rbp + 0x320]
mov rdx, r12
call fcn.1401386c8
mov edi, eax
test eax, eax
jne 0x140077dd0
mov r9, r13
mov r13d, dword [rbp + 0x35c]
shr r13d, 1
mov rax, qword [rbp + 0x3a8]
cmp rax, r13
jae 0x140077d8b
mov rcx, rbx
mov rdx, r13
mov r13, r9
call fcn.140081d90
jmp 0x140077dd0
mov r12, rbx
cmp rax, 8
jb 0x140077d9b
mov r12, qword [rbp + 0x390]
mov qword [rbp + 0x3a0], r13
lea r8, [r13*2]
mov rcx, r12
mov rbx, r9
mov rdx, r9
call fcn.140159580
mov word [r12 + r13*2], 0
mov r13, rbx
lea rbx, [rbp + 0x390]
nop dword [rax]
mov rax, qword [rbp + 0xf8]
cmp rax, 8
jb 0x140077e1c
mov rcx, qword [rbp + 0xe0]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x140077e17
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140078514
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.1400b60a0
test edi, edi
mov rdi, qword [rbp + 0x2f0]
jne 0x140077c7b
mov rcx, rdi
call fcn.1400b60a0
mov rcx, r13
call fcn.1400b60a0
mov rcx, qword [rbp + 0x338]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9, qword [rbp + 0x3a0]
test r9, r9
je 0x140077e96
mov r8, qword [rbp + 0x390]
mov rax, qword [rbp + 0x3a8]
cmp rax, 8
lea rdi, [rbp + 0x390]
mov rcx, rdi
cmovae rcx, r8
mov rdx, 0xfffffffffffffffe
xor r10d, r10d
nop
cmp word [rcx + r10*2], 0x5c
je 0x140077ebe
add rdx, 0xfffffffffffffffe
inc r10
cmp r9, r10
jne 0x140077e80
jmp 0x140077ec7
cmp byte [rbp + 0x3c7], 0
je 0x14007810f
mov rcx, qword [rbp + 0x3b8]
mov rdx, qword [rbp + 0x2f8]
xor r8d, r8d
call fcn.140077880
jmp 0x1400784c0
test rdx, rdx
jne 0x140078056
lea rcx, [rbp + 0xe0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rbp - 0x18]
mov edx, 1
call fcn.140085570
lea rcx, [rbp - 8]
lea rdx, [rbp + 0xe0]
call fcn.14007c610
movabs rcx, 0x58e5aac15659b459
mov qword [rbp + 0x370], rcx
mov rcx, qword [rbp + 0x370]
mov qword [rbp + 0x340], rcx
movabs rcx, 0x5706b43055f63526
mov qword [rbp + 0x370], rcx
mov rdx, qword [rbp + 0x370]
mov qword [rbp + 0x348], rdx
movabs rdx, 0x58b9d9b53836f205
mov qword [rbp + 0x370], rdx
mov qword [rbp + 0x360], rcx
mov rcx, qword [rbp + 0x360]
mov qword [rbp + 0x378], rcx
lea rcx, [rbp + 0x370]
mov qword [rbp + 0x360], rcx
mov rcx, qword [rbp + 0x360]
movdqa xmm0, xmmword [rbp + 0x340]
pxor xmm0, xmmword [rcx]
movdqa xmmword [rbp + 0x340], xmm0
lea rdx, [rbp + 0x340]
mov rcx, rax
call fcn.140089870
mov r8, qword [rbp + 0x3a0]
cmp qword [rbp + 0x3a8], 8
jb 0x140077fad
mov rdx, qword [rbp + 0x390]
jmp 0x140077fb4
lea rdx, [rbp + 0x390]
mov rcx, rax
call fcn.140083400
lea rcx, [rbp - 0x18]
lea rdx, [rbp + 0x370]
call fcn.140082940
mov rax, qword [rbp + 0x3a8]
cmp rax, 8
jb 0x140078018
mov rcx, qword [rbp + 0x390]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x140078013
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140078514
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.1400b60a0
movdqu xmm0, xmmword [rbp + 0x370]
movdqu xmm1, xmmword [rbp + 0x380]
movdqa xmmword [rbp + 0x3a0], xmm1
movdqa xmmword [rbp + 0x390], xmm0
lea rcx, [rbp - 0x18]
call fcn.140081ec0
mov r8, qword [rbp + 0x390]
mov r9, qword [rbp + 0x3a0]
mov rax, qword [rbp + 0x3a8]
cmp rax, 8
cmovb r8, rdi
xorps xmm6, xmm6
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movaps xmmword [rbp + 0xf0], xmm6
movaps xmmword [rbp + 0xe0], xmm6
test eax, eax
js 0x140078523
mov esi, eax
movsxd rbx, eax
cmp eax, 0xf
ja 0x1400780d7
mov qword [rbp + 0xf0], rbx
mov qword [rbp + 0xf8], 0xf
lea rcx, [rbp + 0xe0]
xor edx, edx
mov r8, rbx
call fcn.140159c20
lea r14, [rbx + rbp]
add r14, 0xe0
jmp 0x140078164
mov rax, rbx
or rax, 0xf
cmp rax, 0x17
mov r15d, 0x16
cmovae r15, rax
cmp r15, 0xfff
jb 0x140078133
lea rcx, [r15 + 0x28]
call fcn.1400b605c
mov r14, rax
add r14, 0x27
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x14007813f
pxor xmm0, xmm0
mov rax, qword [rbp + 0x3b8]
movdqu xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
jmp 0x1400784c0
lea rcx, [r15 + 1]
call fcn.1400b605c
mov r14, rax
mov qword [rbp + 0xe0], r14
mov qword [rbp + 0xf0], rbx
mov qword [rbp + 0xf8], r15
mov rcx, r14
xor edx, edx
mov r8, rbx
call fcn.140159c20
add r14, rbx
mov byte [r14], 0
cmp qword [rbp + 0xf8], 0x10
jb 0x14007817b
mov rax, qword [rbp + 0xe0]
jmp 0x140078182
lea rax, [rbp + 0xe0]
mov rbx, qword [rbp + 0x3b8]
cmp qword [rbp + 0x3a8], 8
jb 0x14007819a
mov rdi, qword [rbp + 0x390]
pxor xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rdi
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp qword [rbp + 0xf0], 0
je 0x140078464
lea rdx, [0x14018ddaa]
lea rcx, [rbp + 0xe0]
xor r8d, r8d
call fcn.14008c3b0
cmp rax, 0xffffffffffffffff
je 0x14007836b
lea rdi, [rbp + 0x370]
mov qword [rsp + 0x20], rdi
lea rsi, [rbp - 0x18]
lea rdx, [rbp + 0xe0]
mov r9d, 4
mov r8, rax
mov rcx, rsi
call fcn.140086680
movabs rax, 0x58b9d9b55e42862b
mov qword [rbp + 0x370], rax
mov rax, qword [rbp + 0x370]
mov qword [rbp + 0x340], rax
movabs rbx, 0x5706b43055f63526
mov qword [rbp + 0x370], rbx
mov rax, qword [rbp + 0x370]
mov qword [rbp + 0x348], rax
movabs r14, 0x58b9d9b53836f205
mov qword [rbp + 0x370], r14
mov qword [rbp + 0x360], rbx
mov rax, qword [rbp + 0x360]
mov qword [rbp + 0x378], rax
mov qword [rbp + 0x360], rdi
mov rax, qword [rbp + 0x360]
movdqa xmm0, xmmword [rbp + 0x340]
pxor xmm0, xmmword [rax]
movdqa xmmword [rbp + 0x340], xmm0
lea rcx, [rbp + 0x340]
call fcn.14013ff50
cmp qword [rbp - 8], rax
jne 0x1400782d6
cmp qword [rbp], 0x10
jb 0x1400782bc
mov rsi, qword [rbp - 0x18]
lea rdx, [rbp + 0x340]
mov rcx, rsi
mov r8, rax
call fcn.140159480
test eax, eax
je 0x14007835c
movabs rax, 0x58b9d9b55e429d2b
mov qword [rbp + 0x370], rax
mov rax, qword [rbp + 0x370]
mov qword [rbp + 0x360], rax
mov qword [rbp + 0x370], rbx
mov rax, qword [rbp + 0x370]
mov qword [rbp + 0x368], rax
mov qword [rbp + 0x370], r14
mov qword [rbp + 0x3b0], rbx
mov rax, qword [rbp + 0x3b0]
mov qword [rbp + 0x378], rax
mov qword [rbp + 0x3b0], rdi
mov rax, qword [rbp + 0x3b0]
movdqa xmm0, xmmword [rbp + 0x360]
pxor xmm0, xmmword [rax]
movdqa xmmword [rbp + 0x360], xmm0
lea rcx, [rbp - 0x18]
lea rdx, [rbp + 0x360]
call fcn.1400817c0
test al, al
je 0x14007837f
mov sil, 1
mov rbx, qword [rbp + 0x3b8]
jmp 0x140078420
lea rdx, [0x14018e103]
mov rcx, rbx
call fcn.1400106e0
jmp 0x14007847f
movabs rax, 0x58b9d9b55b42862b
mov qword [rbp + 0x370], rax
mov rax, qword [rbp + 0x370]
mov qword [rbp + 0x300], rax
mov qword [rbp + 0x370], rbx
mov rax, qword [rbp + 0x370]
mov qword [rbp + 0x308], rax
mov qword [rbp + 0x370], r14
mov qword [rbp + 0x3b0], rbx
mov rax, qword [rbp + 0x3b0]
mov qword [rbp + 0x378], rax
mov qword [rbp + 0x3b0], rdi
mov rax, qword [rbp + 0x3b0]
movdqa xmm0, xmmword [rbp + 0x300]
pxor xmm0, xmmword [rax]
movdqa xmmword [rbp + 0x300], xmm0
lea rcx, [rbp - 0x18]
lea rdx, [rbp + 0x300]
call fcn.1400817c0
mov sil, 1
test al, al
mov rbx, qword [rbp + 0x3b8]
jne 0x140078420
lea rdx, [0x14018e103]
mov rcx, rbx
call fcn.1400106e0
xor esi, esi
mov rax, qword [rbp]
cmp rax, 0x10
jb 0x14007845f
mov rcx, qword [rbp - 0x18]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14007845a
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140078514
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400b60a0
test sil, sil
je 0x14007847f
movdqa xmm0, xmmword [rbp + 0xe0]
movdqa xmm1, xmmword [rbp + 0xf0]
movdqu xmmword [rbx + 0x10], xmm1
movdqu xmmword [rbx], xmm0
jmp 0x1400784c0
mov rax, qword [rbp + 0xf8]
cmp rax, 0x10
jb 0x1400784c0
mov rcx, qword [rbp + 0xe0]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1400784bb
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140078514
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400b60a0
mov rax, qword [rbp + 0x3a8]
cmp rax, 8
jb 0x140078508
mov rcx, qword [rbp + 0x390]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x140078503
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140078514
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.1400b60a0
mov r14, qword [rbp + 0x3b8]
jmp 0x140077b7e
call fcn.140137a54
call fcn.140003980
call fcn.140003730
call fcn.140003980
int3