Function at 0x1400478d0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2a0]
sub rsp, 0x3a0
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rbp + 0x298], rax
mov rbx, rcx
xor r13d, r13d
mov dword [rsp + 0x70], r13d
mov dword [rbp + 0x268], r13d
mov qword [rbp + 0x270], r13
lea rax, [rbp + 0x270]
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 0x14004845e
lea rax, [rbp + 0x268]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
lea rdx, str.74525cca_11db_44fa_b723_23038b38ef9b
mov rcx, qword [rbp + 0x270]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x1400479a6
test eax, eax
je 0x1400479a6
lea rcx, str._AsusSync_CommMgr__LoadDevInfo___fail_to_query_size_of_device_info_data_n
call fcn.140095ab0
mov rcx, qword [rbp + 0x270]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14004846a
mov ecx, dword [rbp + 0x268]
inc ecx
call fcn.1400c26fc
mov r14, rax
mov qword [rbp], rax
lea rax, [rbp + 0x268]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
lea rdx, str.74525cca_11db_44fa_b723_23038b38ef9b
mov rcx, qword [rbp + 0x270]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14004843b
mov r10d, dword [rbp + 0x268]
mov r9d, r13d
test r10d, r10d
je 0x140047a33
nop dword [rax]
test r9b, 1
je 0x140047a24
mov r8d, r9d
movzx edx, byte [r8 + r14]
lea eax, [r9 - 1]
mov ecx, eax
movzx eax, byte [rax + r14]
mov byte [rcx + r14], dl
sub al, r9b
mov byte [r8 + r14], al
inc r9d
cmp r9d, r10d
jb 0x140047a00
mov r10d, dword [rbp + 0x268]
mov eax, r10d
mov byte [rax + r14], r13b
lea rax, [rbp + 0x138]
mov qword [rbp - 0x68], rax
mov qword [rbp + 0x170], r13
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [r14 + rdi], 0
jne 0x140047a53
mov ecx, 0x30
call fcn.1400c2704
mov rcx, rax
mov qword [rbp - 0x68], 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 [rcx], rax
lea rdx, [rcx + 0x10]
lea rax, vtable.nlohmann::detail::input_buffer_adapter.0
mov qword [rdx], rax
mov qword [rdx + 8], r14
lea rax, [rdi + r14]
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], r14
cmp rdi, 3
jb 0x140047acc
cmp byte [r14], 0xef
jne 0x140047acc
cmp byte [r14 + 1], 0xbb
jne 0x140047acc
cmp byte [r14 + 2], 0xbf
jne 0x140047acc
lea rax, [r14 + 3]
mov qword [rdx + 8], rax
mov esi, 8
mov dword [rsp + 0x70], esi
mov qword [rbp - 0x58], rdx
mov qword [rbp - 0x50], rcx
movdqu xmmword [rbp + 0x58], xmm0
lea r8, [rbp + 0x138]
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x288]
call fcn.14001c710
nop
cmp byte [rbp + 0x288], sil
je 0x140048403
mov rdx, r14
lea rcx, str._AsusSync_CommMgr__LoadDevInfo____s_n
call fcn.1400959a0
lea rdx, str.numofdevs
lea rcx, [rbp + 0x288]
call fcn.140025520
movzx ecx, byte [rax]
lea eax, [rcx - 5]
cmp al, 1
jbe 0x140047b3c
cmp cl, 7
jne 0x1400483e4
lea rdx, str.devs
lea rcx, [rbp + 0x288]
call fcn.140025520
cmp byte [rax], 2
jne 0x1400483e4
lea rdx, str.numofdevs
lea rcx, [rbp + 0x288]
call fcn.140025520
mov rcx, rax
call fcn.140025720
mov edi, eax
mov dword [rbp - 0x78], eax
mov byte [rbp + 0x278], 0
xor edx, edx
lea rcx, [rbp + 0x280]
call fcn.14001fb30
nop
mov r14, r13
mov qword [rsp + 0x78], r13
mov eax, r13d
mov dword [rbp - 0x80], eax
test edi, edi
jle 0x1400483cb
movsxd rdi, eax
lea rdx, str.devs
lea rcx, [rbp + 0x288]
call fcn.140025520
mov rcx, rax
mov rdx, rdi
call fcn.14001c950
mov rdx, rax
lea rcx, [rbp + 0x68]
call fcn.14001ce10
movzx edx, byte [rbp + 0x278]
movzx ecx, byte [rax]
mov byte [rbp + 0x278], cl
mov byte [rax], dl
lea rcx, [rax + 8]
mov rax, qword [rbp + 0x280]
mov r8, qword [rcx]
mov qword [rbp + 0x280], r8
mov qword [rcx], rax
call fcn.14001f060
lea rdx, str.addr
lea rcx, [rbp + 0x278]
call fcn.140025520
movzx ecx, byte [rax]
lea eax, [rcx - 5]
cmp al, 1
jbe 0x140047c26
cmp cl, 7
jne 0x1400483a8
lea rdx, [0x140117c30]
lea rcx, [rbp + 0x278]
call fcn.140025520
cmp byte [rax], 3
jne 0x1400483a8
lea rdx, [0x140117c48]
lea rcx, [rbp + 0x278]
call fcn.140025520
cmp byte [rax], 3
jne 0x1400483a8
lea rdx, str.type
lea rcx, [rbp + 0x278]
call fcn.140025520
movzx ecx, byte [rax]
lea eax, [rcx - 5]
cmp al, 1
jbe 0x140047c84
cmp cl, 7
jne 0x1400483a8
lea rdx, str.enablephone
lea rcx, [rbp + 0x278]
call fcn.140025520
cmp byte [rax], 4
jne 0x1400483a8
lea rdx, str.enablenotification
lea rcx, [rbp + 0x278]
call fcn.140025520
cmp byte [rax], 4
jne 0x1400483a8
lea rdx, str.receivedfolder
lea rcx, [rbp + 0x278]
call fcn.140025520
cmp byte [rax], 3
jne 0x1400483a8
lea rdx, str.iconfolder
lea rcx, [rbp + 0x278]
call fcn.140025520
cmp byte [rax], 3
jne 0x1400483a8
lea rdx, str.addr
lea rcx, [rbp + 0x278]
call fcn.140025520
mov rcx, rax
call fcn.14004d460
mov rdi, rax
xor r15b, r15b
test rax, rax
je 0x140047d9d
lea rcx, [rbx + 0x958]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov r8d, r13d
mov rdx, r13
mov r9, qword [rbx + 8]
mov r10, qword [rbx]
mov rcx, r9
sub rcx, r10
sar rcx, 3
test rcx, rcx
je 0x140047d90
sub r9, r10
sar r9, 3
nop
cmp r9, rdx
jbe 0x1400484f1
lfence
mov r14, qword [r10 + rdx*8]
cmp qword [r14 + 0x98], rdi
je 0x140047d89
inc r8d
inc rdx
mov rcx, qword [rbx + 8]
sub rcx, qword [rbx]
sar rcx, 3
movsxd rax, r8d
cmp rax, rcx
jb 0x140047d50
mov r14, qword [rsp + 0x78]
jmp 0x140047d8c
mov r15b, 1
mov esi, dword [rsp + 0x70]
lea rcx, [rbx + 0x958]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
test r15b, r15b
je 0x140047eb1
lea rdx, [0x140117c30]
lea rcx, [rbp + 0x278]
call fcn.140025520
nop
mov qword [rbp - 0x48], r13
mov rcx, r13
mov qword [rbp - 0x38], rcx
mov r15d, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x30], r15
mov byte [rbp - 0x48], 0
or esi, 0x10
mov dword [rsp + 0x70], esi
cmp byte [rax], 3
jne 0x1400484fd
mov r8, qword [rax + 8]
lea rax, [rbp - 0x48]
cmp rax, r8
je 0x140047e12
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x140047dfd
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp - 0x48]
call fcn.140028190
mov r15, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x38]
lea rdx, [rbp - 0x48]
cmp r15, 0x10
setae r12b
mov rdi, qword [rbp - 0x48]
cmovae rdx, rdi
lea rax, [r14 + 0x58]
cmp qword [r14 + 0x70], 0x10
jb 0x140047e35
mov rax, qword [r14 + 0x58]
mov r8, qword [r14 + 0x68]
cmp r8, rcx
jne 0x140047e4f
mov rcx, rax
call fcn.1400c5370
test eax, eax
jne 0x140047e4f
mov r14b, 1
jmp 0x140047e52
xor r14b, r14b
and esi, 0xffffffef
mov dword [rsp + 0x70], esi
test r12b, r12b
je 0x140047e8f
lea rdx, [r15 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140047e87
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400484f7
mov rcx, rdi
call fcn.1400c2470
mov byte [rbp - 0x48], 0
test r14b, r14b
je 0x140047eb1
lea rcx, str._AsusSync_CommMgr__LoadDevInfo___device_is_already_existent._n
call fcn.1400959a0
mov r14, r13
mov qword [rsp + 0x78], r13
jmp 0x140048396
mov dword [rsp + 0x78], 0x10000
mov qword [rbp - 0x60], r13
lea rdx, [0x140117cb0]
lea rcx, [rbp + 0x278]
call fcn.140025520
movzx ecx, byte [rax]
lea eax, [rcx - 5]
cmp al, 1
jbe 0x140047edf
cmp cl, 7
jne 0x140047efe
lea rdx, [0x140117cb0]
lea rcx, [rbp + 0x278]
call fcn.140025520
mov rcx, rax
call fcn.140025720
mov dword [rsp + 0x78], eax
lea rdx, str.bleaddr
lea rcx, [rbp + 0x278]
call fcn.140025520
movzx edx, byte [rax]
lea ecx, [rdx - 5]
cmp cl, 1
jbe 0x140047f21
cmp dl, 7
jne 0x140047f40
lea rdx, str.bleaddr
lea rcx, [rbp + 0x278]
call fcn.140025520
mov rcx, rax
call fcn.14004d460
mov qword [rbp - 0x60], rax
cmp byte [rbx + 0x68], 0
je 0x140047f53
mov edx, 4
mov rcx, rbx
call fcn.140044ff0
mov ecx, 0x2d8
call fcn.1400c2704
mov qword [rbp - 0x68], rax
xor edx, edx
mov r8d, 0x2d8
mov rcx, rax
call fcn.1400c5120
lea rax, [rbp + 0x98]
mov qword [rbp + 0x48], rax
lea rax, [rbp + 0xb8]
mov qword [rbp + 0x50], rax
lea rdx, str.ghostnotification
lea rcx, [rbp + 0x278]
call fcn.140025520
cmp byte [rax], 4
jne 0x140047fbf
lea rdx, str.ghostnotification
lea rcx, [rbp + 0x278]
call fcn.140025520
mov rcx, rax
call fcn.14004d350
movzx edi, al
jmp 0x140047fc2
mov edi, r13d
lea rax, [rbp + 0xd8]
mov qword [rbp + 0x58], rax
lea rax, [rbp + 0xf8]
mov qword [rbp - 0x58], rax
lea rdx, str.iconfolder
lea rcx, [rbp + 0x278]
call fcn.140025520
mov rcx, rax
lea rdx, [rbp + 0x78]
call fcn.140025800
nop
or esi, 1
mov dword [rsp + 0x70], esi
mov rdx, rax
lea rcx, [rbp + 0x98]
call fcn.140097be0
mov qword [rbp - 8], rax
lea rdx, str.receivedfolder
lea rcx, [rbp + 0x278]
call fcn.140025520
mov rcx, rax
lea rdx, [rbp + 8]
call fcn.140025800
nop
or esi, 2
mov dword [rsp + 0x70], esi
mov rdx, rax
lea rcx, [rbp + 0xb8]
call fcn.140097be0
mov qword [rbp - 0x70], rax
lea rdx, [0x140117c48]
lea rcx, [rbp + 0x278]
call fcn.140025520
mov rcx, rax
lea rdx, [rbp + 0x28]
call fcn.140025800
nop
or esi, 4
mov dword [rbp - 0x7c], esi
mov dword [rsp + 0x70], esi
mov rdx, rax
lea rcx, [rbp + 0xd8]
call fcn.140097be0
mov r13, rax
lea rdx, [0x140117c30]
lea rcx, [rbp + 0x278]
call fcn.140025520
mov rcx, rax
lea rdx, [rbp + 0xf8]
call fcn.140025800
mov r12, rax
test edi, edi
setne r15b
lea rdx, str.enablenotification
lea rcx, [rbp + 0x278]
call fcn.140025520
mov rcx, rax
call fcn.14004d350
test al, al
setne r14b
lea rdx, str.enablephone
lea rcx, [rbp + 0x278]
call fcn.140025520
mov rcx, rax
call fcn.14004d350
test al, al
setne sil
lea rdx, str.type
lea rcx, [rbp + 0x278]
call fcn.140025520
mov rcx, rax
call fcn.14004d350
movzx edi, al
lea rdx, str.addr
lea rcx, [rbp + 0x278]
call fcn.140025520
mov rcx, rax
call fcn.14004d460
mov r9, rax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x68], eax
mov byte [rsp + 0x60], 0
mov rax, qword [rbp - 8]
mov qword [rsp + 0x58], rax
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x48], r15b
mov byte [rsp + 0x40], r14b
mov byte [rsp + 0x38], sil
mov byte [rsp + 0x30], dil
mov qword [rsp + 0x28], r13
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r8, r12
mov rdx, rbx
mov rcx, qword [rbp - 0x68]
call fcn.14002df40
mov r14, rax
mov qword [rsp + 0x78], rax
mov esi, dword [rbp - 0x7c]
and esi, 0xfffffffb
mov rdx, qword [rbp + 0x40]
cmp rdx, 0x10
jb 0x1400481ca
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400481c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140048554
call fcn.1400c2470
xor r13d, r13d
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x28], r13b
and esi, 0xfffffffd
mov rdx, qword [rbp + 0x20]
cmp rdx, 0x10
jb 0x14004821b
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140048216
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004855a
call fcn.1400c2470
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x20], reloc.WS2_32.dll_ntohs
mov byte [rbp + 8], 0
and esi, 0xfffffffe
mov dword [rsp + 0x70], esi
mov rdx, qword [rbp + 0x90]
cmp rdx, 0x10
jb 0x140048270
inc rdx
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004826b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140048560
call fcn.1400c2470
mov byte [rbp + 0x78], 0
lea rcx, [rbx + 0x958]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140048295
mov qword [rdx], r14
add qword [rbx + 8], 8
jmp 0x1400482a2
lea r8, [rsp + 0x78]
mov rcx, rbx
call fcn.14000a170
lea rcx, [rbx + 0x958]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rdx, qword [r14 + 0x98]
lea rcx, str._AsusSync_CommMgr__AddCommDevice___0x_I64X_n
call fcn.1400959a0
cmp qword [rbx + 0x130], 0
je 0x140048396
lea rdx, str.receivedfolder
lea rcx, [rbp + 0x278]
call fcn.140025520
nop
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x28], 0
bts esi, 9
mov dword [rsp + 0x70], esi
cmp byte [rax], 3
jne 0x14004849a
mov r8, qword [rax + 8]
lea rax, [rbp - 0x28]
cmp rax, r8
je 0x140048330
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x140048323
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp - 0x28]
call fcn.140028190
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x118]
call fcn.140097be0
mov rdx, rax
mov rcx, qword [rbx + 0x130]
call fcn.140077190
btr esi, 9
mov dword [rsp + 0x70], esi
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x140048392
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004838d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140048566
call fcn.1400c2470
mov byte [rbp - 0x28], 0
mov eax, dword [rbp - 0x80]
inc eax
mov dword [rbp - 0x80], eax
cmp eax, dword [rbp - 0x78]
jge 0x1400483cb
jmp 0x140047ba4
lea r8, str.74525cca_11db_44fa_b723_23038b38ef9b
xor edx, edx
mov rcx, qword [rbp + 0x270]
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegDeleteKeyValueW]
lea rcx, str._AsusSync_CommMgr__LoadDevInfo___invalid_parameters__delete_it
call fcn.140095ab0
nop
movzx edx, byte [rbp + 0x278]
lea rcx, [rbp + 0x280]
call fcn.14001f060
mov r14, qword [rbp]
jmp 0x140048426
lea r8, str.74525cca_11db_44fa_b723_23038b38ef9b
xor edx, edx
mov rcx, qword [rbp + 0x270]
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegDeleteKeyValueW]
lea rcx, str._AsusSync_CommMgr__LoadDevInfo___invalid_parameters__delete_it
jmp 0x140048420
lea r8, str.74525cca_11db_44fa_b723_23038b38ef9b
xor edx, edx
mov rcx, qword [rbp + 0x270]
call qword [sym.imp.api_ms_win_core_registry_l1_1_1.dll_RegDeleteKeyValueW]
lea rcx, str._AsusSync_CommMgr__LoadDevInfo___fail_to_parse_device_info_data__delete_it_n
call fcn.140095ab0
nop
movzx edx, byte [rbp + 0x288]
lea rcx, [rbp + 0x290]
call fcn.14001f060
jmp 0x140048447
lea rcx, str._AsusSync_CommMgr__LoadDevInfo___fail_to_get_device_info_data_n
call fcn.140095ab0
mov rcx, r14
call fcn.1400c2470
mov rcx, qword [rbp + 0x270]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14004846a
lea rcx, str._AsusSync_CommMgr__LoadDevInfo___fail_to_open_key_n
call fcn.140095ab0
mov rcx, qword [rbp + 0x298]
xor rcx, rsp
call fcn.1400c2450
lea r11, [rsp + 0x3a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, rax
call fcn.14001f2a0
mov rdx, rax
lea rcx, [rbp + 0x228]
call fcn.14001da20
nop
mov r8, rax
lea rdx, str.type_must_be_string__but_is
lea rcx, [rbp + 0x248]
call fcn.140024f50
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rbp + 0x1b0]
call fcn.140018ad0
lea rdx, [0x14015fe98]
lea rcx, [rbp + 0x1b0]
call fcn.1400c4980
nop
call fcn.14000a150
int3
call fcn.1400c8b64
nop
mov rcx, rax
call fcn.14001f2a0
mov rdx, rax
lea rcx, [rbp + 0x1e8]
call fcn.14001da20
nop
mov r8, rax
lea rdx, str.type_must_be_string__but_is
lea rcx, [rbp + 0x208]
call fcn.140024f50
nop
mov r8, rax
mov edx, 0x12e
lea rcx, [rbp + 0x178]
call fcn.140018ad0
lea rdx, [0x14015fe98]
lea rcx, [rbp + 0x178]
call fcn.1400c4980
nop
call fcn.1400c8b64
nop
call fcn.1400c8b64
nop
call fcn.1400c8b64
int3
call fcn.1400c8b64
int3