Function at 0x140060fc0
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 0x140061095
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 0x140061095
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 0x1400610a2
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [r14 + 4], r12w
je 0x1400610af
cmp dword [r14], 3
jbe 0x1400610b2
mov dword [r14], r12d
lea rcx, [0x14021a1b0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [r14]
mov rbx, 0xffffffffffffffff
cmp dword [0x14021a788], eax
je 0x140061183
lea r9, [0x1401b9b10]
mov dword [0x14021a788], eax
mov r8, rbx
mov dword [rsp + 0x20], eax
mov edx, 0xff
lea rcx, [rsp + 0x50]
call fcn.140003a90
lea rcx, [rsp + 0x50]
mov rax, rbx
cmp word [rcx + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x140061100
lea edi, [rax*2 + 2]
test edi, edi
je 0x140061183
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 0x140061183
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, [0x14021a78c]
lea r9, [r14 + 4]
mov rax, r15
sub r9, r15
movzx edx, word [rax]
movzx ecx, word [rax + r9]
sub edx, ecx
jne 0x1400611a8
add rax, 2
test ecx, ecx
jne 0x140061194
test edx, edx
je 0x14006124c
mov r9, rbx
lea r8, [r14 + 4]
mov edx, 0x80
mov rcx, r15
call fcn.14003c218
mov rax, rbx
nop word [rax + rax]
cmp word [r15 + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x1400611d0
lea edi, [rax*2 + 2]
test edi, edi
je 0x14006124c
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 0x14006124c
mov rcx, qword [rbp + 0x180]
lea r9d, [rax + 1]
mov dword [rsp + 0x28], edi
lea rdx, [0x1401b84e8]
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, [0x14021a88c]
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 0x140061277
add rax, 2
test ecx, ecx
jne 0x140061263
test edx, edx
je 0x14006130e
mov r9, rbx
mov edx, 0x40
mov rcx, rsi
call fcn.14003c218
mov rax, rbx
cmp word [rsi + rax*2 + 2], r12w
lea rax, [rax + 1]
jne 0x140061292
lea edi, [rax*2 + 2]
test edi, edi
je 0x14006130e
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 0x14006130e
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, [0x14021a90c]
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 0x140061346
add rax, 2
test ecx, ecx
jne 0x140061330
test r9d, r9d
je 0x1400613dc
mov r9, rbx
mov edx, 0x40
mov rcx, rdi
call fcn.14003c218
nop
cmp word [rdi + rbx*2 + 2], r12w
lea rbx, [rbx + 1]
jne 0x140061360
lea ebx, [rbx*2 + 2]
test ebx, ebx
je 0x1400613dc
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 0x1400613dc
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.140060150
lea rcx, [0x14021a1b0]
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