Function at 0x14005ef90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rbp], rax
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x50], r14d
mov dword [rbp - 0x20], r14d
mov qword [rbp - 0x18], r14
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWAREASUSASUS_System_Control_InterfaceLinktoMyASUS
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005f3e2
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, str.470E8A83_7A0D_4C0E_BFCD_F975974472AA
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x14005f044
test eax, eax
je 0x14005f044
lea rcx, str._AsusSync_GlidexAdvertisingHandler__LoadConfig___fail_to_query_size_of_config_data_n
call fcn.140095ab0
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14005f3ee
mov ecx, dword [rbp - 0x20]
inc ecx
call fcn.1400c26fc
mov rbx, rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.470E8A83_7A0D_4C0E_BFCD_F975974472AA
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14005f3c2
mov r10d, dword [rbp - 0x20]
mov r9d, r14d
test r10d, r10d
je 0x14005f0be
nop word [rax + rax]
test r9b, 1
je 0x14005f0b2
mov r8d, r9d
movzx edx, byte [r8 + rbx]
lea eax, [r9 - 1]
mov ecx, eax
movzx eax, byte [rax + rbx]
mov byte [rcx + rbx], dl
sub al, r9b
mov byte [r8 + rbx], al
inc r9d
cmp r9d, r10d
jb 0x14005f090
mov r10d, dword [rbp - 0x20]
mov eax, r10d
mov byte [rax + rbx], r14b
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov qword [rbp - 0x68], r14
mov rdi, 0xffffffffffffffff
nop word [rax + rax]
inc rdi
cmp byte [rbx + rdi], 0
jne 0x14005f0e0
mov ecx, 0x30
call fcn.1400c2704
mov rdx, rax
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_nlohmann::detail::input_buffer_adapter_.0
mov qword [rdx], rax
lea rcx, [rdx + 0x10]
lea rax, vtable.nlohmann::detail::input_buffer_adapter.0
mov qword [rcx], rax
mov qword [rcx + 8], rbx
lea rax, [rdi + rbx]
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rbx
cmp rdi, 3
jb 0x14005f156
cmp byte [rbx], 0xef
jne 0x14005f156
cmp byte [rbx + 1], 0xbb
jne 0x14005f156
cmp byte [rbx + 2], 0xbf
jne 0x14005f156
lea rax, [rbx + 3]
mov qword [rcx + 8], rax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rdx
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x10]
call fcn.14001c710
nop
cmp byte [rbp - 0x10], 8
je 0x14005f3b3
mov rdx, rbx
lea rcx, str._AsusSync_GlidexAdvertisingHandler__LoadConfig____s_n
call fcn.1400959a0
lea rdx, str.lastadtime
lea rcx, [rbp - 0x10]
call fcn.140025520
movzx ecx, byte [rax]
lea eax, [rcx - 5]
cmp al, 1
jbe 0x14005f1ac
cmp cl, 7
jne 0x14005f1c8
lea rdx, str.lastadtime
lea rcx, [rbp - 0x10]
call fcn.140025520
mov rcx, rax
call fcn.14004d460
mov qword [rsi + 0x10], rax
lea rdx, str.finishtime
lea rcx, [rbp - 0x10]
call fcn.140025520
movzx ecx, byte [rax]
lea eax, [rcx - 5]
cmp al, 1
jbe 0x14005f1e7
cmp cl, 7
jne 0x14005f20c
lea rdx, str.finishtime
lea rcx, [rbp - 0x10]
call fcn.140025520
mov rcx, rax
call fcn.14004d460
mov qword [rsi + 0x18], rax
test rax, rax
je 0x14005f20c
mov byte [rsi + 2], 1
lea rdx, str.adtype
lea rcx, [rbp - 0x10]
call fcn.140025520
movzx ecx, byte [rax]
lea eax, [rcx - 5]
cmp al, 1
jbe 0x14005f22b
cmp cl, 7
jne 0x14005f24f
lea rdx, str.adtype
lea rcx, [rbp - 0x10]
call fcn.140025520
mov rcx, rax
call fcn.140025720
mov dword [rsi + 0x20], eax
cmp eax, 3
jne 0x14005f24f
mov byte [rsi + 2], 1
lea rdx, str.glidexinstalled
lea rcx, [rbp - 0x10]
call fcn.140025520
cmp byte [rax], 4
jne 0x14005f28c
lea rdx, str.glidexinstalled
lea rcx, [rbp - 0x10]
call fcn.140025520
mov rcx, rax
call fcn.14004d350
test al, al
setne cl
mov byte [rsi + 1], cl
test al, al
je 0x14005f28c
mov byte [rsi + 2], 1
lea rdx, [0x140117c30]
lea rcx, [rbp - 0x10]
call fcn.140025520
cmp byte [rax], 3
jne 0x14005f3b3
lea rdx, [0x140117c30]
lea rcx, [rbp - 0x10]
call fcn.140025520
nop
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], r14
mov ecx, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x48], rcx
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x50], 3
cmp byte [rax], 3
jne 0x14005f418
mov r8, qword [rax + 8]
lea rax, [rsp + 0x30]
cmp rax, r8
je 0x14005f30e
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x14005f2fb
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rsp + 0x30]
call fcn.140028190
mov rcx, qword [rsp + 0x48]
lea rdi, [rsi + 0x28]
lea rax, [rsp + 0x30]
cmp rdi, rax
je 0x14005f379
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14005f356
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x14005f351
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14005f412
mov rcx, r8
call fcn.1400c2470
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdi + 0x10], xmm1
mov ecx, reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], 0
cmp rcx, 0x10
jb 0x14005f3b3
lea rdx, [rcx + 1]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f3ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005f465
call fcn.1400c2470
nop
movzx edx, byte [rbp - 0x10]
lea rcx, [rbp - 8]
call fcn.14001f060
jmp 0x14005f3ce
lea rcx, str._AsusSync_GlidexAdvertisingHandler__LoadConfig___fail_to_get_config_data_n
call fcn.140095ab0
mov rcx, rbx
call fcn.1400c2470
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14005f3ee
lea rcx, str._AsusSync_GlidexAdvertisingHandler__LoadConfig___fail_to_open_key_n
call fcn.140095ab0
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400c2450
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400c8b64
nop
mov rcx, rax
call fcn.14001f2a0
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.14001da20
nop
mov r8, rax
lea rdx, str.type_must_be_string__but_is
lea rcx, [rbp - 0x40]
call fcn.140024f50
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rsp + 0x60]
call fcn.140018ad0
lea rdx, [0x14015fe98]
lea rcx, [rsp + 0x60]
call fcn.1400c4980
nop
call fcn.1400c8b64
int3