Function at 0x1400196e0
Capabilities:
Set registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rax, qword [0x140035010]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor esi, esi
mov qword [rsp + 0x40], rsi
lea r14, [rsp + 0x70]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rsi
mov edi, 2
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 0
lea rdx, str.SoftwareClassesApplications
mov rbx, qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, 0xffffffff80000001
xor r8d, r8d
xor r9d, r9d
call rbx
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 1
lea rdx, str.SoftwareClassesApplicationscrashreporter.exe
mov rcx, 0xffffffff80000001
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x1400197f0
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
lea rdx, str.IsHostApp
mov rdi, qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor r8d, r8d
xor r9d, r9d
call rdi
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
lea rdx, str.NoOpenWith
xor r8d, r8d
xor r9d, r9d
call rdi
mov rcx, qword [rsp + 0x70]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
lea rdx, str.NoStartPage
xor r8d, r8d
xor r9d, r9d
call rdi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
call rsi
movsxd rcx, dword [rax]
shl rcx, 3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
call rsi
cmp dword [rax], 0
jle 0x140019967
xor ebx, ebx
mov rbp, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___wargv]
lea r13, [rsp + 0x50]
mov r12, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
call rbp
mov rax, qword [rax]
mov rsi, qword [rax + rbx*8]
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], 0
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rdi, rax
cmp rax, 7
ja 0x14001987b
mov qword [rsp + 0x60], rdi
mov r8, rdi
add r8, rdi
mov rcx, r13
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov word [rsp + rdi*2 + 0x50], 0
jmp 0x140019889
mov rcx, r13
mov rdx, rdi
mov r9, rsi
call fcn.140024440
mov rcx, r14
mov rdx, r13
call fcn.1400199b0
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x88]
cmp rdi, 0x10
mov rcx, r14
cmovae rcx, rsi
call r12
mov qword [r15 + rbx*8], rax
cmp rdi, 0x10
jae 0x140019913
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0xf
mov byte [rsp + 0x70], 0
mov rax, qword [rsp + 0x68]
cmp rax, 8
jb 0x1400198fc
mov rcx, qword [rsp + 0x50]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jae 0x14001992a
call fcn.140020668
inc rbx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
movsxd rax, dword [rax]
cmp rbx, rax
jl 0x140019829
jmp 0x140019967
lea rdx, [rdi + 1]
cmp rdx, 0x1000
jae 0x14001994a
mov rcx, rsi
call fcn.140020668
jmp 0x1400198b9
mov rdi, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rdi
cmp rcx, 0x20
jae 0x14001999d
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, rdi
jmp 0x1400198f7
mov rax, qword [rsi - 8]
add rsi, 0xfffffffffffffff8
sub rsi, rax
cmp rsi, 0x20
jae 0x14001999d
add rdi, 0x28
mov rdx, rdi
mov rsi, rax
jmp 0x140019920
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p___argc]
mov ecx, dword [rax]
mov rdx, r15
call fcn.14000d3f0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140021700
xor eax, eax
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3