Function at 0x140004a00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x140087010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov qword [rsp + 0x40], r8
mov r13, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
mov r14, qword [rsp + 0x120]
mov qword [rsp + 0x58], r14
mov rcx, qword [rdx]
test rcx, rcx
jne 0x140004a69
lea r8d, [rcx + 0x4f]
lea rdx, str.E:xml_data_build_dirCODRU_CL23M_SOURCES_extern_baseincludewinapi_registryget_value.h
lea rcx, str.parent
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [r13]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
lea r9d, [rax + 2]
lea r8, str.settings
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea r12, str.hJ_a_
xor edx, edx
lea r15, [0x1400881b8]
test eax, eax
je 0x140004ac1
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x68], r12
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [r14], xmm0
mov esi, edx
mov rcx, qword [r14 + 8]
jmp 0x140004acf
mov dword [r14], edx
mov qword [r14 + 8], r15
mov esi, dword [rsp + 0x48]
mov rcx, r15
mov rax, qword [0x1400881c0]
cmp qword [rcx + 8], rax
jne 0x140004dd9
cmp dword [r14], 0
jne 0x140004dd9
test rsi, rsi
je 0x140004dd9
test sil, 1
je 0x140004b13
mov r8d, 0xe7
lea rdx, str.E:xml_data_build_dirCODRU_CL23M_SOURCES_extern_baseincludewinapi_registryget_value.h
lea rcx, str.size___sizeof_wchar_t___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
xor edx, edx
mov qword [rsp + 0x90], rdx
mov qword [rsp + 0xa0], rdx
mov qword [rsp + 0xa8], 7
mov word [rsp + 0x90], dx
shr rsi, 1
jne 0x140004b50
mov qword [rsp + 0xa0], rsi
mov word [rsp + rsi*2 + 0x90], dx
jmp 0x140004b9c
cmp rsi, 7
ja 0x140004b7e
mov qword [rsp + 0xa0], rsi
movzx eax, dx
lea rdi, [rsp + 0x90]
mov rcx, rsi
rep stosw word [rdi], ax
mov word [rsp + rsi*2 + 0x90], dx
mov rdi, qword [rsp + 0x40]
jmp 0x140004b9c
lfence
mov word [rsp + 0x20], dx
mov r9, rsi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x90]
call fcn.140024290
lea rcx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 8
cmovae rcx, qword [rsp + 0x90]
mov rax, qword [rsp + 0xa0]
add rax, rax
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
xor esi, esi
mov qword [rsp + 0x20], rsi
lea r9d, [rsi + 2]
lea r8, str.settings
mov rdx, rdi
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140004c11
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x78], r12
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [r14], xmm0
mov ecx, esi
mov r15, qword [r14 + 8]
jmp 0x140004c1c
mov dword [r14], esi
mov qword [r14 + 8], r15
mov ecx, dword [rsp + 0x40]
mov rax, qword [0x1400881c0]
cmp qword [r15 + 8], rax
jne 0x140004d09
cmp dword [r14], esi
jne 0x140004d09
shr rcx, 1
dec rcx
mov r8, qword [rsp + 0xa0]
cmp rcx, r8
ja 0x140004c71
lea rax, [rsp + 0x90]
cmp qword [rsp + 0xa8], 8
cmovae rax, qword [rsp + 0x90]
mov qword [rsp + 0xa0], rcx
mov word [rax + rcx*2], si
jmp 0x140004cdf
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rsp + 0xa8]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x140004cc4
mov qword [rsp + 0xa0], rcx
lea r9, [rsp + 0x90]
cmp rdi, 8
cmovae r9, qword [rsp + 0x90]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x140004cb9
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [rdx + r8]
mov word [r9 + rax*2], si
jmp 0x140004cdf
lfence
mov word [rsp + 0x20], si
mov r9, rdx
xor r8d, r8d
lea rcx, [rsp + 0x90]
call fcn.140024290
lea rcx, [rsp + 0x90]
call fcn.140018860
nop
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0xa0]
movups xmmword [rbx + 0x10], xmm1
jmp 0x140004deb
mov qword [rbx], rsi
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 7
mov word [rbx], si
mov rdx, qword [rsp + 0xa8]
cmp rdx, 8
jb 0x140004d66
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004d61
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400302a0
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], 7
mov word [rsp + 0x90], si
mov rax, rbx
jmp 0x140004dee
mov qword [rbx], rdx
mov qword [rbx + 0x10], rdx
mov qword [rbx + 0x18], 7
mov word [rbx], dx
mov rax, rbx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140030280
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret