Function at 0x10004c264
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
mov rax, rsp
push r12
push r13
push r15
sub rsp, 0x2a0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x100151198]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea r12, [0x100152eb8]
lea r13, [0x10001e5a0]
mov rcx, qword [0x100152eb8]
cmp rcx, r12
je 0x10004c2d3
test byte [rcx + 0x1c], 1
je 0x10004c2d3
mov edx, 0x14f
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100034764
xor ebp, ebp
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x28], ebp
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [0x10001ff48]
lea rdx, [0x10001e7f0]
mov rcx, 0xffffffff80000002
call fcn.10003c6b8
cmp eax, ebp
jl 0x10004c6bf
cmp dword [rsp + 0x48], ebp
je 0x10004c6bf
mov esi, ebp
lea ebx, [rbp + 2]
lea r15d, [rbp + 5]
mov rcx, qword [0x100152eb8]
cmp rcx, r12
je 0x10004c34a
test byte [rcx + 0x1c], bl
je 0x10004c34a
cmp byte [rcx + 0x19], r15b
jb 0x10004c34a
mov edx, 0x150
mov r9d, esi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100036328
mov rdi, rbp
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x58], rbp
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, [0x10001e5b0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x10004c39b
mov eax, ebp
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x70], rdi
cmp eax, ebp
jne 0x10004c5b4
mov dword [rsp + 0x4c], 0x100
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x90]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x10004c5a4
cmp eax, ebp
jne 0x10004c569
lea rdx, [0x10001e5b0]
lea rcx, [rsp + 0x40]
call fcn.100035d98
nop
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.10003577c
mov qword [rsp + 0x68], rbp
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20206
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x10004c504
mov rdi, qword [rsp + 0x68]
lea rcx, [0x10001e918]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
lea rax, [0x10001e918]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x10001e610]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [0x100152eb8]
cmp rcx, r12
je 0x10004c4c2
test byte [rcx + 0x1c], bl
je 0x10004c4c2
cmp byte [rcx + 0x19], r15b
jb 0x10004c4c2
mov edx, 0x154
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100036328
cmp rdi, rbp
je 0x10004c4d1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, ebp
jg 0x10004c4f2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x70]
cmp rcx, rbp
je 0x10004c562
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004c562
mov rcx, qword [0x100152eb8]
cmp rcx, r12
je 0x10004c531
test byte [rcx + 0x1c], bl
je 0x10004c531
cmp byte [rcx + 0x19], bl
jb 0x10004c531
mov edx, 0x153
mov r9, qword [rsp + 0x40]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100034788
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, ebp
jg 0x10004c552
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x70]
cmp rcx, rbp
je 0x10004c562
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
jmp 0x10004c31f
mov rcx, qword [0x100152eb8]
cmp rcx, r12
je 0x10004c594
test byte [rcx + 0x1c], bl
je 0x10004c594
cmp byte [rcx + 0x19], bl
jb 0x10004c594
mov edx, 0x152
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100036328
nop
cmp rdi, rbp
je 0x10004c5fb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004c5fb
cmp rdi, rbp
je 0x10004c5fb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004c5fb
movzx r9d, ax
or r9d, 0x80070000
cmp eax, ebp
cmovle r9d, eax
mov rcx, qword [0x100152eb8]
cmp rcx, r12
je 0x10004c5ed
test byte [rcx + 0x1c], bl
je 0x10004c5ed
cmp byte [rcx + 0x19], bl
jb 0x10004c5ed
mov edx, 0x151
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100036328
nop
cmp rdi, rbp
je 0x10004c5fb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, rbp
mov qword [rsp + 0x60], rbp
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20106
xor r8d, r8d
lea rdx, [0x10001e7f0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp eax, ebp
jne 0x10004c637
mov edi, ebp
mov rsi, qword [rsp + 0x60]
mov rcx, qword [0x100152eb8]
cmp rcx, r12
je 0x10004c671
test byte [rcx + 0x1c], bl
je 0x10004c671
cmp edi, ebp
cmove ebx, r15d
movzx eax, byte [rcx + 0x19]
cmp eax, ebx
jl 0x10004c671
mov edx, 0x155
mov r9d, edi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100036328
mov rcx, qword [0x100152eb8]
cmp edi, ebp
jne 0x10004c6a8
mov dword [rsp + 0x50], ebp
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x10001ff48]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [0x100152eb8]
cmp rsi, rbp
je 0x10004c6c6
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x100152eb8]
jmp 0x10004c6c6
mov rcx, qword [0x100152eb8]
cmp rcx, r12
je 0x10004c6e2
test byte [rcx + 0x1c], 1
je 0x10004c6e2
mov edx, 0x156
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100034764
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.10011b980
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
ret