Function at 0x14004999c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rdi, rcx
lea rcx, [rbp - 0x29]
xor r14d, r14d
mov r12, r8
mov r13, rdx
mov qword [rbp - 0x61], r14
call fcn.140001cc0
lea rcx, [rbp - 0x49]
call fcn.140001cc0
lea rcx, [rbp - 9]
call fcn.140001cc0
lea rdx, [0x14008b090]
mov rcx, r12
call fcn.1400182d0
mov rax, qword [r13 + 8]
mov rcx, qword [rax]
call fcn.140017790
lea rcx, [rbp + 0x17]
mov rdx, rax
call fcn.140001c28
lea r9, [rbp - 9]
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x29]
mov rcx, rax
call fcn.14004968c
mov rax, qword [rbp - 0x41]
mov r11, qword [rbp - 0x49]
mov qword [rbp + 0x1f], rax
mov rax, qword [rbp - 0x39]
lea r8, [rbp - 0x55]
mov qword [rbp + 0x27], rax
mov rax, qword [rbp - 0x31]
lea rdx, [rbp - 0x51]
inc dword [rax]
lea rcx, [rbp + 0x17]
mov qword [rbp + 0x17], r11
mov qword [rbp + 0x2f], rax
call fcn.1400497d0
test al, al
jne 0x140049a9a
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
cmp byte [rcx + 0x19], r14b
je 0x140049a71
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax + 0x48]
jmp 0x140049a75
mov rdx, qword [rcx + 0x10]
mov ebx, 2
mov dword [rdx + 0x1c], ebx
cmp byte [rcx + 0x19], r14b
je 0x140049a8d
mov rax, qword [rcx + 0x10]
mov rcx, qword [rax + 0x48]
jmp 0x140049a91
mov rcx, qword [rcx + 0x10]
mov byte [rcx + 0x20], r14b
jmp 0x140049ff4
cmp qword [rbp - 0x21], r14
je 0x140049b25
mov rdx, qword [rbp - 0x51]
mov rcx, qword [rbp - 0x29]
lea r8, [rbp - 0x61]
call qword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
je 0x140049b1f
mov rcx, qword [rdi]
movsxd rbx, dword [rcx + 4]
add rbx, rdi
mov rcx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], r14b
je 0x140049ad2
mov rcx, qword [rcx + 0x48]
add rcx, 0x28
mov edx, eax
call fcn.1400180b8
cmp byte [rbx + 0x19], r14b
je 0x140049aed
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x48]
jmp 0x140049af1
mov rcx, qword [rbx + 0x10]
mov byte [rcx + 0x40], r14b
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
cmp byte [rcx + 0x19], r14b
je 0x140049b0f
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax + 0x48]
jmp 0x140049b13
mov rdx, qword [rcx + 0x10]
mov dword [rdx + 0x1c], 3
jmp 0x140049a7d
mov rcx, qword [rbp - 0x61]
jmp 0x140049b29
mov rcx, qword [rbp - 0x51]
mov r9d, dword [rbp - 0x55]
mov rdx, qword [rbp - 9]
lea rax, [rbp - 0x69]
or r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140049bc2
mov rcx, qword [rdi]
movsxd rbx, dword [rcx + 4]
add rbx, rdi
mov rcx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], r14b
je 0x140049b66
mov rcx, qword [rcx + 0x48]
add rcx, 0x28
mov edx, eax
call fcn.1400180b8
cmp byte [rbx + 0x19], r14b
je 0x140049b81
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x48]
jmp 0x140049b85
mov rcx, qword [rbx + 0x10]
mov byte [rcx + 0x40], r14b
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140049b98
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
cmp byte [rcx + 0x19], r14b
je 0x140049bb2
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax + 0x48]
jmp 0x140049bb6
mov rdx, qword [rcx + 0x10]
mov dword [rdx + 0x1c], 1
jmp 0x140049a7d
mov rax, qword [r13 + 8]
mov rcx, qword [rax + 8]
call fcn.140017790
mov rcx, qword [rbp - 0x69]
lea r9, [rbp + 0x7f]
mov rdx, rax
lea rax, [rbp + 0x6f]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140049c5b
mov rcx, qword [rdi]
movsxd rbx, dword [rcx + 4]
add rbx, rdi
mov rcx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], r14b
je 0x140049c0d
mov rcx, qword [rcx + 0x48]
add rcx, 0x28
mov edx, eax
call fcn.1400180b8
cmp byte [rbx + 0x19], r14b
je 0x140049c28
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x48]
jmp 0x140049c2c
mov rcx, qword [rbx + 0x10]
mov byte [rcx + 0x40], r14b
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
cmp byte [rcx + 0x19], r14b
je 0x140049c4a
mov rax, qword [rcx + 0x10]
mov r8, qword [rax + 0x48]
jmp 0x140049c4e
mov r8, qword [rcx + 0x10]
or rdx, 0xffffffffffffffff
mov dword [r8 + 0x1c], edx
jmp 0x140049fc3
mov rax, qword [rdi]
movsxd rbx, dword [rax + 4]
add rbx, rdi
cmp byte [rbx + 0x19], r14b
je 0x140049c75
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x48]
jmp 0x140049c79
mov rcx, qword [rbx + 0x10]
mov edx, dword [rbp + 0x7f]
add rcx, 0x28
call fcn.1400180b8
cmp byte [rbx + 0x19], r14b
je 0x140049c95
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x48]
jmp 0x140049c99
mov rcx, qword [rbx + 0x10]
mov byte [rcx + 0x40], r14b
mov eax, dword [rbp + 0x7f]
test eax, eax
je 0x140049f9e
mov ebx, 2
cmp eax, ebx
jbe 0x140049ea5
cmp eax, 3
je 0x140049dda
cmp eax, 4
je 0x140049d87
cmp eax, 7
jne 0x140049f9e
mov ecx, dword [rbp + 0x6f]
mov eax, ebx
shr rcx, 1
add rcx, rbx
mul rcx
lea rdx, [rbx - 3]
cmovo rax, rdx
mov rcx, rax
call fcn.14006f7d8
mov rcx, qword [r13 + 8]
mov rcx, qword [rcx + 8]
mov rsi, rax
call fcn.140017790
mov rcx, qword [rbp - 0x69]
xor r9d, r9d
mov rdx, rax
lea rax, [rbp + 0x6f]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test eax, eax
jne 0x140049f18
mov eax, dword [rbp + 0x6f]
shr eax, 1
mov dword [rbp + 0x6f], eax
mov word [rsi + rax*2], r14w
mov edx, dword [rbp + 0x6f]
cmp edx, 1
jbe 0x140049f0b
lea ecx, [rdx - 1]
lea r8d, [rbx + 8]
cmp word [rsi + rcx*2], r14w
cmove edx, ecx
mov ecx, r14d
mov dword [rbp + 0x6f], edx
test edx, edx
je 0x140049d74
mov rax, rsi
cmp word [rax], r14w
jne 0x140049d6b
mov word [rax], r8w
mov edx, dword [rbp + 0x6f]
inc ecx
add rax, rbx
cmp ecx, edx
jb 0x140049d5e
lea eax, [rcx - 1]
cmp word [rsi + rax*2], r8w
jne 0x140049f0b
jmp 0x140049f06
mov rax, qword [r13 + 8]
mov dword [rbp + 0x6f], 4
mov rcx, qword [rax + 8]
call fcn.140017790
mov rcx, qword [rbp - 0x69]
xor r9d, r9d
mov rdx, rax
lea rax, [rbp + 0x6f]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rbp - 0x59]
pxor xmm1, xmm1
mov rcx, r12
cvtsi2sd xmm1, r11
call fcn.1400182a0
jmp 0x140049fdb
mov edx, dword [rbp + 0x6f]
mov rcx, r12
call fcn.1400180e4
mov rcx, qword [r13 + 8]
mov rcx, qword [rcx + 8]
mov rbx, rax
call fcn.140017790
mov rcx, qword [rbp - 0x69]
xor r9d, r9d
mov rdx, rax
lea rax, [rbp + 0x6f]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140049fdb
mov rcx, qword [rdi]
movsxd rbx, dword [rcx + 4]
add rbx, rdi
mov rcx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], r14b
je 0x140049e36
mov rcx, qword [rcx + 0x48]
add rcx, 0x28
mov edx, eax
call fcn.1400180b8
cmp byte [rbx + 0x19], r14b
je 0x140049e51
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x48]
jmp 0x140049e55
mov rcx, qword [rbx + 0x10]
mov byte [rcx + 0x40], r14b
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
cmp byte [rcx + 0x19], r14b
je 0x140049e73
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax + 0x48]
jmp 0x140049e77
mov rdx, qword [rcx + 0x10]
mov dword [rdx + 0x1c], 0xfffffffe
cmp byte [rcx + 0x19], r14b
je 0x140049e8e
mov rax, qword [rcx + 0x10]
mov rcx, qword [rax + 0x48]
jmp 0x140049e92
mov rcx, qword [rcx + 0x10]
mov byte [rcx + 0x20], r14b
xor edx, edx
mov rcx, r12
call fcn.1400180b8
jmp 0x140049fdb
mov ecx, dword [rbp + 0x6f]
mov rax, rbx
shr rcx, 1
inc rcx
mul rcx
mov rdx, 0xffffffffffffffff
cmovo rax, rdx
mov rcx, rax
call fcn.14006f7d8
mov rcx, qword [r13 + 8]
mov rcx, qword [rcx + 8]
mov rsi, rax
call fcn.140017790
mov rcx, qword [rbp - 0x69]
xor r9d, r9d
mov rdx, rax
lea rax, [rbp + 0x6f]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test eax, eax
jne 0x140049f18
mov eax, dword [rbp + 0x6f]
shr eax, 1
mov dword [rbp + 0x6f], eax
mov word [rsi + rax*2], r14w
mov rdx, rsi
mov rcx, r12
call fcn.1400182d0
jmp 0x140049f94
mov rax, qword [rdi]
movsxd rbx, dword [rax + 4]
add rbx, rdi
cmp byte [rbx + 0x19], r14b
je 0x140049f32
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x48]
jmp 0x140049f36
mov rcx, qword [rbx + 0x10]
add rcx, 0x28
call fcn.1400180b8
cmp byte [rbx + 0x19], r14b
je 0x140049f4f
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x48]
jmp 0x140049f53
mov rcx, qword [rbx + 0x10]
mov byte [rcx + 0x40], r14b
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
cmp byte [rcx + 0x19], r14b
je 0x140049f71
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax + 0x48]
jmp 0x140049f75
mov rdx, qword [rcx + 0x10]
mov dword [rdx + 0x1c], 0xfffffffe
cmp byte [rcx + 0x19], r14b
je 0x140049f8c
mov rax, qword [rcx + 0x10]
mov rcx, qword [rax + 0x48]
jmp 0x140049f90
mov rcx, qword [rcx + 0x10]
mov byte [rcx + 0x20], r14b
mov rcx, rsi
call fcn.14006f380
jmp 0x140049fdb
mov rax, qword [rdi]
movsxd rcx, dword [rax + 4]
add rcx, rdi
cmp byte [rcx + 0x19], r14b
je 0x140049fb8
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax + 0x48]
jmp 0x140049fbc
mov rdx, qword [rcx + 0x10]
mov dword [rdx + 0x1c], 0xfffffffe
cmp byte [rcx + 0x19], r14b
je 0x140049fd3
mov rax, qword [rcx + 0x10]
mov rcx, qword [rax + 0x48]
jmp 0x140049fd7
mov rcx, qword [rcx + 0x10]
mov byte [rcx + 0x20], r14b
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x140049ff4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 9]
call fcn.140001d20
lea rcx, [rbp - 0x49]
call fcn.140001d20
lea rcx, [rbp - 0x29]
call fcn.140001d20
lea r11, [rsp + 0xd0]
xor eax, eax
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret