Function at 0x14008a290
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x770]
sub rsp, 0x870
lea rax, [rbp + 0x7a0]
xor r13d, r13d
mov r9d, 0x20106
mov qword [rbp + 0x7a0], r13
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMetaQuotes_Software
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14008a334
mov qword [rsp + 0x40], r13
lea rax, [rbp + 0x7a0]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMetaQuotes_Software
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], 0x100
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14008a341
mov rcx, qword [rbp + 0x7a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x7a0]
mov qword [rbp + 0x7a0], r13
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMetaQuotes_SoftwareSettings
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14008a3b6
mov qword [rsp + 0x40], r13
lea rax, [rbp + 0x7a0]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMetaQuotes_SoftwareSettings
mov qword [rsp + 0x30], r13
xor r9d, r9d
mov dword [rsp + 0x28], 0x100
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14008a3c3
mov rcx, qword [rbp + 0x7a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12d, 9
lea r15, str.utm_reg_address
lea r14, [r12 - 0xa]
nop word [rax + rax]
mov rdi, qword [r15]
test rdi, rdi
je 0x14008a518
mov rdx, rdi
mov word [rsp + 0x70], r13w
lea rcx, [0x140215d8a]
mov ebx, 0x3ff
lea rsi, [rsp + 0x70]
call fcn.140030c6c
test rax, rax
je 0x14008a46b
mov rcx, r14
cmp word [rdi + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14008a413
lea rdx, [rax + rcx*2]
movzx ecx, word [rax + rcx*2]
test cx, cx
je 0x14008a465
movabs r13, 0x4000002400
cmp cx, 0x7c
je 0x14008a462
cmp cx, 0x26
ja 0x14008a448
bt r13, rcx
jb 0x14008a462
cmp ebx, 1
jbe 0x14008a462
add rdx, 2
mov word [rsi], cx
add rsi, 2
dec ebx
movzx ecx, word [rdx]
test cx, cx
jne 0x14008a436
xor r13d, r13d
mov word [rsi], r13w
mov al, 1
test al, al
je 0x14008a518
cmp word [rsp + 0x70], 0
je 0x14008a518
lea rcx, [rsp + 0x70]
mov rax, r14
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14008a490
mov rdi, qword [r15 + 8]
lea ebx, [rax*2 + 2]
test rdi, rdi
je 0x14008a518
test ebx, ebx
je 0x14008a518
lea rax, [rbp + 0x7a0]
mov qword [rbp + 0x7a0], r13
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMetaQuotes_SoftwareSettings
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008a518
mov rcx, qword [rbp + 0x7a0]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], ebx
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x7a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add r15, 0x10
sub r12, 1
jne 0x14008a3e0
lea rdx, [0x1401b6be8]
mov word [rsp + 0x70], r13w
lea rcx, [0x140215d8a]
mov edi, 0x3ff
lea rbx, [rsp + 0x70]
call fcn.140030c6c
mov rdx, rax
test rax, rax
je 0x14008a758
movzx ecx, word [rdx + 0x26]
add rdx, 0x26
test cx, cx
je 0x14008a59c
movabs rsi, 0x4000002400
nop dword [rax]
cmp cx, 0x7c
je 0x14008a59c
cmp cx, 0x26
ja 0x14008a582
bt rsi, rcx
jb 0x14008a59c
cmp edi, 1
jbe 0x14008a59c
add rdx, 2
mov word [rbx], cx
add rbx, 2
dec edi
movzx ecx, word [rdx]
test cx, cx
jne 0x14008a570
mov word [rbx], r13w
cmp word [rsp + 0x70], 0
je 0x14008a758
mov qword [rsp + 0x60], r13
lea rax, [0x14021b140]
mov qword [rsp + 0x58], r13
lea r9, [0x140215c3a]
mov qword [rsp + 0x50], r13
lea r8, [0x140215b3a]
mov qword [rsp + 0x48], rax
lea rcx, [0x140215a10]
lea rax, [0x14021b040]
mov edx, 1
mov qword [rsp + 0x40], rax
lea rax, str.Install_Affiliate
mov qword [rsp + 0x38], rax
lea rax, [0x140215c8a]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call fcn.140058af0
lea rcx, [rsp + 0x70]
mov rax, r14
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14008a620
lea ebx, [rax*2 + 2]
test ebx, ebx
je 0x14008a6a3
lea rax, [rbp + 0x7a0]
mov qword [rbp + 0x7a0], r13
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMetaQuotes_SoftwareSettings
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008a6a3
mov rcx, qword [rbp + 0x7a0]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], ebx
lea rdx, str.Affiliate
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x7a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
call fcn.140035e90
add rax, 0x127500
lea r9, str._I64d
mov r8, r14
mov qword [rsp + 0x20], rax
mov edx, 0x3ff
lea rcx, [rsp + 0x70]
call fcn.140003dd0
lea rax, [rsp + 0x70]
cmp word [rax + r14*2 + 2], 0
lea r14, [r14 + 1]
jne 0x14008a6d3
lea ebx, [r14*2 + 2]
test ebx, ebx
je 0x14008a758
lea rax, [rbp + 0x7a0]
mov qword [rbp + 0x7a0], r13
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMetaQuotes_SoftwareSettings
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008a758
mov rcx, qword [rbp + 0x7a0]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], ebx
lea rdx, str.Affiliate_expiration
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x7a0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret