Function at 0x18004f67c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x180122658]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor r14d, r14d
mov dword [rsp + 0x68], 0x200
mov ebx, r8d
mov qword [rsp + 0x58], r14
mov rdi, rdx
mov qword [rsp + 0x60], r14
mov r12d, 0x2000000
mov qword [rsp + 0x50], r14
mov edx, r12d
lea r8, [rsp + 0x58]
mov rsi, rcx
call fcn.18000d8c8
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x18004f73d
test rcx, rcx
je 0x18004f6f2
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18004f702
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18004f712
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, 0x80040151
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.180023ec0
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x480
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r9, [rsp + 0x68]
xor edx, edx
lea r8, [rbp + 0x170]
call fcn.18001bf04
test eax, eax
je 0x18004f75b
mov rcx, qword [rsp + 0x58]
jmp 0x18004f6e7
test ebx, ebx
je 0x18004f7eb
lea rax, [rsp + 0x60]
mov r9d, r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareClasses
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x18004f754
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rdx, rsi
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x18004f754
cmp dword [rsp + 0x6c], 1
mov rcx, qword [rsp + 0x58]
je 0x18004f6e7
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test eax, eax
jne 0x18004f754
mov rcx, qword [rsp + 0x50]
jmp 0x18004f80c
lea r8, [rsp + 0x60]
mov edx, r12d
xor ecx, ecx
call fcn.18000d8c8
mov rcx, qword [rsp + 0x58]
test eax, eax
jne 0x18004f6e7
mov qword [rsp + 0x50], rcx
or rbx, 0xffffffffffffffff
mov qword [rsp + 0x58], r14
mov rax, rbx
inc rax
cmp word [rdi + rax*2], r14w
jne 0x18004f818
cmp rax, 0x7fffffff
jbe 0x18004f843
mov rcx, qword [rbp + 0x3a8]
lea r8, str.onecorecomcombaseclassole1guid.cxx
mov edx, 0x9f
call fcn.1800405b0
int3
inc eax
lea rdx, str.Clsid
mov r9, rdi
mov dword [rsp + 0x20], eax
call fcn.1800c1c8c
test eax, eax
jne 0x18004f754
lea rdx, str.00030003_0000_0000_C000_000000000046
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
jne 0x18004f88c
mov rcx, qword [rsp + 0x50]
lea rdx, str.PackageOnFileDrop
xor r9d, r9d
mov dword [rsp + 0x20], r14d
call fcn.1800c1c8c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test eax, eax
jne 0x18004f754
mov r9, rdi
mov qword [rsp + 0x50], r14
lea r8, str.CLSID_s
mov edx, 0x100
lea rcx, [rsp + 0x70]
call fcn.18000b8f4
mov edi, eax
test eax, eax
js 0x18004f712
inc rbx
cmp word [rsi + rbx*2], r14w
jne 0x18004f8c7
cmp rbx, 0x7fffffff
jbe 0x18004f8f3
mov rcx, qword [rbp + 0x3a8]
lea r8, str.onecorecomcombaseclassole1guid.cxx
mov edx, 0xb5
call fcn.1800405b0
int3
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
test eax, eax
jne 0x18004f754
mov eax, dword [rsp + 0x68]
mov r9d, 1
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], eax
xor edx, edx
lea rax, [rbp + 0x170]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x18004f754
mov rcx, qword [rsp + 0x50]
lea rdx, str.Ole1Class
inc ebx
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.1800c1c8c
test eax, eax
jne 0x18004f754
mov rcx, qword [rsp + 0x50]
lea rdx, str.ProgID
mov r9, rsi
mov dword [rsp + 0x20], ebx
call fcn.1800c1c8c
test eax, eax
jne 0x18004f754
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test eax, eax
jne 0x18004f754
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test eax, eax
jne 0x18004f754
mov eax, edi
jmp 0x18004f717