Function at 0x140088d60
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 0x140088e04
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 0x140088e11
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 0x140088e86
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 0x140088e93
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 0x140088fe8
mov rdx, rdi
mov word [rsp + 0x70], r13w
lea rcx, [0x140214d7a]
mov ebx, 0x3ff
lea rsi, [rsp + 0x70]
call fcn.1400308bc
test rax, rax
je 0x140088f3b
mov rcx, r14
cmp word [rdi + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140088ee3
lea rdx, [rax + rcx*2]
movzx ecx, word [rax + rcx*2]
test cx, cx
je 0x140088f35
movabs r13, 0x4000002400
cmp cx, 0x7c
je 0x140088f32
cmp cx, 0x26
ja 0x140088f18
bt r13, rcx
jb 0x140088f32
cmp ebx, 1
jbe 0x140088f32
add rdx, 2
mov word [rsi], cx
add rsi, 2
dec ebx
movzx ecx, word [rdx]
test cx, cx
jne 0x140088f06
xor r13d, r13d
mov word [rsi], r13w
mov al, 1
test al, al
je 0x140088fe8
cmp word [rsp + 0x70], 0
je 0x140088fe8
lea rcx, [rsp + 0x70]
mov rax, r14
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140088f60
mov rdi, qword [r15 + 8]
lea ebx, [rax*2 + 2]
test rdi, rdi
je 0x140088fe8
test ebx, ebx
je 0x140088fe8
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 0x140088fe8
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 0x140088eb0
lea rdx, [0x1401b5be8]
mov word [rsp + 0x70], r13w
lea rcx, [0x140214d7a]
mov edi, 0x3ff
lea rbx, [rsp + 0x70]
call fcn.1400308bc
mov rdx, rax
test rax, rax
je 0x140089228
movzx ecx, word [rdx + 0x26]
add rdx, 0x26
test cx, cx
je 0x14008906c
movabs rsi, 0x4000002400
nop dword [rax]
cmp cx, 0x7c
je 0x14008906c
cmp cx, 0x26
ja 0x140089052
bt rsi, rcx
jb 0x14008906c
cmp edi, 1
jbe 0x14008906c
add rdx, 2
mov word [rbx], cx
add rbx, 2
dec edi
movzx ecx, word [rdx]
test cx, cx
jne 0x140089040
mov word [rbx], r13w
cmp word [rsp + 0x70], 0
je 0x140089228
mov qword [rsp + 0x60], r13
lea rax, [0x14021a0b0]
mov qword [rsp + 0x58], r13
lea r9, [0x140214c2a]
mov qword [rsp + 0x50], r13
lea r8, [0x140214b2a]
mov qword [rsp + 0x48], rax
lea rcx, [0x140214a00]
lea rax, [0x140219fb0]
mov edx, 1
mov qword [rsp + 0x40], rax
lea rax, str.Install_Affiliate
mov qword [rsp + 0x38], rax
lea rax, [0x140214c7a]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call fcn.140058730
lea rcx, [rsp + 0x70]
mov rax, r14
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x1400890f0
lea ebx, [rax*2 + 2]
test ebx, ebx
je 0x140089173
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 0x140089173
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.140035ae0
add rax, 0x127500
lea r9, str._I64d
mov r8, r14
mov qword [rsp + 0x20], rax
mov edx, 0x3ff
lea rcx, [rsp + 0x70]
call fcn.140003a90
lea rax, [rsp + 0x70]
cmp word [rax + r14*2 + 2], 0
lea r14, [r14 + 1]
jne 0x1400891a3
lea ebx, [r14*2 + 2]
test ebx, ebx
je 0x140089228
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 0x140089228
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