Function at 0x140059fe0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x140300040]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, rdx
mov qword [rbp - 0x39], rdx
mov qword [rbp - 1], rcx
mov qword [rbp - 0x49], rdx
xor r12d, r12d
mov dword [rbp - 0x69], r12d
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x29], r12
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x31], r12
mov qword [rbp - 9], r12
lea rdx, [rcx + 0x28]
mov r8, r15
lea rcx, [rbp - 9]
call fcn.140029150
nop
mov qword [rbp - 0x11], r12
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x14005aa38
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
add rax, 0x18
mov qword [rbp - 0x11], rax
mov qword [rbp + 7], r12
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x14005aa43
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
add rax, 0x18
mov qword [rbp + 7], rax
lea rax, [rbp - 0x61]
mov qword [rbp - 0x59], rax
mov rcx, qword [r15]
sub rcx, 0x18
call fcn.140019180
add rax, 0x18
mov qword [rbp - 0x61], rax
lea rax, [rbp - 0x61]
mov qword [rbp + 0xf], rax
mov qword [rbp - 0x51], r12
call fcn.140019590
mov rcx, rax
test rax, rax
je 0x14005aa4e
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
add rax, 0x18
mov qword [rbp - 0x51], rax
mov dword [rbp - 0x69], 1
mov r8, qword [rbp - 0x61]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts_sUserChoice
lea rcx, [rbp - 0x51]
call fcn.14001c4c0
nop
mov rdx, qword [rbp - 0x61]
add rdx, 0xffffffffffffffe8
mov rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005a136
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14005a145
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x31], r12
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rbx, qword [rbp - 0x51]
mov rdx, rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov ecx, 1
and ecx, 0xfffffffe
mov dword [rbp - 0x69], ecx
lea rdx, [rbx - 0x18]
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14005a19c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
test esi, esi
jne 0x14005a3f7
mov qword [rbp + 0xf], r12
call fcn.140019590
mov rdx, rax
test rax, rax
je 0x14005aa22
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
mov rcx, rdx
call qword [case.0x140038ca6.0]
lea rbx, [rax + 0x18]
mov qword [rbp + 0xf], rbx
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14005a3d6
mov dword [rbp - 0x41], r12d
mov r14d, r12d
mov dword [rbp - 0x19], 1
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x19]
xor r8d, r8d
lea rdx, str.ProgId
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rbp - 0x41]
test edx, edx
je 0x14005a298
mov ecx, dword [rbp - 0x19]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x14005a229
cmp ecx, 7
jne 0x14005a298
add rdx, 2
cmovb rdx, rdi
mov ecx, 1
call fcn.14020cf94
mov rsi, rax
test rax, rax
je 0x14005a298
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x19]
xor r8d, r8d
lea rdx, str.ProgId
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005a290
mov r8, rdi
inc r8
cmp word [rsi + r8*2], r12w
jne 0x14005a270
mov rdx, rsi
lea rcx, [rbp + 0xf]
call fcn.140018f50
mov r14d, 1
mov rbx, qword [rbp + 0xf]
mov rcx, rsi
call fcn.140207144
test r14d, r14d
je 0x14005a3d6
mov rax, qword [rbp - 9]
test rax, rax
je 0x14005aa59
mov rcx, rbx
sub rax, rbx
nop dword [rax]
nop dword [rax + rax]
movzx r8d, word [rcx]
movzx edx, word [rcx + rax]
sub r8d, edx
jne 0x14005a2d5
add rcx, 2
test edx, edx
jne 0x14005a2c0
test r8d, r8d
je 0x14005a3d6
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005a2ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005a324
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005a349
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14005a36c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14005a37b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x31], r12
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14005a38e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x29], r12
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14005a3a1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x21], r12
mov rcx, r15
call fcn.1400192b0
xor eax, eax
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1401f74b0
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005a3f7
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov qword [rbp - 0x59], r12
mov rax, qword [r15]
mov rcx, qword [rax - 0x18]
test rcx, rcx
je 0x14005a41c
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140038ca6.0]
mov rcx, rax
test rax, rax
jne 0x14005a440
call fcn.140019590
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
mov rcx, rdx
call qword [case.0x140038ca6.0]
mov rcx, rax
test rax, rax
je 0x14005aa64
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140038ca6.0]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x59], rbx
mov r12d, dword [rbp - 0x69]
or r12d, 2
mov dword [rbp - 0x69], r12d
mov r15, qword [r15]
movsxd r13, dword [r15 - 0x10]
lea rdx, str.SoftwareClasses_
mov rsi, rdi
inc rsi
cmp word [rdx + rsi*2], 0
jne 0x14005a472
lea r14d, [rsi + r13]
test r14d, r14d
js 0x14005aa2d
mov ecx, 1
sub ecx, dword [rax + 0x10]
mov eax, dword [rax + 0xc]
sub eax, r14d
or eax, ecx
jge 0x14005a4b2
mov edx, r14d
lea rcx, [rbp - 0x59]
call fcn.140018ea0
mov rbx, qword [rbp - 0x59]
lea rdx, str.SoftwareClasses_
movsxd rax, esi
lea rsi, [rax + rax]
test rsi, rsi
je 0x14005a4e0
test rbx, rbx
jne 0x14005a4d5
call fcn.1401fed34
mov dword [rax], 0x16
call fcn.1401feb94
jmp 0x14005a4e0
mov r8, rsi
mov rcx, rbx
call fcn.14022e460
mov r8, r13
add r8, r8
lea rcx, [rsi + rbx]
je 0x14005a517
test rcx, rcx
je 0x14005a507
test r15, r15
je 0x14005a500
mov rdx, r15
call fcn.14022e460
jmp 0x14005a517
xor edx, edx
call fcn.14022eb00
call fcn.1401fed34
mov dword [rax], 0x16
call fcn.1401feb94
cmp r14d, dword [rbx - 0xc]
jg 0x14005aa2d
mov dword [rbx - 0x10], r14d
movsxd rax, r14d
xor r14d, r14d
mov word [rbx + rax*2], r14w
mov rsi, qword [rbp - 1]
mov rsi, qword [rsi + 0x40]
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14005a547
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x21], r14
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
and r12d, 0xfffffffd
mov dword [rbp - 0x69], r12d
lea rdx, [rbx - 0x18]
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14005a593
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
test esi, esi
jne 0x14005a652
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14005a652
mov dword [rbp - 0x3d], r14d
mov dword [rbp - 0x15], 1
lea rax, [rbp - 0x3d]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x15]
xor r8d, r8d
lea rdx, [0x140267540]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rbp - 0x3d]
test edx, edx
je 0x14005a652
mov ecx, dword [rbp - 0x15]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x14005a5ec
cmp ecx, 7
jne 0x14005a652
add rdx, 2
cmovb rdx, rdi
mov ecx, 1
call fcn.14020cf94
mov rbx, rax
test rax, rax
je 0x14005a652
lea rax, [rbp - 0x3d]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x15]
xor r8d, r8d
lea rdx, [0x140267540]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005a64a
mov r8, rdi
inc r8
cmp word [rbx + r8*2], 0
jne 0x14005a633
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.140018f50
mov rcx, rbx
call fcn.140207144
mov rsi, qword [rbp - 0x39]
mov rbx, qword [rsi]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14005a668
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x29], r14
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005a74f
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14005a74f
mov dword [rbp - 0x39], r14d
mov dword [rbp - 1], 1
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 1]
xor r8d, r8d
lea rdx, [0x140267540]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rbp - 0x39]
test edx, edx
je 0x14005a74f
mov ecx, dword [rbp - 1]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x14005a6e7
cmp ecx, 7
jne 0x14005a74f
add rdx, 2
cmovb rdx, rdi
mov ecx, 1
call fcn.14020cf94
mov rbx, rax
test rax, rax
je 0x14005a74f
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 1]
xor r8d, r8d
lea rdx, [0x140267540]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005a747
mov r8, rdi
nop
inc r8
cmp word [rbx + r8*2], 0
jne 0x14005a730
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.140018f50
mov rcx, rbx
call fcn.140207144
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x14005aa22
mov rax, qword [rbp - 9]
mov rdx, rax
mov r10, rcx
sub r10, rax
nop dword [rax]
movzx r9d, word [rdx]
movzx r8d, word [rdx + r10]
sub r9d, r8d
jne 0x14005a787
add rdx, 2
test r8d, r8d
jne 0x14005a770
test r9d, r9d
jne 0x14005a863
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005a7b5
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005a7da
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005a7ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14005a80e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x31], r14
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14005a821
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x29], r14
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14005a834
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x21], r14
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14005a859
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140038ca6.0]
mov eax, 1
jmp 0x14005a3af
mov edx, dword [rcx - 0x10]
mov rcx, qword [rbp + 7]
test edx, edx
jne 0x14005a954
test rcx, rcx
je 0x14005aa22
mov r9, rcx
sub r9, rax
movzx r8d, word [rax]
movzx edx, word [rax + r9]
sub r8d, edx
jne 0x14005a897
add rax, 2
test edx, edx
jne 0x14005a881
test r8d, r8d
jne 0x14005a954
lea rdx, [rcx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005a8c1
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005a8e6
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14005a909
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14005a918
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x31], r14
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14005a92b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x29], r14
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14005a93e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x21], r14
mov rcx, rsi
call fcn.1400192b0
mov eax, 1
jmp 0x14005a3af
lea rdx, [rcx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005a975
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005a99a
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005a9bf
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14005a9ce
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x31], r14
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14005a9e1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x29], r14
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14005a9f4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x21], r14
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14005a3ad
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038ca6.0]
jmp 0x14005a3ad
mov ecx, 0x80004005
call fcn.140019300
nop
mov ecx, 0x80070057
call fcn.140019300
nop
mov ecx, 0x80004005
call fcn.140019300
nop
mov ecx, 0x80004005
call fcn.140019300
nop
mov ecx, 0x80004005
call fcn.140019300
nop
mov ecx, 0x80004005
call fcn.140019300
nop
mov ecx, 0x80004005
call fcn.140019300
int3