Function at 0x14005fa00
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1388
call fcn.1400ea040
sub rsp, rax
mov qword [rsp + 0x138], 0xfffffffffffffffe
mov rax, qword [0x14012df80]
xor rax, rsp
mov qword [rsp + 0x1370], rax
mov rbx, r9
mov rsi, r8
mov r12, rdx
mov qword [rsp + 0xf8], rdx
mov r13, rcx
mov qword [rsp + 0x60], rcx
mov edi, dword [rsp + 0x13f0]
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rdx
lea r9, str.pAryUninstSetting_x__lpszKeyName_s__lpszUninstKey_s__bApp_d
lea r8, str.EntryUninstallSettings
lea rdx, str.CRegistryIF
mov rcx, qword [rcx]
call fcn.140080c70
xor r15d, r15d
test rbx, rbx
je 0x1400605aa
lea rax, str.Applications
lea r9, str.PrinterDrivers
test edi, edi
cmovne r9, rax
mov edi, 0x400
mov dword [rsp + 0x20], edi
mov r8, rbx
lea rdx, [rsp + 0x350]
mov rcx, qword [r13 + 8]
call fcn.140013060
mov r9d, edi
mov r8, rsi
lea rdx, [rsp + 0x350]
mov rcx, qword [r13 + 8]
call fcn.140012f30
lea r11d, [rdi + 0x10]
lea rcx, [rsp + 0xb50]
mov r8d, r15d
lea rdx, [rsp + 0x350]
lea rax, [rsp + 0xb50]
sub rdx, rax
nop
lea rax, [r11 + 0x7ffffbee]
test rax, rax
je 0x14005fb24
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14005fb24
mov word [rcx], ax
add rcx, 2
sub r11, 1
jne 0x14005fb00
jmp 0x14005fb29
test r11, r11
jne 0x14005fb33
sub rcx, 2
mov r8d, 0x8007007a
mov word [rcx], r15w
test r8d, r8d
jne 0x14005fba1
lea rdx, str.Settings
lea rcx, [rsp + 0xb50]
call fcn.14002ae40
lea rcx, [rsp + 0x350]
lea rdx, [rsp + 0xb50]
lea rax, [rsp + 0x350]
sub rdx, rax
nop
nop
lea rax, [rdi + 0x7ffffbfe]
test rax, rax
je 0x14005fb94
movzx eax, word [rdx + rcx]
test ax, ax
je 0x14005fb94
mov word [rcx], ax
add rcx, 2
sub rdi, 1
jne 0x14005fb70
jmp 0x14005fb99
test rdi, rdi
jne 0x14005fb9d
sub rcx, 2
mov word [rcx], r15w
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x350]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0xffffffff80000002
lea r9, str.hKey_x__lpszSubKey_s__phSubKey_x
lea r8, str.MakeSubKey
lea rdx, str.CRegistryIF
mov rcx, qword [r13]
call fcn.140081070
mov edi, r15d
lea rax, [rsp + 0x128]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x350]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14005fc45
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x90], rax
mov edi, 1
mov dword [rsp + 0x20], edi
lea r9, [0x1400fb428]
lea r8, str.MakeSubKey
lea rdx, str.CRegistryIF
mov rcx, qword [r13]
call fcn.140081270
test edi, edi
je 0x1400605aa
call fcn.14009d5e8
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x14005fc8f
mov ecx, 0x80004005
call fcn.1400034f0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x68], r15d
mov rcx, qword [r12 + 0x10]
mov rdx, r15
mov qword [rsp + 0xa0], rdx
or rbp, 0xffffffffffffffff
test rcx, rcx
jle 0x14006057d
test rdx, rdx
js 0x140060577
cmp rdx, rcx
jge 0x140060577
mov rax, qword [r12 + 8]
mov r14, qword [rax + rdx*8]
mov qword [rsp + 0x80], r14
mov rdi, qword [r14 + 0x10]
mov rbx, qword [rsp + 0x90]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
lea r9, str.hKey_x__lpszSubKey_s__phSubKey_x
lea r8, str.MakeSubKey
lea rdx, str.CRegistryIF
mov rcx, qword [r13]
call fcn.140081070
mov esi, r15d
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14005fd7b
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x70], rax
mov esi, 1
mov dword [rsp + 0x20], esi
lea r9, [0x1400fb428]
lea r8, str.MakeSubKey
lea rdx, str.CRegistryIF
mov rcx, qword [r13]
call fcn.140081270
test esi, esi
je 0x14006051d
xor r15d, r15d
xor r12d, r12d
mov qword [rsp + 0xa8], r12
lea rcx, [rsp + 0xb0]
call fcn.1400aa430
nop
lea rax, method.CPtrArray.virtual_0
mov qword [rsp + 0xb0], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [rsp + 0xd8], rax
xor r9d, r9d
lea r8, [rsp + 0xb0]
mov rdx, qword [rsp + 0x70]
mov rcx, r13
call fcn.140067540
mov rbp, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400602ea
xor esi, esi
xor ebx, ebx
mov rcx, qword [rax + 0x10]
test rcx, rcx
jle 0x14005ff05
nop
test rbx, rbx
js 0x14005fe46
cmp rbx, rcx
jge 0x14005fe46
test rbx, rbx
js 0x14006054e
cmp rbx, rcx
jge 0x14006054e
mov rax, qword [rbp + 8]
mov rdi, qword [rax + rbx*8]
jmp 0x14005fe48
xor edi, edi
mov ecx, 0x7fffffff
lea rax, [0x1400fc3a8]
cmp word [rax], 0
je 0x14005fe66
add rax, 2
sub rcx, 1
jne 0x14005fe54
jmp 0x14005fe7d
test rcx, rcx
je 0x14005fe7d
mov eax, 0x7fffffff
sub rax, rcx
mov qword [rsp + 0x100], rax
jmp 0x14005fe87
xor eax, eax
mov qword [rsp + 0x100], rax
movsxd r8, eax
mov rdx, rdi
lea rcx, [0x1400fc3a8]
call fcn.1400ce2c0
test eax, eax
jne 0x14005feb5
lea r8d, [rax + 0x10]
lea rdx, [rsp + 0x140]
mov rcx, rdi
call fcn.1400cf260
mov edi, eax
jmp 0x14005fec0
mov rcx, rdi
call fcn.1400cf2a0
mov rdi, rax
call fcn.1400cf300
cmp dword [rax], 0x22
je 0x14005feee
call fcn.1400cf300
cmp dword [rax], 0x16
je 0x14005feee
cmp rdi, 0xffffffff80000000
je 0x14005feee
cmp rdi, r12
jl 0x14005feee
lea r12, [rdi + 1]
mov qword [rsp + 0xa8], r12
add esi, 1
add rbx, 1
mov rcx, qword [rbp + 0x10]
movsxd rax, esi
cmp rax, rcx
jl 0x14005fe20
xor r12d, r12d
mov dword [rsp + 0x58], r12d
xor r13d, r13d
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
jle 0x1400602c5
test r15d, r15d
jne 0x1400602a9
test r13, r13
js 0x14005ff4b
cmp r13, rcx
jge 0x14005ff4b
test r13, r13
js 0x140060554
mov rax, qword [rsp + 0xb8]
mov rdx, qword [rax + r13*8]
jmp 0x14005ff4d
xor edx, edx
xor r9d, r9d
mov r8w, 0x2c
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsi + 8]
call fcn.140010520
mov r14, rax
test rax, rax
je 0x140060286
call fcn.14009d5e8
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
je 0x140060566
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x98], rbx
mov rax, qword [r14 + 0x10]
test rax, rax
jle 0x14005ffb4
test rax, rax
jle 0x14006055a
mov rax, qword [r14 + 8]
mov rdi, qword [rax]
jmp 0x14005ffb6
xor edi, edi
mov rbp, qword [rsi + 8]
mov rdx, rdi
mov rcx, rbp
call fcn.140013c20
mov rsi, rax
test rax, rax
je 0x140060068
mov edx, 0x7fffffff
mov rcx, rax
nop
nop
cmp word [rcx], 0
je 0x14005fff2
add rcx, 2
sub rdx, 1
jne 0x14005ffe0
jmp 0x140060009
test rdx, rdx
je 0x140060009
mov eax, 0x7fffffff
sub rax, rdx
mov qword [rsp + 0x120], rax
jmp 0x140060013
xor eax, eax
mov qword [rsp + 0x120], rax
mov dword [rsp + 0x20], eax
mov r9, rsi
mov r8w, 0x22
mov rdx, rdi
mov rcx, rbp
call fcn.14000ffc0
test eax, eax
je 0x140060059
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, rsi
lea rcx, [rsp + 0x98]
call fcn.140003940
mov rbx, qword [rsp + 0x98]
mov r8, rsi
xor edx, edx
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rdx, rbx
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rdi + 0x18]
call fcn.1400cdd20
test eax, eax
jne 0x14006025b
cmp byte [rdi + 8], al
jne 0x1400600a3
xor r9d, r9d
mov r8, qword [rdi + 0x18]
lea rdx, str.__s__________d_
lea rcx, [rsp + 0x50]
call fcn.14000a800
jmp 0x1400600be
mov r9d, 1
mov r8, qword [rdi + 0x18]
lea rdx, str.__s__________d_
lea rcx, [rsp + 0x50]
call fcn.14000a800
test r13, r13
js 0x1400600ed
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx + 0x10]
cmp r13, rax
jge 0x1400600ed
test r13, r13
js 0x140060560
cmp r13, rax
jge 0x140060560
mov rax, qword [rcx + 8]
mov r12, qword [rax + r13*8]
jmp 0x1400600f0
xor r12d, r12d
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x140060144
mov ecx, 0x3fffffff
mov rax, rdi
xor edx, edx
cmp word [rax], dx
je 0x140060115
add rax, 2
sub rcx, 1
jne 0x140060104
jmp 0x14006011a
test rcx, rcx
jne 0x14006012b
mov edx, 0x80070057
xor esi, esi
mov qword [rsp + 0x130], rsi
jmp 0x14006013b
mov esi, 0x3fffffff
sub rsi, rcx
mov qword [rsp + 0x130], rsi
test edx, edx
js 0x140060149
add rsi, rsi
jmp 0x14006014b
mov edx, 0x80070057
xor esi, esi
test edx, edx
jns 0x14006015b
xor esi, esi
mov qword [rsp + 0x118], rsi
jmp 0x140060167
add rsi, 2
mov qword [rsp + 0x118], rsi
cmp dword [rdi - 8], 1
jle 0x14006017f
mov edx, dword [rdi - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140003570
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x70]
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbp
lea r9, str.hKey_x__lpszEntry_s__lpbyVal_x__nSize_u
lea r8, str.SetValue
lea rdx, str.CRegistryIF
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
call fcn.140081070
xor r15d, r15d
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14006022f
mov r9d, dword [rsp + 0x88]
cmp r9d, 1
jne 0x140060211
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete r15b
jmp 0x14006022f
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete r15b
mov dword [rsp + 0x20], r15d
lea r9, [0x1400fb428]
lea r8, str.SetValue
lea rdx, str.CRegistryIF
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call fcn.140081270
mov r12d, dword [rsp + 0x58]
mov rax, qword [r14]
mov edx, 1
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140060286
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add r12d, 1
mov dword [rsp + 0x58], r12d
add r13, 1
movsxd rax, r12d
mov rcx, qword [rsp + 0xc0]
cmp rax, rcx
jl 0x14005ff21
jmp 0x1400602b8
mov rbp, qword [rsp + 0x78]
mov r14, qword [rsp + 0x80]
jmp 0x1400602c5
mov rbp, qword [rsp + 0x78]
mov r14, qword [rsp + 0x80]
mov rax, qword [rbp]
mov edx, 1
mov rcx, rbp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test r15d, r15d
jne 0x140060467
mov r12, qword [rsp + 0xa8]
mov r13, qword [rsp + 0x60]
cmp byte [r14 + 8], 0
jne 0x14006030b
xor r9d, r9d
mov r8, qword [r14 + 0x18]
lea rdx, str.__s__________d_
lea rcx, [rsp + 0x50]
call fcn.14000a800
jmp 0x140060326
mov r9d, 1
mov r8, qword [r14 + 0x18]
lea rdx, str.__s__________d_
lea rcx, [rsp + 0x50]
call fcn.14000a800
mov r9, r12
lea r8, [0x1400fb428]
mov edx, 0xff
lea rcx, [rsp + 0x150]
call fcn.14000ff40
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x140060393
mov eax, 0x3fffffff
xor ecx, ecx
cmp word [rbx], cx
je 0x140060364
add rbx, 2
sub rax, 1
jne 0x140060353
jmp 0x140060369
test rax, rax
jne 0x14006037a
mov ecx, 0x80070057
xor esi, esi
mov qword [rsp + 0x108], rsi
jmp 0x14006038a
mov esi, 0x3fffffff
sub rsi, rax
mov qword [rsp + 0x108], rsi
test ecx, ecx
js 0x140060398
add rsi, rsi
jmp 0x14006039a
mov ecx, 0x80070057
xor esi, esi
test ecx, ecx
jns 0x1400603aa
xor esi, esi
mov qword [rsp + 0xe8], rsi
jmp 0x1400603b6
add rsi, 2
mov qword [rsp + 0xe8], rsi
mov rax, qword [rsp + 0x50]
cmp dword [rax - 8], 1
jle 0x1400603ce
mov edx, dword [rax - 0x10]
lea rcx, [rsp + 0x50]
call fcn.140003570
mov rdi, qword [rsp + 0x70]
mov dword [rsp + 0x40], esi
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0x150]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, str.hKey_x__lpszEntry_s__dwType_u__lpbyVal_x__nSize_u
lea r8, str.SetValueEx
lea rdx, str.CRegistryIF
mov rcx, qword [r13]
call fcn.140081070
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x150]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov dword [rsp + 0x20], ecx
lea r9, [0x1400fb428]
lea r8, str.SetValueEx
lea rdx, str.CRegistryIF
mov rcx, qword [r13]
call fcn.140081270
jmp 0x14006046c
mov r13, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rax, method.CPtrArray.virtual_0
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
jle 0x1400604f2
xor edi, edi
test rdi, rdi
js 0x140060571
cmp rdi, rcx
jge 0x140060571
mov rax, qword [rsp + 0xb8]
mov r8, qword [rax + rdi*8]
test r8, r8
je 0x1400604d1
xor edx, edx
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0xc0]
add rdi, 1
cmp rdi, rcx
jl 0x140060496
or rbp, 0xffffffffffffffff
mov r8, rbp
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.1400aa464
jmp 0x1400604f6
or rbp, 0xffffffffffffffff
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
nop
lea rcx, [rsp + 0xb0]
call fcn.1400aa450
mov r12, qword [rsp + 0xf8]
xor r15d, r15d
mov edi, dword [rsp + 0x68]
add edi, 1
mov dword [rsp + 0x68], edi
mov rdx, qword [rsp + 0xa0]
add rdx, 1
mov qword [rsp + 0xa0], rdx
mov rcx, qword [r12 + 0x10]
movsxd rax, edi
cmp rax, rcx
jge 0x14006057d
jmp 0x14005fcc3
call fcn.1400a0610
int3
call fcn.1400a0610
nop
call fcn.1400a0610
int3
call fcn.1400a0610
nop
mov ecx, 0x80004005
call fcn.1400034f0
nop
call fcn.1400a0610
nop
call fcn.1400a0610
int3
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x1400605aa
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x20], r15d
lea r9, [0x1400fb428]
lea r8, str.EntryUninstallSettings
lea rdx, str.CRegistryIF
mov rcx, qword [r13]
call fcn.140080e70
xor eax, eax
mov rcx, qword [rsp + 0x1370]
xor rcx, rsp
call fcn.1400cd6e0
add rsp, 0x1388
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret