Function at 0x14007fa20
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rbx
lea rbp, [rax - 0x388]
sub rsp, 0x478
mov qword [rax + 0x10], rsi
mov rbx, rcx
mov qword [rax + 0x18], rdi
lea rcx, [rbp + 0x160]
mov qword [rax + 0x20], r14
xor edx, edx
mov qword [rax - 0x18], r15
xor r14d, r14d
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x48], rax
mov r8d, 0x208
lea rax, [0x1401b7690]
mov dword [rsp + 0x54], 0x104
mov qword [rsp + 0x40], rax
mov word [rsp + 0x58], r14w
call fcn.14014e180
mov rax, qword [rbx + 0xa8]
mov ecx, dword [rax + 8]
cmp ecx, 3
je 0x14007fc28
cmp ecx, 0xb
jne 0x14007ff7a
mov r8d, 0x103
lea rdx, [rbp + 0x160]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14007fb27
mov edx, dword [rsp + 0x54]
lea r15, str.SoftwareMetaQuotes_SoftwareMetaTrader_4
mov rcx, r15
call fcn.14003c814
mov r8, rax
mov eax, dword [rsp + 0x54]
cmp r8d, eax
jb 0x14007fae4
lea r8d, [rax - 1]
mov rax, qword [rsp + 0x48]
lea edx, [r8 + r8]
mov ecx, edx
mov rsi, r15
shr rcx, 2
mov rdi, rax
rep movsd dword [rdi], dword [rsi]
mov ecx, edx
and ecx, 3
je 0x14007fb10
and rdx, 0xfffffffffffffffc
lea rsi, [rdx + r15]
lea rdi, [rdx + rax]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x48]
mov ecx, r8d
mov dword [rsp + 0x50], r8d
mov word [rax + rcx*2], r14w
mov rdx, qword [rsp + 0x48]
mov rcx, 0xffffffff80000001
call fcn.140003ea0
lea rcx, [rbp + 0x160]
mov rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x14007fb41
mov rdx, qword [rsp + 0x48]
lea edi, [rax*2 + 2]
test rdx, rdx
je 0x14007fbc9
test edi, edi
je 0x14007fbc9
lea rax, [rbp + 0x390]
mov qword [rbp + 0x390], r14
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007fbc9
mov rcx, qword [rbp + 0x390]
lea rax, [rbp + 0x160]
mov dword [rsp + 0x28], edi
lea rdx, str.PackagePath
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x390]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbx + 0xa8]
lea r9, str._smetaeditor.exe
add rax, 0x29c
lea rcx, [rbp + 0x160]
mov edx, 0x103
mov qword [rsp + 0x20], rax
mov r8, 0xffffffffffffffff
call fcn.140003dd0
mov byte [rsp + 0x38], 1
lea rax, str.MQL4_Source_File
mov dword [rsp + 0x30], 1
lea r9, str.MQL4.File
lea rdx, str..mq4
lea rdi, [0x1401c5748]
jmp 0x14007ff64
mov r8d, 0x103
lea rdx, [rbp + 0x160]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14007fcad
mov edx, dword [rsp + 0x54]
lea r15, str.SoftwareMetaQuotes_SoftwareMetaTrader_5
mov rcx, r15
call fcn.14003c814
mov r8, rax
mov eax, dword [rsp + 0x54]
cmp r8d, eax
jb 0x14007fc6a
lea r8d, [rax - 1]
mov rax, qword [rsp + 0x48]
lea edx, [r8 + r8]
mov ecx, edx
mov rsi, r15
shr rcx, 2
mov rdi, rax
rep movsd dword [rdi], dword [rsi]
mov ecx, edx
and ecx, 3
je 0x14007fc96
and rdx, 0xfffffffffffffffc
lea rsi, [rdx + r15]
lea rdi, [rdx + rax]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x48]
mov ecx, r8d
mov dword [rsp + 0x50], r8d
mov word [rax + rcx*2], r14w
mov rdx, qword [rsp + 0x48]
mov rcx, 0xffffffff80000001
call fcn.140003ea0
lea rcx, [rbp + 0x160]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x14007fcd0
mov rdx, qword [rsp + 0x48]
lea edi, [rax*2 + 2]
test rdx, rdx
je 0x14007fd58
test edi, edi
je 0x14007fd58
lea rax, [rbp + 0x390]
mov qword [rbp + 0x390], r14
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007fd58
mov rcx, qword [rbp + 0x390]
lea rax, [rbp + 0x160]
mov dword [rsp + 0x28], edi
lea rdx, str.PackagePath
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x390]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbx + 0xa8]
lea rsi, [0x1401b76c0]
lea r15, [0x1401c5804]
mov rcx, rsi
lea r9, str._s_terminal_s.exe
mov edx, 0x103
mov r8, 0xffffffffffffffff
cmp dword [rax + 4], 2
cmove rcx, r15
add rax, 0x29c
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x160]
mov qword [rsp + 0x20], rax
call fcn.140003dd0
mov byte [rsp + 0x38], r14b
lea rax, str._import:__1_
mov dword [rsp + 0x30], shutdown
lea r9, str.MetaTrader_5_Export_File
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x160]
lea rax, str.MetaTrader_5_Export
lea rdx, str..mt5
mov qword [rsp + 0x20], rax
call fcn.14007f370
mov byte [rsp + 0x38], r14b
lea rax, str._ex5:__1_
mov dword [rsp + 0x30], 2
lea r9, str.EX5.File
mov qword [rsp + 0x28], rax
lea r8, [rbp + 0x160]
lea rax, str.MQL5_Program
lea rdx, str..ex5
mov qword [rsp + 0x20], rax
call fcn.14007f370
mov byte [rsp + 0x38], r14b
lea rax, str.URL:MQL5_Buy_Protocol
mov dword [rsp + 0x30], 1
lea rdi, [0x1401c5748]
mov qword [rsp + 0x28], rdi
lea r9, str.mql5buy
lea r8, [rbp + 0x160]
mov qword [rsp + 0x20], rax
xor edx, edx
call fcn.14007f370
test al, al
je 0x14007fecc
lea rax, [rbp + 0x390]
mov qword [rbp + 0x390], r14
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.mql5buy
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007fecc
mov rcx, qword [rbp + 0x390]
lea r9d, [rax + 1]
mov dword [rsp + 0x28], 2
lea rdx, str.URL_Protocol
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x390]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbx + 0xa8]
lea r9, str._smetaeditor_s.exe
mov edx, 0x103
lea rcx, [rbp + 0x160]
mov r8, 0xffffffffffffffff
cmp dword [rax + 4], 2
cmove rsi, r15
add rax, 0x29c
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call fcn.140003dd0
mov byte [rsp + 0x38], 1
lea rax, str.MQL5_Source_File
mov dword [rsp + 0x30], 1
lea r9, str.MQL5.File
mov qword [rsp + 0x28], rdi
lea r8, [rbp + 0x160]
lea rdx, str..mq5
mov qword [rsp + 0x20], rax
call fcn.14007f370
mov byte [rsp + 0x38], r14b
lea rax, str.MQL5_Header_File
mov dword [rsp + 0x30], 2
lea r9, str.MQL5.Header
lea rdx, str..mqh
mov qword [rsp + 0x28], rdi
lea r8, [rbp + 0x160]
mov qword [rsp + 0x20], rax
call fcn.14007f370
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x8000000
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword [rbx + 0xa8]
mov r15, qword [rsp + 0x470]
mov r14, qword [rsp + 0x4a8]
mov rdi, qword [rsp + 0x4a0]
sub rax, qword [rcx + 0xc38]
mov rsi, qword [rsp + 0x498]
cmp rax, 0x2ee0
jae 0x14007fff7
nop dword [rax]
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword [rbx + 0xa8]
sub rax, qword [rcx + 0xc38]
cmp rax, 0x2ee0
jb 0x14007ffd0
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov edx, 0x464
lea r8d, [r9 + 6]
call qword [sym.imp.USER32.dll_PostMessageW]
add rsp, 0x478
pop rbx
pop rbp
ret