Function at 0x14004a090
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov rdx, qword [str.SYSTEMCurrentControlSetServicesWUCS]
lea rax, [r11 + 0x20]
mov rbx, rcx
mov qword [r11 - 0x48], rax
xor edi, edi
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
mov qword [r11 + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004a100
mov edi, 0x23300016
lea r9, str.ERROR
lea r8, [0x1400cbd78]
mov dword [rsp + 0x20], edi
lea rdx, str.__s_____s___0x_lx__open_jws_from_reg_failed_r_n
mov ecx, 3
call fcn.14000afc0
jmp 0x14004a361
mov rdx, qword [0x1401204d8]
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x88]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x80], 3
mov dword [rsp + 0x78], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14004a16f
mov edi, 0x23300016
lea r9, str.ERROR
lea r8, [0x1400cbd78]
mov dword [rsp + 0x20], edi
lea rdx, str.__s_____s___0x_lx__get_jws_len_failed_r_n
mov ecx, 3
call fcn.14000afc0
jmp 0x14004a361
mov eax, dword [rsp + 0x78]
test eax, eax
jne 0x14004a19e
lea r9, str.WARN
lea r8, [0x1400cbd78]
lea rdx, str.__s_____s__not_find_jws_reg_r_n
lea ecx, [rax + 2]
call fcn.14000afc0
mov edi, 0x23300016
jmp 0x14004a361
mov rcx, rax
call fcn.14002d800
mov r15, rax
test rax, rax
jne 0x14004a1d9
mov edi, 0x23300001
lea r9, str.ERROR
lea r8, [0x1400cbd78]
mov dword [rsp + 0x20], edi
lea rdx, str.__s_____s___0x_lx__jws_data_malloc_failed_r_n
lea ecx, [rax + 3]
call fcn.14000afc0
jmp 0x14004a361
mov rdx, qword [0x1401204d8]
lea rax, [rsp + 0x78]
mov rcx, qword [rsp + 0x88]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x80], 3
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14004a244
mov edi, 0x23300016
lea r9, str.ERROR
lea r8, [0x1400cbd78]
mov dword [rsp + 0x20], edi
lea rdx, str.__s_____s___0x_lx__get_jws_data_failed_r_n
mov ecx, 3
call fcn.14000afc0
jmp 0x14004a359
xor r8d, r8d
lea rdx, [0x1400cd62b]
mov rcx, rbx
call fcn.1400046c0
mov ebp, dword [rsp + 0x78]
mov r14, qword [rbx + 0x18]
cmp rbp, r14
ja 0x14004a28a
mov rsi, rbx
cmp r14, 0x10
jb 0x14004a26f
mov rsi, qword [rbx]
mov r8, rbp
mov qword [rbx + 0x10], rbp
mov rdx, r15
mov rcx, rsi
call fcn.1400a1c90
mov byte [rsi + rbp], dil
jmp 0x14004a359
mov rdx, r14
movabs r13, 0x7fffffffffffffff
shr rdx, 1
mov rax, r13
mov rcx, rbp
sub rax, rdx
or rcx, 0xf
cmp r14, rax
ja 0x14004a2ba
lea rax, [rdx + r14]
mov r13, rcx
cmp rcx, rax
cmovb r13, rax
lea rax, [r13 + 1]
cmp rax, 0x1000
jb 0x14004a2f4
lea rcx, [rax + 0x27]
mov rdx, 0xffffffffffffffff
cmp rcx, rax
cmovbe rcx, rdx
call fcn.14009fc84
test rax, rax
je 0x14004a385
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14004a309
test rax, rax
je 0x14004a306
mov rcx, rax
call fcn.14009fc84
mov rsi, rax
jmp 0x14004a309
mov rsi, rdi
mov r8, rbp
mov qword [rbx + 0x10], rbp
mov rdx, r15
mov qword [rbx + 0x18], r13
mov rcx, rsi
call fcn.1400a1c90
mov byte [rsi + rbp], dil
cmp r14, 0x10
jb 0x14004a356
mov rcx, qword [rbx]
lea rdx, [r14 + 1]
cmp rdx, 0x1000
jb 0x14004a351
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004a385
mov rcx, r8
call fcn.14009fcc0
mov qword [rbx], rsi
mov rcx, r15
call fcn.14002d7f0
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14004a374
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.1400a47dc
int3