Function at 0x1400615a0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov r14, rdx
lea rax, [rbp + 0x180]
xor r12d, r12d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMetaQuotes_Software
mov qword [rbp + 0x180], r12
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140061675
lea rax, [rbp + 0x180]
mov qword [rbp + 0x180], r12
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMetaQuotes_Software
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140061675
mov qword [rsp + 0x40], r12
lea rax, [rbp + 0x180]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMetaQuotes_Software
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x100
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140061682
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [r14 + 4], r12w
je 0x14006168f
cmp dword [r14], 3
jbe 0x140061692
mov dword [r14], r12d
lea rcx, [0x14021b240]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [r14]
mov rbx, 0xffffffffffffffff
cmp dword [0x14021b818], eax
je 0x140061763
lea r9, [0x1401baa40]
mov dword [0x14021b818], eax
mov r8, rbx
mov dword [rsp + 0x20], eax
mov edx, 0xff
lea rcx, [rsp + 0x50]
call fcn.140003dd0
lea rcx, [rsp + 0x50]
mov rax, rbx
cmp word [rcx + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x1400616e0
lea edi, [rax*2 + 2]
test edi, edi
je 0x140061763
lea rax, [rbp + 0x180]
mov qword [rbp + 0x180], r12
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMetaQuotes_Software
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140061763
mov rcx, qword [rbp + 0x180]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], edi
lea rdx, str.Proxy.Type
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r15, [0x14021b81c]
lea r9, [r14 + 4]
mov rax, r15
sub r9, r15
movzx edx, word [rax]
movzx ecx, word [rax + r9]
sub edx, ecx
jne 0x140061788
add rax, 2
test ecx, ecx
jne 0x140061774
test edx, edx
je 0x14006182c
mov r9, rbx
lea r8, [r14 + 4]
mov edx, 0x80
mov rcx, r15
call fcn.14003c5c8
mov rax, rbx
nop word [rax + rax]
cmp word [r15 + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x1400617b0
lea edi, [rax*2 + 2]
test edi, edi
je 0x14006182c
lea rax, [rbp + 0x180]
mov qword [rbp + 0x180], r12
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMetaQuotes_Software
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006182c
mov rcx, qword [rbp + 0x180]
lea r9d, [rax + 1]
mov dword [rsp + 0x28], edi
lea rdx, [0x1401b94f8]
xor r8d, r8d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rsi, [0x14021b91c]
lea r8, [r14 + 0x104]
mov rax, rsi
mov r9, r8
sub r9, rsi
movzx edx, word [rax]
movzx ecx, word [rax + r9]
sub edx, ecx
jne 0x140061857
add rax, 2
test ecx, ecx
jne 0x140061843
test edx, edx
je 0x1400618ee
mov r9, rbx
mov edx, 0x40
mov rcx, rsi
call fcn.14003c5c8
mov rax, rbx
cmp word [rsi + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x140061872
lea edi, [rax*2 + 2]
test edi, edi
je 0x1400618ee
lea rax, [rbp + 0x180]
mov qword [rbp + 0x180], r12
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMetaQuotes_Software
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400618ee
mov rcx, qword [rbp + 0x180]
lea r9d, [rax + 1]
mov dword [rsp + 0x28], edi
lea rdx, str.Proxy.Login
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdi, [0x14021b99c]
lea r8, [r14 + 0x184]
mov rax, rdi
mov r10, r8
sub r10, rdi
nop word [rax + rax]
movzx r9d, word [rax]
movzx ecx, word [rax + r10]
sub r9d, ecx
jne 0x140061926
add rax, 2
test ecx, ecx
jne 0x140061910
test r9d, r9d
je 0x1400619bc
mov r9, rbx
mov edx, 0x40
mov rcx, rdi
call fcn.14003c5c8
nop
cmp word [rdi + rbx*2 + 2], r12w
lea rbx, [rbx + 1]
jne 0x140061940
lea ebx, [rbx*2 + 2]
test ebx, ebx
je 0x1400619bc
lea rax, [rbp + 0x180]
mov qword [rbp + 0x180], r12
mov r9d, 0x20106
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMetaQuotes_Software
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400619bc
mov rcx, qword [rbp + 0x180]
lea r9d, [rax + 1]
mov dword [rsp + 0x28], ebx
lea rdx, str.Proxy.Password
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.140060800
lea rcx, [0x14021b240]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret