Function at 0x140057fa0
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 [0x1402fa010]
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.140029020
nop
mov qword [rbp - 0x11], r12
call fcn.1400195b0
mov rcx, rax
test rax, rax
je 0x1400589f8
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038716.0]
add rax, 0x18
mov qword [rbp - 0x11], rax
mov qword [rbp + 7], r12
call fcn.1400195b0
mov rcx, rax
test rax, rax
je 0x140058a03
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038716.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.1400191a0
add rax, 0x18
mov qword [rbp - 0x61], rax
lea rax, [rbp - 0x61]
mov qword [rbp + 0xf], rax
mov qword [rbp - 0x51], r12
call fcn.1400195b0
mov rcx, rax
test rax, rax
je 0x140058a0e
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140038716.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.14001c3d0
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 0x1400580f6
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140058105
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 0x14005815c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
test esi, esi
jne 0x1400583b7
mov qword [rbp + 0xf], r12
call fcn.1400195b0
mov rdx, rax
test rax, rax
je 0x1400589e2
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
mov rcx, rdx
call qword [case.0x140038716.0]
lea rbx, [rax + 0x18]
mov qword [rbp + 0xf], rbx
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140058396
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 0x140058258
mov ecx, dword [rbp - 0x19]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x1400581e9
cmp ecx, 7
jne 0x140058258
add rdx, 2
cmovb rdx, rdi
mov ecx, 1
call fcn.1402090a4
mov rsi, rax
test rax, rax
je 0x140058258
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 0x140058250
mov r8, rdi
inc r8
cmp word [rsi + r8*2], r12w
jne 0x140058230
mov rdx, rsi
lea rcx, [rbp + 0xf]
call fcn.140018f70
mov r14d, 1
mov rbx, qword [rbp + 0xf]
mov rcx, rsi
call fcn.140203254
test r14d, r14d
je 0x140058396
mov rax, qword [rbp - 9]
test rax, rax
je 0x140058a19
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 0x140058295
add rcx, 2
test edx, edx
jne 0x140058280
test r8d, r8d
je 0x140058396
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400582bf
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400582e4
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140058309
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14005832c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14005833b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x31], r12
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14005834e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x29], r12
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x140058361
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x21], r12
mov rcx, r15
call fcn.1400192d0
xor eax, eax
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1401f3bf0
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 0x1400583b7
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov qword [rbp - 0x59], r12
mov rax, qword [r15]
mov rcx, qword [rax - 0x18]
test rcx, rcx
je 0x1400583dc
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140038716.0]
mov rcx, rax
test rax, rax
jne 0x140058400
call fcn.1400195b0
mov rdx, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x20]
mov rcx, rdx
call qword [case.0x140038716.0]
mov rcx, rax
test rax, rax
je 0x140058a24
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x140038716.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 0x140058432
lea r14d, [rsi + r13]
test r14d, r14d
js 0x1400589ed
mov ecx, 1
sub ecx, dword [rax + 0x10]
mov eax, dword [rax + 0xc]
sub eax, r14d
or eax, ecx
jge 0x140058472
mov edx, r14d
lea rcx, [rbp - 0x59]
call fcn.140018ec0
mov rbx, qword [rbp - 0x59]
lea rdx, str.SoftwareClasses_
movsxd rax, esi
lea rsi, [rax + rax]
test rsi, rsi
je 0x1400584a0
test rbx, rbx
jne 0x140058495
call fcn.1401fae4c
mov dword [rax], 0x16
call fcn.1401facac
jmp 0x1400584a0
mov r8, rsi
mov rcx, rbx
call fcn.1401f61a0
mov r8, r13
add r8, r8
lea rcx, [rsi + rbx]
je 0x1400584d7
test rcx, rcx
je 0x1400584c7
test r15, r15
je 0x1400584c0
mov rdx, r15
call fcn.1401f61a0
jmp 0x1400584d7
xor edx, edx
call fcn.1401f6840
call fcn.1401fae4c
mov dword [rax], 0x16
call fcn.1401facac
cmp r14d, dword [rbx - 0xc]
jg 0x1400589ed
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 0x140058507
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 0x140058553
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
test esi, esi
jne 0x140058612
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x140058612
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, [0x140262520]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rbp - 0x3d]
test edx, edx
je 0x140058612
mov ecx, dword [rbp - 0x15]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x1400585ac
cmp ecx, 7
jne 0x140058612
add rdx, 2
cmovb rdx, rdi
mov ecx, 1
call fcn.1402090a4
mov rbx, rax
test rax, rax
je 0x140058612
lea rax, [rbp - 0x3d]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x15]
xor r8d, r8d
lea rdx, [0x140262520]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005860a
mov r8, rdi
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400585f3
mov rdx, rbx
lea rcx, [rbp - 0x11]
call fcn.140018f70
mov rcx, rbx
call fcn.140203254
mov rsi, qword [rbp - 0x39]
mov rbx, qword [rsi]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140058628
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 0x14005870f
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14005870f
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, [0x140262520]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rbp - 0x39]
test edx, edx
je 0x14005870f
mov ecx, dword [rbp - 1]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x1400586a7
cmp ecx, 7
jne 0x14005870f
add rdx, 2
cmovb rdx, rdi
mov ecx, 1
call fcn.1402090a4
mov rbx, rax
test rax, rax
je 0x14005870f
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 1]
xor r8d, r8d
lea rdx, [0x140262520]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140058707
mov r8, rdi
nop
inc r8
cmp word [rbx + r8*2], 0
jne 0x1400586f0
mov rdx, rbx
lea rcx, [rbp + 7]
call fcn.140018f70
mov rcx, rbx
call fcn.140203254
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x1400589e2
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 0x140058747
add rdx, 2
test r8d, r8d
jne 0x140058730
test r9d, r9d
jne 0x140058823
mov rdx, qword [rbp + 7]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140058775
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005879a
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400587bf
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1400587ce
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x31], r14
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1400587e1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x29], r14
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x1400587f4
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 0x140058819
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [case.0x140038716.0]
mov eax, 1
jmp 0x14005836f
mov edx, dword [rcx - 0x10]
mov rcx, qword [rbp + 7]
test edx, edx
jne 0x140058914
test rcx, rcx
je 0x1400589e2
mov r9, rcx
sub r9, rax
movzx r8d, word [rax]
movzx edx, word [rax + r9]
sub r8d, edx
jne 0x140058857
add rax, 2
test edx, edx
jne 0x140058841
test r8d, r8d
jne 0x140058914
lea rdx, [rcx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140058881
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400588a6
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400588c9
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1400588d8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x31], r14
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1400588eb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x29], r14
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x1400588fe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x21], r14
mov rcx, rsi
call fcn.1400192d0
mov eax, 1
jmp 0x14005836f
lea rdx, [rcx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140058935
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005895a
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005897f
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14005898e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x31], r14
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x1400589a1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x29], r14
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x1400589b4
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 0x14005836d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140038716.0]
jmp 0x14005836d
mov ecx, 0x80004005
call fcn.140019320
nop
mov ecx, 0x80070057
call fcn.140019320
nop
mov ecx, 0x80004005
call fcn.140019320
nop
mov ecx, 0x80004005
call fcn.140019320
nop
mov ecx, 0x80004005
call fcn.140019320
nop
mov ecx, 0x80004005
call fcn.140019320
nop
mov ecx, 0x80004005
call fcn.140019320
int3