Function at 0x14008ad20
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 r12d, r8d
mov r15, rdx
mov r14, rcx
mov rdi, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
mov rsi, rdx
jb 0x14008ad67
mov rsi, qword [r15]
xorps xmm0, xmm0
movaps xmmword [rbp + 0x3a0], xmm0
movaps xmmword [rbp + 0x390], xmm0
test rdi, rdi
je 0x14008ae0d
mov qword [rbp + 0x3a8], 7
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
jae 0x14008ba80
cmp rdi, 8
jb 0x14008ae1d
mov rax, rdi
or rax, 7
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x14008ba85
cmp rax, 0xb
mov ebx, 0xa
cmovae rbx, rax
lea rcx, [rbx + rbx]
cmp rbx, 0x7ff
jb 0x14008ae30
movabs rax, 0x7fffffffffffffec
cmp rbx, rax
jae 0x14008ba85
add rcx, 0x29
call fcn.140170c88
mov rcx, rax
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov rcx, qword [rbp + 0x3a0]
jmp 0x14008ae3b
mov qword [rbp + 0x3a8], 7
jmp 0x14008af3a
xor ecx, ecx
test dil, 1
jne 0x14008ae4f
mov rax, rsi
cmp rdi, 1
je 0x14008ae8b
jmp 0x14008aea5
add rcx, 2
call fcn.140170c88
xor ecx, ecx
mov qword [rbp + 0x390], rax
mov qword [rbp + 0x3a8], rbx
test dil, 1
je 0x14008ae25
cmp qword [rbp + 0x3a8], 8
jb 0x14008ae62
mov rax, qword [rbp + 0x390]
jmp 0x14008ae69
lea rax, [rbp + 0x390]
movsx edx, byte [rsi]
mov word [rax + rcx*2], dx
mov rcx, qword [rbp + 0x3a0]
inc rcx
mov qword [rbp + 0x3a0], rcx
lea rax, [rsi + 1]
cmp rdi, 1
jne 0x14008aea5
cmp qword [rbp + 0x3a8], 8
jb 0x14008af2d
mov rax, qword [rbp + 0x390]
jmp 0x14008af34
add rsi, rdi
lea rdx, [rbp + 0x390]
jmp 0x14008aee5
movsx r9d, byte [rax + 1]
mov word [r8 + rcx*2 + 2], r9w
mov rcx, qword [rbp + 0x3a0]
inc rcx
mov qword [rbp + 0x3a0], rcx
add rax, 2
cmp rax, rsi
je 0x14008ae8b
cmp qword [rbp + 0x3a8], 8
mov r8, rdx
jb 0x14008aef9
mov r8, qword [rbp + 0x390]
movsx r9d, byte [rax]
mov word [r8 + rcx*2], r9w
mov rcx, qword [rbp + 0x3a0]
mov r9, qword [rbp + 0x3a8]
lea r8, [rcx + 1]
mov qword [rbp + 0x3a0], r8
mov r8, rdx
cmp r9, 8
jb 0x14008aec0
mov r8, qword [rbp + 0x390]
jmp 0x14008aec0
lea rax, [rbp + 0x390]
mov word [rax + rcx*2], 0
movzx ecx, r12b
add rcx, 0xffffffff80000001
lea rax, [rbp + 0x308]
mov qword [rsp + 0x20], rax
lea rdx, [0x140400662]
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14008af74
xorps xmm0, xmm0
movups xmmword [r14], xmm0
jmp 0x14008afbb
mov rcx, qword [rbp + 0x308]
xorps xmm6, xmm6
movups xmmword [rsp + 0x50], xmm6
lea rax, [rbp + 0x330]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x32c]
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 0x14008b035
movups xmmword [r14], xmm6
mov qword [r14 + 0x10], 0
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov rax, qword [rbp + 0x3a8]
cmp rax, 8
jb 0x14008b017
mov rcx, qword [rbp + 0x390]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14008b012
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14008ba7b
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
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], r12b
mov qword [rbp + 0x2e8], r15
mov qword [rbp + 0x338], r14
mov dword [rbp + 0x330], 0x104
mov dword [rbp + 0x32c], 0x104
mov ecx, 0x208
call fcn.140170d00
mov r14, rax
mov ecx, 0x104
call fcn.140170d00
mov r15, rax
movaps xmmword [rbp + 0x350], xmm6
mov qword [rbp + 0x368], 7
xor eax, eax
mov ecx, 7
lea r13, [rbp + 0x350]
lea r12, [rbp + 0x3c0]
lea rsi, [rbp + 0xe0]
xor ebx, ebx
jmp 0x14008b0cb
cmp eax, 0x103
je 0x14008b32b
inc ebx
mov rax, qword [rbp + 0x350]
mov rcx, qword [rbp + 0x368]
cmp rcx, 8
cmovb rax, r13
mov qword [rbp + 0x360], 0
mov word [rax], 0
mov eax, dword [rbp + 0x330]
mov dword [rbp + 0x3c0], eax
mov eax, dword [rbp + 0x32c]
mov dword [rbp + 0x334], eax
mov rcx, qword [rbp + 0x308]
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r15
lea rax, [rbp + 0x304]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov edx, ebx
mov r8, r14
lea r9, [rbp + 0x334]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x14008b0b0
cmp dword [rbp + 0x304], 1
jne 0x14008b0b0
mov edi, dword [rbp + 0x334]
movaps xmmword [rbp + 0xe0], xmm6
movaps xmmword [rbp + 0xf0], xmm6
cmp rdi, 7
ja 0x14008b1a0
mov qword [rbp + 0xf0], rdi
mov qword [rbp + 0xf8], 7
lea r8, [rdi + rdi]
mov rcx, rsi
mov rdx, r14
call fcn.1403766a0
lea rax, [rdi*2 + 0xe0]
add rax, rbp
jmp 0x14008b228
mov qword [rbp + 0xf8], 7
mov r12, rdi
or r12, 7
cmp r12, 0xb
mov eax, 0xa
cmovb r12, rax
lea rcx, [r12 + r12]
cmp r12, 0x7ff
jb 0x14008b1e6
add rcx, 0x29
call fcn.140170c88
mov rsi, rax
add rsi, 0x27
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14008b1f2
add rcx, 2
call fcn.140170c88
mov rsi, rax
mov qword [rbp + 0xe0], rsi
mov qword [rbp + 0xf0], rdi
mov qword [rbp + 0xf8], r12
lea r8, [rdi + rdi]
mov rcx, rsi
mov rdx, r14
call fcn.1403766a0
lea rax, [rsi + rdi*2]
lea r12, [rbp + 0x3c0]
lea rsi, [rbp + 0xe0]
mov word [rax], 0
cmp qword [rbp + 0xf8], 8
jb 0x14008b23e
mov rsi, qword [rbp + 0xe0]
mov r8, qword [rbp + 0x3a0]
cmp qword [rbp + 0x3a8], 8
lea rcx, [rbp + 0x390]
jb 0x14008b25d
mov rcx, qword [rbp + 0x390]
mov rdx, rsi
call fcn.140353bf4
mov esi, eax
test eax, eax
jne 0x14008b2d0
mov edi, dword [rbp + 0x3c0]
shr rdi, 1
mov rax, qword [rbp + 0x368]
cmp rax, rdi
jae 0x14008b290
mov rcx, r13
mov rdx, rdi
mov r9, r15
call fcn.14008bec0
jmp 0x14008b2d0
mov r12, r13
cmp rax, 8
jb 0x14008b2a0
mov r12, qword [rbp + 0x350]
mov qword [rbp + 0x360], rdi
lea r8, [rdi + rdi]
mov rcx, r12
mov rdx, r15
call fcn.1403766a0
mov word [r12 + rdi*2], 0
lea r12, [rbp + 0x3c0]
nop word cs:[rax + rax]
mov rax, qword [rbp + 0xf8]
cmp rax, 8
jb 0x14008b31c
mov rcx, qword [rbp + 0xe0]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14008b317
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14008ba7b
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
test esi, esi
lea rsi, [rbp + 0xe0]
jne 0x14008b0bb
mov rcx, r14
call fcn.140170ccc
mov rcx, r15
call fcn.140170ccc
mov rcx, qword [rbp + 0x308]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9, qword [rbp + 0x360]
test r9, r9
je 0x14008b396
mov r8, qword [rbp + 0x350]
mov rax, qword [rbp + 0x368]
cmp rax, 8
lea rdi, [rbp + 0x350]
mov rcx, rdi
cmovae rcx, r8
mov rdx, 0xfffffffffffffffe
xor r10d, r10d
nop
cmp word [rcx + r10*2], 0x5c
je 0x14008b3be
add rdx, 0xfffffffffffffffe
inc r10
cmp r9, r10
jne 0x14008b380
jmp 0x14008b3c7
cmp byte [rbp + 0x3c7], 0
je 0x14008b613
mov rcx, qword [rbp + 0x338]
mov rdx, qword [rbp + 0x2e8]
xor r8d, r8d
call fcn.14008ad20
jmp 0x14008ba27
test rdx, rdx
jne 0x14008b54f
lea rcx, [rbp + 0xe0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rbp - 0x20]
mov edx, 1
call fcn.14007d3a0
lea rcx, [rbp - 0x10]
lea rdx, [rbp + 0xe0]
call fcn.14007dfa0
movabs rcx, 0xcda792472a18f81d
mov qword [rbp + 0x370], rcx
mov rcx, qword [rbp + 0x370]
mov qword [rbp + 0x310], rcx
movabs rcx, 0xd197de6aa4da15ee
mov qword [rbp + 0x370], rcx
mov rdx, qword [rbp + 0x370]
mov qword [rbp + 0x318], rdx
movabs rdx, 0xcdfbe1334477be41
mov qword [rbp + 0x370], rdx
mov qword [rbp + 0x340], rcx
mov rcx, qword [rbp + 0x340]
mov qword [rbp + 0x378], rcx
lea rcx, [rbp + 0x370]
mov qword [rbp + 0x340], rcx
mov rcx, qword [rbp + 0x340]
movaps xmm0, xmmword [rbp + 0x310]
xorps xmm0, xmmword [rcx]
movaps xmmword [rbp + 0x310], xmm0
lea rdx, [rbp + 0x310]
mov rcx, rax
call fcn.14008a1f0
mov r8, qword [rbp + 0x360]
cmp qword [rbp + 0x368], 8
jb 0x14008b4aa
mov rdx, qword [rbp + 0x350]
jmp 0x14008b4b1
lea rdx, [rbp + 0x350]
mov rcx, rax
call fcn.14008ca20
lea rcx, [rbp - 0x20]
lea rdx, [rbp + 0x370]
call fcn.140083150
mov rax, qword [rbp + 0x368]
cmp rax, 8
jb 0x14008b515
mov rcx, qword [rbp + 0x350]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14008b510
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14008ba7b
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
movups xmm0, xmmword [rbp + 0x370]
movups xmm1, xmmword [rbp + 0x380]
movaps xmmword [rbp + 0x360], xmm1
movaps xmmword [rbp + 0x350], xmm0
lea rcx, [rbp - 0x20]
call fcn.140079110
mov r8, qword [rbp + 0x350]
mov r9, qword [rbp + 0x360]
mov rax, qword [rbp + 0x368]
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 0x14008ba8a
mov esi, eax
movsxd rbx, eax
cmp eax, 0xf
ja 0x14008b5d0
mov qword [rbp + 0xf0], rbx
mov qword [rbp + reloc.WS2_32.dll_ntohs8], 0xf
lea rcx, [rbp + 0xe0]
xor edx, edx
mov r8, rbx
call fcn.140376d40
lea r14, [rbx + rbp]
add r14, 0xe0
jmp 0x14008b666
mov qword [rbp + reloc.WS2_32.dll_ntohs8], 0xf
mov rax, rbx
or rax, 0xf
cmp rax, 0x17
mov r15d, reloc.WS2_32.dll_shutdown
cmovae r15, rax
cmp r15, 0xfff
jb 0x14008b635
lea rcx, [r15 + 0x28]
call fcn.140170c88
mov r14, rax
add r14, 0x27
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x14008b641
xorps xmm0, xmm0
mov rax, qword [rbp + 0x338]
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
jmp 0x14008ba27
lea rcx, [r15 + 1]
call fcn.140170c88
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.140376d40
add r14, rbx
mov byte [r14], 0
cmp qword [rbp + 0xf8], 0x10
jb 0x14008b67d
mov rax, qword [rbp + 0xe0]
jmp 0x14008b684
lea rax, [rbp + 0xe0]
mov r15, qword [rbp + 0x338]
cmp qword [rbp + 0x368], 8
jb 0x14008b69c
mov rdi, qword [rbp + 0x350]
xorps xmm0, xmm0
movups 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]
mov rsi, qword [rbp + 0xf0]
test rsi, rsi
je 0x14008ba10
cmp qword [rbp + 0xf8], 0x10
jb 0x14008b6e6
mov rdi, qword [rbp + 0xe0]
jmp 0x14008b6ed
lea rdi, [rbp + 0xe0]
mov rcx, rdi
mov edx, 0x2e
mov r8, rsi
call fcn.140376500
test rax, rax
je 0x14008b96b
lea rbx, [rsi + rdi]
nop word [rax + rax]
cmp byte [rax], 0x2e
je 0x14008b735
inc rax
mov r8, rbx
sub r8, rax
mov rcx, rax
mov edx, 0x2e
call fcn.140376500
test rax, rax
jne 0x14008b710
jmp 0x14008b96b
sub rax, rdi
cmp rax, 0xffffffffffffffff
je 0x14008b96b
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
sub rsi, rax
jb 0x14008ba8f
cmp rsi, 4
mov ebx, 4
cmovb rbx, rsi
add rdi, rax
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
lea rsi, [rbp - 0x20]
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call fcn.1403766a0
or rbx, rsi
mov byte [rbx], 0
movabs rax, 0xcdfbe1332203ca6f
mov qword [rbp + 0x370], rax
mov rax, qword [rbp + 0x370]
mov qword [rbp + 0x310], rax
movabs rdi, 0xd197de6aa4da15ee
mov qword [rbp + 0x370], rdi
mov rax, qword [rbp + 0x370]
mov qword [rbp + 0x318], rax
movabs rbx, 0xcdfbe1334477be41
mov qword [rbp + 0x370], rbx
mov qword [rbp + 0x340], rdi
mov rax, qword [rbp + 0x340]
mov qword [rbp + 0x378], rax
lea r14, [rbp + 0x370]
mov qword [rbp + 0x340], r14
mov rax, qword [rbp + 0x340]
movaps xmm0, xmmword [rbp + 0x310]
xorps xmm0, xmmword [rax]
movaps xmmword [rbp + 0x310], xmm0
lea rcx, [rbp + 0x310]
call fcn.14035e7e0
cmp qword [rbp - 0x10], rax
jne 0x14008b84b
cmp qword [rbp - 8], 0x10
jb 0x14008b831
mov rsi, qword [rbp - 0x20]
lea rdx, [rbp + 0x310]
mov rcx, rsi
mov r8, rax
call fcn.1403765a0
test eax, eax
je 0x14008b9c5
movabs rax, 0xcdfbe1332203d16f
mov qword [rbp + 0x370], rax
mov rax, qword [rbp + 0x370]
mov qword [rbp + 0x340], rax
mov qword [rbp + 0x370], rdi
mov rax, qword [rbp + 0x370]
mov qword [rbp + 0x348], rax
mov qword [rbp + 0x370], rbx
mov qword [rbp + 0x3b8], rdi
mov rax, qword [rbp + 0x3b8]
mov qword [rbp + 0x378], rax
mov qword [rbp + 0x3b8], r14
mov rax, qword [rbp + 0x3b8]
movaps xmm0, xmmword [rbp + 0x340]
xorps xmm0, xmmword [rax]
movaps xmmword [rbp + 0x340], xmm0
lea rcx, [rbp - 0x20]
lea rdx, [rbp + 0x340]
call fcn.1400876a0
test al, al
je 0x14008b9c5
movabs rax, 0xcdfbe1332703ca6f
mov qword [rbp + 0x370], rax
mov rax, qword [rbp + 0x370]
mov qword [rbp + 0x2f0], rax
mov qword [rbp + 0x370], rdi
mov rax, qword [rbp + 0x370]
mov qword [rbp + 0x2f8], rax
mov qword [rbp + 0x370], rbx
mov qword [rbp + 0x3b8], rdi
mov rax, qword [rbp + 0x3b8]
mov qword [rbp + 0x378], rax
mov qword [rbp + 0x3b8], r14
mov rax, qword [rbp + 0x3b8]
movaps xmm0, xmmword [rbp + 0x2f0]
xorps xmm0, xmmword [rax]
movaps xmmword [rbp + 0x2f0], xmm0
lea rcx, [rbp - 0x20]
lea rdx, [rbp + 0x2f0]
call fcn.1400876a0
mov sil, 1
test al, al
je 0x14008b9c8
lea rdx, [0x140400661]
mov rcx, r15
call fcn.140006e00
xor esi, esi
jmp 0x14008b9c8
lea rdx, [0x140400661]
mov rcx, r15
call fcn.140006e00
mov rax, qword [rbp + 0xf8]
cmp rax, 0x10
jb 0x14008ba27
mov rcx, qword [rbp + 0xe0]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14008b9be
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14008ba7b
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
jmp 0x14008ba27
mov sil, 1
mov rax, qword [rbp - 8]
cmp rax, 0x10
jb 0x14008ba07
mov rcx, qword [rbp - 0x20]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14008ba02
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14008ba7b
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
test sil, sil
je 0x14008b97a
movaps xmm0, xmmword [rbp + 0xe0]
movaps xmm1, xmmword [rbp + 0xf0]
movups xmmword [r15 + 0x10], xmm1
movups xmmword [r15], xmm0
mov rax, qword [rbp + 0x368]
cmp rax, 8
jb 0x14008ba6f
mov rcx, qword [rbp + 0x350]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14008ba6a
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14008ba7b
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140170ccc
mov r14, qword [rbp + 0x338]
jmp 0x14008afcb
call fcn.140351524
call fcn.140002160
call fcn.140003f60
call fcn.140002160
call fcn.14004a1c0
int3