Function at 0x1400052a0
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov rsi, rdx
mov rdi, rcx
lea r8, str.Recent_file_list
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x74]
call sym.registry_get_handle
test rax, rax
jne 0x1400055e1
mov rcx, rsi
call qword [sym.imp.user32.dll_GetMenu]
mov r13, rax
movabs rax, 0x2000000050
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm0
lea r9, [rsp + 0x78]
mov rcx, r13
mov edx, 0x3ed
xor r8d, r8d
call qword [sym.imp.user32.dll_GetMenuItemInfoW]
test eax, eax
je 0x1400053a8
mov r14, qword [rsp + 0xa8]
mov qword [rsp + 0x50], r14
xor ebx, ebx
lea r9, [rsp + 0x78]
mov rcx, r13
mov edx, 0x3ee
xor r8d, r8d
call qword [sym.imp.user32.dll_GetMenuItemInfoW]
test eax, eax
je 0x1400053c0
mov r15, qword [rsp + 0xa8]
mov qword [rsp + 0x58], r15
xor ebx, ebx
lea r9, [rsp + 0x78]
mov rcx, r13
mov edx, 0x3ef
xor r8d, r8d
call qword [sym.imp.user32.dll_GetMenuItemInfoW]
test eax, eax
je 0x1400053c8
mov r12, qword [rsp + 0xa8]
mov qword [rsp + 0x60], r12
xor ebx, ebx
lea r9, [rsp + 0x78]
mov rcx, r13
mov edx, 0x3f0
xor r8d, r8d
call qword [sym.imp.user32.dll_GetMenuItemInfoW]
test eax, eax
je 0x1400053cb
mov rbx, qword [rsp + 0xa8]
mov qword [rsp + 0x68], rbx
jmp 0x1400053cb
mov rcx, rdi
xor edx, edx
call qword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
jne 0x140005455
jmp 0x1400055d6
xor r12d, r12d
xor r15d, r15d
jmp 0x1400053cb
xor r12d, r12d
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x1400055d6
test r14, r14
je 0x140005455
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x140005455
test r15, r15
je 0x140005441
mov rcx, r15
mov rdx, rdi
call qword [sym.imp.kernel32.dll_lstrcmpiW]
mov ebp, eax
test eax, eax
je 0x1400055fe
test r12, r12
je 0x140005441
mov rcx, r12
mov rdx, rdi
call qword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x140005607
test rbx, rbx
je 0x140005441
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.kernel32.dll_lstrcmpiW]
test eax, eax
je 0x140005641
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x58], xmm0
test rdi, rdi
je 0x1400055d6
lea rdx, str.File_d
lea rcx, [rsp + 0x44]
mov r8d, 1
call qword [sym.imp.user32.dll_wsprintfW]
xor eax, eax
nop dword [rax + rax]
cmp word [rdi + rax], 0
lea rax, [rax + 2]
jne 0x140005480
add eax, 0xfffffffe
and eax, 0xfffffffe
add eax, 2
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x44]
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x1400055d6
lea rdx, str.File_d
lea rcx, [rsp + 0x44]
mov r8d, 2
call qword [sym.imp.user32.dll_wsprintfW]
xor eax, eax
nop
cmp word [rdi + rax], 0
lea rax, [rax + 2]
jne 0x1400054e0
add eax, 0xfffffffe
and eax, 0xfffffffe
add eax, 2
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x44]
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x1400055d6
lea rdx, str.File_d
lea rcx, [rsp + 0x44]
mov r8d, 3
call qword [sym.imp.user32.dll_wsprintfW]
xor eax, eax
nop
cmp word [rdi + rax], 0
lea rax, [rax + 2]
jne 0x140005540
add eax, 0xfffffffe
and eax, 0xfffffffe
add eax, 2
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x44]
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x1400055d6
lea rdx, str.File_d
lea rcx, [rsp + 0x44]
mov r8d, 4
call qword [sym.imp.user32.dll_wsprintfW]
xor eax, eax
nop word [rax + rax]
cmp word [rdi + rax], 0
lea rax, [rax + 2]
jne 0x1400055a0
add eax, 0xfffffffe
and eax, 0xfffffffe
add eax, 2
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x44]
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov rcx, rsi
call sym.registry_read_filelist
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, 1
xor ecx, ecx
jmp 0x14000560e
mov eax, 2
mov cl, 1
mov rdx, qword [rsp + rax*8 + 0x48]
mov qword [rsp + rax*8 + 0x50], rdx
test ebp, ebp
je 0x140005455
mov rdx, qword [rsp + rax*8 + 0x40]
mov qword [rsp + rax*8 + 0x48], rdx
test cl, cl
jne 0x140005455
mov rcx, qword [rsp + rax*8 + 0x38]
mov qword [rsp + rax*8 + 0x40], rcx
jmp 0x140005455
mov eax, 3
jmp 0x140005603