Function at 0x1400a0960
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xeb0]
sub rsp, 0xfb0
mov rax, qword [0x140263a80]
xor rax, rsp
mov qword [rbp + 0xea0], rax
xor edx, edx
lea rcx, [rbp + 0x280]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x280]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400a0a1b
xor edx, edx
lea rcx, [rbp + 0x280]
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
lea rcx, [rax + 2]
lea rax, [rbp + 0x488]
sub rax, rcx
sar rax, 1
cmp rax, 0x22
jb 0x1400a0a1b
movaps xmm0, xmmword [str.emulators_virtuanesVirtuaNES.exe]
movups xmmword [rcx], xmm0
movaps xmm1, xmmword [0x140248360]
movups xmmword [rcx + 0x10], xmm1
movaps xmm0, xmmword [0x140248370]
movups xmmword [rcx + 0x20], xmm0
movaps xmm1, xmmword [0x140248380]
movups xmmword [rcx + 0x30], xmm1
mov eax, dword [0x140248390]
mov dword [rcx + 0x40], eax
xor edx, edx
lea rcx, [rbp + 0x490]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x490]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400a0a9b
xor edx, edx
lea rcx, [rbp + 0x490]
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
lea rcx, [rax + 2]
lea rax, [rbp + 0x698]
sub rax, rcx
sar rax, 1
cmp rax, 0x1a
jb 0x1400a0a9b
movups xmm0, xmmword [str.emulators_virtuanes_roms_]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [0x1402483a8]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [0x1402483b8]
movups xmmword [rcx + 0x20], xmm0
mov eax, dword [0x1402483c8]
mov dword [rcx + 0x30], eax
xor edx, edx
lea rcx, [rbp + 0x6a0]
mov r8d, 0x800
call sub.VCRUNTIME140.dll_memset
lea r8, str.SOFTWAREMonectPCRemoteReceiver
mov edx, 0x400
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, str.Emulators_
mov edx, 0x400
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
xor edx, edx
lea rcx, [rbp + 0x180]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
xorps xmm0, xmm0
lea rcx, [rsp + 0x60]
movups xmmword [rsp + 0x60], xmm0
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [rsp + 0x6e]
mov edx, 0x80
movzx r8d, word [rsp + 0x6c]
movzx r10d, word [rsp + 0x6a]
movzx r11d, word [rsp + 0x68]
movzx ebx, word [rsp + 0x66]
movzx edi, word [rsp + 0x62]
movzx r9d, word [rsp + 0x60]
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x48], ecx
lea rcx, [rbp + 0x180]
mov dword [rsp + 0x40], r8d
lea r8, str._d_d_d_d_d_d_d_d
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
call fcn.1400773d0
lea r8, [rbp + 0x180]
mov edx, 0x400
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rbp + 0x6a0]
mov qword [rsp + 0x70], 0xffffffff80000002
mov edx, 0x100
lea rcx, [rbp - 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x78]
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400a0c14
xor ecx, ecx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rcx
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400a0cfc
lea rax, str.Famicom
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Display_name
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400a0cfc
lea rax, [rbp + 0x280]
mov dword [rsp + 0x28], 0x208
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.EXE_Path
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400a0cfc
lea rax, [rbp + 0x490]
mov dword [rsp + 0x28], 0x208
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Rom_Path
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400a0cfc
lea rax, [0x140245e20]
mov dword [rsp + 0x28], reloc.WS2_32.dll_ntohl
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Command_Line
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400a0cfc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0xea0]
xor rcx, rsp
call fcn.1401d0310
lea r11, [rsp + 0xfb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret