Function at 0x140002918
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x228]
sub rsp, 0x320
mov rax, qword [0x1400502a8]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rbx, qword [0x1400516d8]
lea rax, [rsp + 0x40]
xor esi, esi
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov qword [rsp + 0x40], rsi
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMediaPlayerPreferences
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140002b23
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rbp]
mov dword [rsp + 0x30], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.MigrationSchema
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x38], 0x208
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002af9
cmp dword [rsp + 0x30], 1
jne 0x140002af9
movups xmm0, xmmword [0x1400411a8]
lea rdx, [rsp + 0x48]
mov edi, esi
movups xmm1, xmmword [0x140040fc0]
lea rcx, [rbp]
movdqu xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [0x140040eb8]
movdqu xmmword [rsp + 0x70], xmm1
movups xmm1, xmmword [0x140040ef8]
movdqu xmmword [rbp - 0x80], xmm0
movups xmm0, xmmword [0x140041188]
movdqu xmmword [rbp - 0x70], xmm1
movups xmm1, xmmword [0x140040f48]
movdqu xmmword [rbp - 0x60], xmm0
movups xmm0, xmmword [0x140040ec8]
movdqu xmmword [rbp - 0x50], xmm1
movups xmm1, xmmword [0x1400410b8]
movdqu xmmword [rbp - 0x40], xmm0
movups xmm0, xmmword [0x140040f58]
movdqu xmmword [rbp - 0x30], xmm1
movups xmm1, xmmword [0x1400411d8]
movdqu xmmword [rbp - 0x20], xmm0
movdqu xmmword [rbp - 0x10], xmm1
call qword [sym.imp.ole32.dll_CLSIDFromString]
mov rdx, qword [rsp + 0x50]
mov eax, esi
mov r8, qword [rsp + 0x48]
movsxd rcx, eax
add rcx, rcx
cmp qword [rsp + rcx*8 + 0x60], r8
jne 0x140002a83
cmp qword [rsp + rcx*8 + 0x68], rdx
je 0x140002a8c
inc eax
cmp eax, 0xa
jae 0x140002a8e
jmp 0x140002a6f
mov edi, eax
lea ecx, [rdi + 1]
call fcn.140015cc0
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x34]
mov edi, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.MigrationPercentage
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x38], edi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002b18
cmp dword [rsp + 0x30], edi
jne 0x140002b18
mov ecx, dword [rsp + 0x34]
call fcn.140015aec
mov r8d, dword [rsp + 0x34]
lea rdx, str.__Migration_progress:__lu__._r_n
mov ecx, edi
call fcn.140016868
jmp 0x140002b18
mov ecx, dword [0x140050b88]
call fcn.140015aec
mov eax, dword [0x140050b88]
inc eax
cmp eax, 0x1e
cmova eax, esi
mov dword [0x140050b88], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x140050cf0], esi
je 0x140002ba8
mov rcx, qword [0x1400516d8]
test rcx, rcx
je 0x140002b41
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140002ba1
mov rcx, rbx
mov qword [0x1400516d8], rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140002ba1
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
jne 0x140002b77
lea edx, [rax + 2]
call fcn.140016148
mov rcx, qword [0x140050310]
cmp rcx, 0xffffffffffffffff
je 0x140002ba1
cmp dword [0x1400516e0], 2
jl 0x140002ba1
lea r9, [rsp + 0x34]
mov dword [rsp + 0x34], esi
mov r8d, 0x2a
mov qword [rsp + 0x20], rsi
lea rdx, str.ERROR:_Window_handle_has_become_invalid._r_n
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
call fcn.140015dfc
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14003c6c0
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret