Function at 0x10004c4d0
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 [0x100152198]
xor rax, rsp
mov qword [rsp + 0x290], rax
lea r12, [0x100153eb8]
lea r13, [0x10001e5a0]
mov rcx, qword [0x100153eb8]
cmp rcx, r12
je 0x10004c53f
test byte [rcx + 0x1c], 1
je 0x10004c53f
mov edx, 0x14f
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100034784
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.10003c734
cmp eax, ebp
jl 0x10004c92b
cmp dword [rsp + 0x48], ebp
je 0x10004c92b
mov esi, ebp
lea ebx, [rbp + 2]
lea r15d, [rbp + 5]
mov rcx, qword [0x100153eb8]
cmp rcx, r12
je 0x10004c5b6
test byte [rcx + 0x1c], bl
je 0x10004c5b6
cmp byte [rcx + 0x19], r15b
jb 0x10004c5b6
mov edx, 0x150
mov r9d, esi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100036510
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 0x10004c607
mov eax, ebp
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x70], rdi
cmp eax, ebp
jne 0x10004c820
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 0x10004c810
cmp eax, ebp
jne 0x10004c7d5
lea rdx, [0x10001e5b0]
lea rcx, [rsp + 0x40]
call fcn.100035db8
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.10003579c
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 0x10004c770
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 [0x100153eb8]
cmp rcx, r12
je 0x10004c72e
test byte [rcx + 0x1c], bl
je 0x10004c72e
cmp byte [rcx + 0x19], r15b
jb 0x10004c72e
mov edx, 0x154
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100036510
cmp rdi, rbp
je 0x10004c73d
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 0x10004c75e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x70]
cmp rcx, rbp
je 0x10004c7ce
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004c7ce
mov rcx, qword [0x100153eb8]
cmp rcx, r12
je 0x10004c79d
test byte [rcx + 0x1c], bl
je 0x10004c79d
cmp byte [rcx + 0x19], bl
jb 0x10004c79d
mov edx, 0x153
mov r9, qword [rsp + 0x40]
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.1000347a8
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, ebp
jg 0x10004c7be
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x70]
cmp rcx, rbp
je 0x10004c7ce
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
jmp 0x10004c58b
mov rcx, qword [0x100153eb8]
cmp rcx, r12
je 0x10004c800
test byte [rcx + 0x1c], bl
je 0x10004c800
cmp byte [rcx + 0x19], bl
jb 0x10004c800
mov edx, 0x152
mov r9d, eax
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100036510
nop
cmp rdi, rbp
je 0x10004c867
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004c867
cmp rdi, rbp
je 0x10004c867
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004c867
movzx r9d, ax
or r9d, 0x80070000
cmp eax, ebp
cmovle r9d, eax
mov rcx, qword [0x100153eb8]
cmp rcx, r12
je 0x10004c859
test byte [rcx + 0x1c], bl
je 0x10004c859
cmp byte [rcx + 0x19], bl
jb 0x10004c859
mov edx, 0x151
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100036510
nop
cmp rdi, rbp
je 0x10004c867
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 0x10004c8a3
mov edi, ebp
mov rsi, qword [rsp + 0x60]
mov rcx, qword [0x100153eb8]
cmp rcx, r12
je 0x10004c8dd
test byte [rcx + 0x1c], bl
je 0x10004c8dd
cmp edi, ebp
cmove ebx, r15d
movzx eax, byte [rcx + 0x19]
cmp eax, ebx
jl 0x10004c8dd
mov edx, 0x155
mov r9d, edi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100036510
mov rcx, qword [0x100153eb8]
cmp edi, ebp
jne 0x10004c914
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 [0x100153eb8]
cmp rsi, rbp
je 0x10004c932
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x100153eb8]
jmp 0x10004c932
mov rcx, qword [0x100153eb8]
cmp rcx, r12
je 0x10004c94e
test byte [rcx + 0x1c], 1
je 0x10004c94e
mov edx, 0x156
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.100034784
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.10011be80
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