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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x590
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0x580], rax
xor ebx, ebx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x60], rbx
lea r12d, [rbx + 1]
mov qword [r11 - 0x538], rbx
mov qword [r11 - 0x530], rbx
mov qword [r11 - 0x528], rbx
mov qword [r11 - 0x520], rbx
mov qword [r11 - 0x518], rbx
mov esi, r12d
mov dword [rsp + 0x68], r12d
mov qword [r11 - 0x510], rbx
cmp rcx, rbx
jne 0x100046bde
lea rcx, [rsp + 0x70]
call fcn.10003f93c
xor eax, eax
jmp 0x10004722e
mov qword [rsp + 0x20], rcx
lea r15, [0x10001edf0]
lea r8, [0x100027310]
lea rcx, [rsp + 0x370]
mov edx, 0x103
mov r9, r15
call fcn.10002e570
cmp eax, ebx
jl 0x100046bcd
lea rax, [rsp + 0x60]
lea rdx, [rsp + 0x370]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x100047222
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x370]
lea rdx, [0x10001eab8]
mov r14d, 0x208
xor r8d, r8d
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x54], r14d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, 2
lea r13d, [rbp + 0x1e]
cmp eax, ebx
jne 0x100046dcd
cmp dword [rsp + 0x50], r12d
jne 0x100046dcd
lea rdi, [rsp + 0x370]
lea r14, [0x10001c8c0]
lea rax, [rsp + 0xb0]
mov r8, rdi
mov edx, 0x95
sub r8, rax
lea rcx, [rsp + 0xb0]
lea rax, [rdx + 0x7fffff69]
cmp rax, rbx
je 0x100046ce7
movzx eax, word [r8 + rcx]
cmp ax, bx
je 0x100046ce7
mov word [rcx], ax
add rcx, rbp
sub rdx, r12
jne 0x100046cc6
cmp rdx, rbx
jne 0x100046cef
sub rcx, rbp
mov word [rcx], bx
lea rcx, [rsp + 0xb0]
mov edx, r13d
call qword [sym.imp.msvcrt.dll_wcschr]
cmp rax, rbx
je 0x100046d0b
mov word [rax], bx
lea rax, [rsp + 0xb0]
lea r8, [0x100020d28]
lea rcx, [rsp + 0x1e0]
mov r9, r15
mov edx, 0xc7
mov qword [rsp + 0x20], rax
call fcn.10002e570
cmp eax, ebx
jl 0x100046da5
mov rcx, qword [0x10004d400]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x1e0]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x100046da7
mov rcx, qword [rsp + 0x58]
lea rdx, [0x1000204b0]
mov r9d, r12d
xor r8d, r8d
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100046da7
mov esi, ebx
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
mov rdi, rax
cmp rax, rbx
je 0x100046dc3
add rdi, rbp
jmp 0x100046cab
mov dword [rsp + 0x68], esi
mov r14d, 0x208
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x370]
lea rdx, [0x100022cf0]
xor r8d, r8d
mov dword [rsp + 0x54], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x100046f3b
cmp dword [rsp + 0x50], r12d
jne 0x100046f3b
lea rdi, [rsp + 0x370]
lea r14, [0x10001c8c0]
lea rax, [rsp + 0xb0]
mov r8, rdi
mov edx, 0x95
sub r8, rax
lea rcx, [rsp + 0xb0]
lea rax, [rdx + 0x7fffff69]
cmp rax, rbx
je 0x100046e61
movzx eax, word [r8 + rcx]
cmp ax, bx
je 0x100046e61
mov word [rcx], ax
add rcx, rbp
sub rdx, r12
jne 0x100046e40
cmp rdx, rbx
jne 0x100046e69
sub rcx, rbp
mov word [rcx], bx
lea rcx, [rsp + 0xb0]
mov edx, r13d
call qword [sym.imp.msvcrt.dll_wcschr]
cmp rax, rbx
je 0x100046e85
mov word [rax], bx
lea rax, [rsp + 0xb0]
lea r8, [0x100022f98]
lea rcx, [rsp + 0x1e0]
mov r9, r15
mov edx, 0xc7
mov qword [rsp + 0x20], rax
call fcn.10002e570
mov rcx, qword [0x10004d400]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
lea rdx, [rsp + 0x1e0]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x100046f19
mov rcx, qword [rsp + 0x58]
lea rdx, [0x1000204b0]
mov r9d, r12d
xor r8d, r8d
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
mov rdi, rax
cmp rax, rbx
je 0x100046f35
add rdi, rbp
jmp 0x100046e25
mov r14d, 0x208
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x370]
lea rdx, [0x100022d08]
xor r8d, r8d
mov dword [rsp + 0x54], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x1000470a9
cmp dword [rsp + 0x50], r12d
jne 0x1000470a9
lea rdi, [rsp + 0x370]
lea r14, [0x10001c8c0]
lea rax, [rsp + 0xb0]
mov r8, rdi
mov edx, 0x95
sub r8, rax
lea rcx, [rsp + 0xb0]
lea rax, [rdx + 0x7fffff69]
cmp rax, rbx
je 0x100046fcf
movzx eax, word [r8 + rcx]
cmp ax, bx
je 0x100046fcf
mov word [rcx], ax
add rcx, rbp
sub rdx, r12
jne 0x100046fae
cmp rdx, rbx
jne 0x100046fd7
sub rcx, rbp
mov word [rcx], bx
lea rcx, [rsp + 0xb0]
mov edx, r13d
call qword [sym.imp.msvcrt.dll_wcschr]
cmp rax, rbx
je 0x100046ff3
mov word [rax], bx
lea rax, [rsp + 0xb0]
lea r8, [0x100020780]
lea rcx, [rsp + 0x1e0]
mov r9, r15
mov edx, 0xc7
mov qword [rsp + 0x20], rax
call fcn.10002e570
mov rcx, qword [0x10004d400]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
lea rdx, [rsp + 0x1e0]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x100047087
mov rcx, qword [rsp + 0x58]
lea rdx, [0x1000204b0]
mov r9d, r12d
xor r8d, r8d
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
mov rdi, rax
cmp rax, rbx
je 0x1000470a3
add rdi, rbp
jmp 0x100046f93
mov r14d, 0x208
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x54]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x370]
lea rdx, [0x100022d20]
xor r8d, r8d
mov dword [rsp + 0x54], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x100047215
cmp dword [rsp + 0x50], r12d
jne 0x100047215
lea rdi, [rsp + 0x370]
lea rsi, [0x10001c8c0]
lea rax, [rsp + 0xb0]
mov r8, rdi
mov edx, 0x95
sub r8, rax
lea rcx, [rsp + 0xb0]
lea rax, [rdx + 0x7fffff69]
cmp rax, rbx
je 0x10004713d
movzx eax, word [r8 + rcx]
cmp ax, bx
je 0x10004713d
mov word [rcx], ax
add rcx, rbp
sub rdx, r12
jne 0x10004711c
cmp rdx, rbx
jne 0x100047145
sub rcx, rbp
mov word [rcx], bx
lea rcx, [rsp + 0xb0]
mov edx, r13d
call qword [sym.imp.msvcrt.dll_wcschr]
cmp rax, rbx
je 0x100047161
mov word [rax], bx
lea rax, [rsp + 0xb0]
lea r8, [0x100023060]
lea rcx, [rsp + 0x1e0]
mov r9, r15
mov edx, 0xc7
mov qword [rsp + 0x20], rax
call fcn.10002e570
mov rcx, qword [0x10004d400]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x58]
lea rdx, [rsp + 0x1e0]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x1000471f5
mov rcx, qword [rsp + 0x58]
lea rdx, [0x1000204b0]
mov r9d, r12d
xor r8d, r8d
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_wcschr]
mov rdi, rax
cmp rax, rbx
je 0x100047211
add rdi, rbp
jmp 0x100047101
mov esi, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, esi
lea rcx, [rsp + 0x70]
call fcn.10003f93c
mov eax, ebx
mov rcx, qword [rsp + 0x580]
xor rcx, rsp
call fcn.1000475f0
lea r11, [rsp + 0x590]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret