Function at 0x14007e3e0
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
lea rbp, [rax - 0x388]
sub rsp, 0x478
mov qword [rax + 0x10], rbx
mov rdi, rcx
mov qword [rax + 0x18], rsi
lea rcx, [rbp + 0x160]
mov qword [rax + 0x20], r14
xor edx, edx
lea rax, [rsp + 0x58]
mov dword [rsp + 0x54], 0x104
mov qword [rsp + 0x48], rax
xor r14d, r14d
lea rax, [0x1401b6698]
mov dword [rsp + 0x50], r14d
mov r8d, 0x208
mov qword [rsp + 0x40], rax
mov word [rsp + 0x58], r14w
call fcn.14014d290
mov rax, qword [rdi + 0xa8]
mov ecx, dword [rax + 8]
cmp ecx, 3
je 0x14007e5df
cmp ecx, 0xb
jne 0x14007e922
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 0x14007e4c8
mov edx, dword [rsp + 0x54]
lea rcx, str.SoftwareMetaQuotes_SoftwareMetaTrader_4
call fcn.14003c464
mov rsi, rax
mov eax, dword [rsp + 0x54]
cmp esi, eax
jb 0x14007e49b
lea esi, [rax - 1]
mov rcx, qword [rsp + 0x48]
lea rdx, str.SoftwareMetaQuotes_SoftwareMetaTrader_4
mov eax, esi
lea rbx, [rax + rax]
mov r8, rbx
call fcn.14014cbf0
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0x50], esi
mov word [rbx + rax], r14w
mov rdx, qword [rsp + 0x48]
mov rcx, 0xffffffff80000001
call fcn.140003b60
lea rcx, [rbp + 0x160]
mov rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x14007e4e2
mov rdx, qword [rsp + 0x48]
lea ebx, [rax*2 + 2]
test rdx, rdx
je 0x14007e56a
test ebx, ebx
je 0x14007e56a
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 0x14007e56a
mov rcx, qword [rbp + 0x390]
lea rax, [rbp + 0x160]
mov dword [rsp + 0x28], ebx
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 [rdi + 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.140003a90
mov byte [rsp + 0x38], 1
lea rax, str.MQL4_Source_File
mov dword [rsp + 0x30], 1
lea rbx, [0x1401c4608]
mov qword [rsp + 0x28], rbx
lea r9, str.MQL4.File
lea r8, [rbp + 0x160]
mov qword [rsp + 0x20], rax
lea rdx, str..mq4
call fcn.14007dd30
jmp 0x14007e922
mov r8d, 0x103
mov qword [rsp + 0x470], r15
lea rdx, [rbp + 0x160]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14007e651
mov edx, dword [rsp + 0x54]
lea rcx, str.SoftwareMetaQuotes_SoftwareMetaTrader_5
call fcn.14003c464
mov rsi, rax
mov eax, dword [rsp + 0x54]
cmp esi, eax
jb 0x14007e624
lea esi, [rax - 1]
mov rcx, qword [rsp + 0x48]
lea rdx, str.SoftwareMetaQuotes_SoftwareMetaTrader_5
mov eax, esi
lea rbx, [rax + rax]
mov r8, rbx
call fcn.14014cbf0
mov rax, qword [rsp + 0x48]
mov dword [rsp + 0x50], esi
mov word [rbx + rax], r14w
mov rdx, qword [rsp + 0x48]
mov rcx, 0xffffffff80000001
call fcn.140003b60
lea rcx, [rbp + 0x160]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rcx + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x14007e670
mov rdx, qword [rsp + 0x48]
lea ebx, [rax*2 + 2]
test rdx, rdx
je 0x14007e6f8
test ebx, ebx
je 0x14007e6f8
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 0x14007e6f8
mov rcx, qword [rbp + 0x390]
lea rax, [rbp + 0x160]
mov dword [rsp + 0x28], ebx
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 [rdi + 0xa8]
lea rsi, [0x1401b66c0]
lea r15, [0x1401c46c4]
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.140003a90
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.14007dd30
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.14007dd30
mov byte [rsp + 0x38], r14b
lea rax, str.URL:MQL5_Buy_Protocol
mov dword [rsp + 0x30], 1
lea rbx, [0x1401c4608]
mov qword [rsp + 0x28], rbx
lea r9, str.mql5buy
lea r8, [rbp + 0x160]
mov qword [rsp + 0x20], rax
xor edx, edx
call fcn.14007dd30
test al, al
je 0x14007e86c
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 0x14007e86c
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 [rdi + 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.140003a90
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], rbx
lea r8, [rbp + 0x160]
lea rdx, str..mq5
mov qword [rsp + 0x20], rax
call fcn.14007dd30
mov byte [rsp + 0x38], r14b
lea rax, str.MQL5_Header_File
mov dword [rsp + 0x30], 2
lea r9, str.MQL5.Header
mov qword [rsp + 0x28], rbx
lea r8, [rbp + 0x160]
lea rdx, str..mqh
mov qword [rsp + 0x20], rax
call fcn.14007dd30
mov r15, qword [rsp + 0x470]
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 [rdi + 0xa8]
mov r14, qword [rsp + 0x4a8]
mov rsi, qword [rsp + 0x4a0]
mov rbx, qword [rsp + 0x498]
sub rax, qword [rcx + 0xc38]
cmp rax, 0x2ee0
jae 0x14007e997
nop dword [rax]
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, qword [rdi + 0xa8]
sub rax, qword [rcx + 0xc38]
cmp rax, 0x2ee0
jb 0x14007e970
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov edx, 0x464
lea r8d, [r9 + 6]
call qword [sym.imp.USER32.dll_PostMessageW]
add rsp, 0x478
pop rdi
pop rbp
ret