Function at 0x1400152b0
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Delete registry value
Get common file path
Get file attributes
Query or enumerate registry value
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x248]
sub rsp, 0x320
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x210], rax
call fcn.140035824
lea rcx, [rsp + 0x60]
mov ebx, eax
call fcn.140043534
mov r12d, 4
lea rcx, [rsp + 0x60]
or word [rsp + 0x6c], r12w
call fcn.1400355b8
xor r15d, r15d
test eax, eax
jns 0x14001531e
lea rdx, str.Could_not_obtain_SID_for_user._r_n
jmp 0x140015360
sub ebx, 1
je 0x140015345
cmp ebx, 1
jne 0x140015368
call fcn.1400374d0
call fcn.1400375dc
mov rcx, qword [rsp + 0x60]
call fcn.1400358d4
lea rdx, str.Finished_migrating_WMCv2_user._r_n
jmp 0x140015360
call fcn.1400374d0
call fcn.1400375dc
mov rcx, qword [rsp + 0x60]
call fcn.1400358d4
lea rdx, str.Finished_migrating_WMCv1_user._r_n
mov ecx, r12d
call fcn.140019ae0
lea rcx, [rsp + 0x60]
call fcn.140043af4
mov ebx, 0x104
lea rcx, [rbp]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x1400158ac
lea r8, str.unregmp2.exe
mov edx, ebx
lea rcx, [rbp]
call fcn.140010d0c
test eax, eax
js 0x1400158ac
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x1400158ac
test al, 0x10
jne 0x1400158ac
call fcn.14001e214
lea r8, str.__ShowWMP__SetShowState__CreateMediaLibrary
mov edx, ebx
lea rcx, [rbp]
call fcn.140010d0c
test eax, eax
js 0x1400158ac
xor ecx, ecx
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x60], r15
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
lea rdx, [0x14004c0e0]
lea rcx, [rbp]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
je 0x14001546d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
nop dword [rax + rax]
test rax, rax
je 0x14001546d
lea rdx, str._NoMigrate
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
je 0x14001546d
lea rdx, str.Library_migration_skipped_due_to_installing_app_request._r_n
mov ecx, r12d
call fcn.140019ae0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x1400158ac
or rcx, 0xffffffffffffffff
lea rax, [rbp]
mov rbx, rcx
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x140015478
mov esi, 2
add rbx, 5
mov eax, esi
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.1400014a0
mov rdi, rax
test rax, rax
jne 0x1400154a9
lea ecx, [rsi + 6]
jmp 0x14001545c
mov r8, rbx
lea rcx, [rbp]
mov rdx, rdi
call fcn.14001f72c
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rdx, str.SoftwareMicrosoftMediaPlayerSetup
xorps xmm0, xmm0
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov rcx, 0xffffffff80000001
mov dword [rbp - 0x70], 0x68
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x38], r15
mov dword [rbp - 0x30], r15d
mov qword [rbp - 0x28], r15
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140015579
mov rcx, qword [rsp + 0x60]
lea rdx, str.CurrentItemTotalProgressCount
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
lea rdx, str.CurrentItemProgressCount
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
lea rdx, str.CurrentItemEstimatedTime
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
lea r8, [rbp]
mov ecx, r12d
lea rdx, str.Starting_process__S._r_n
call fcn.140019b1c
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x70]
mov rdx, rdi
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop dword [rax + rax]
test eax, eax
jne 0x14001561f
mov rcx, rdi
call fcn.140001454
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x1400155ed
mov eax, 0x57
jmp 0x1400155ef
jle 0x1400155f7
movzx eax, ax
or eax, 0x80070000
mov r9d, eax
lea r8, [rbp]
lea rdx, str.ERROR:_Process__S_failed.__Error:_0x_x._r_n
mov ecx, esi
call fcn.140019b1c
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400158ac
jmp 0x1400158a0
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140015638
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rbp - 0x80], r15
mov ebx, r15d
mov dword [rsp + 0x70], r12d
mov r14d, r15d
mov dword [rsp + 0x50], r15d
mov dword [rsp + 0x54], r15d
mov r9d, 0xfa
mov r13d, 1
jmp 0x140015785
test ebx, ebx
jne 0x1400156f1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
jne 0x140015678
mov ebx, r13d
jmp 0x140015771
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
lea rax, [rsp + 0x54]
xor r8d, r8d
lea rdx, str.CurrentItemTotalProgressCount
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400156f1
mov rcx, qword [0x14005a748]
mov ebx, r13d
mov esi, dword [rsp + 0x54]
test rcx, rcx
je 0x1400156f1
call qword [sym.imp.USER32.dll_IsWindow]
nop dword [rax + rax]
test eax, eax
je 0x1400156f1
mov rcx, qword [0x14005a748]
mov r9d, esi
xor r8d, r8d
mov edx, 0x5d9
call qword [sym.imp.USER32.dll_PostMessageW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140015771
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x70]
lea rax, [rsp + 0x54]
xor r8d, r8d
lea rdx, str.CurrentItemProgressCount
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140015771
mov rcx, qword [0x14005a748]
mov esi, dword [rsp + 0x54]
test rcx, rcx
je 0x140015771
call qword [sym.imp.USER32.dll_IsWindow]
nop dword [rax + rax]
test eax, eax
je 0x140015771
mov rcx, qword [0x14005a748]
mov r9d, esi
xor r8d, r8d
mov edx, 0x5d8
call qword [sym.imp.USER32.dll_PostMessageW]
nop dword [rax + rax]
cmp r14d, 0x2932e0
ja 0x1400157a9
mov eax, 0xfa
add r14d, eax
mov r9d, eax
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
nop dword [rax + rax]
cmp eax, 0x102
je 0x14001565e
jmp 0x1400157fa
mov r9d, 0x2932e0
mov dword [rsp + 0x58], r13d
lea r8, [rbp]
mov ecx, r13d
lea rdx, str.ERROR:__Process__S_deadlocked.__Terminated_after__lums._r_n
call fcn.140019b1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x1400157e6
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x78]
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop dword [rax + rax]
cmp dword [rsp + 0x58], r15d
jne 0x14001582b
mov rcx, qword [rsp + 0x78]
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop dword [rax + rax]
test eax, eax
je 0x14001582b
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rcx, rdi
call fcn.140001454
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14001584e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x78], r15
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400158ac
lea rdx, str.CurrentItemTotalProgressCount
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
lea rdx, str.CurrentItemProgressCount
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
lea rdx, str.CurrentItemEstimatedTime
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret