Function at 0x14008f8d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push r15
lea rbp, [rsp - 0x340]
sub rsp, 0x440
xor eax, eax
mov dword [rbp + 0x360], 0x3fe
mov dword [rsp + 0x30], eax
lea rdx, str.SOFTWAREMetaQuotes_SoftwareSettings
lea rax, [rbp + 0x370]
xor r15d, r15d
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp + 0x370], r15
mov rcx, 0xffffffff80000001
mov dword [rbp + 0x368], r15d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008f989
mov rcx, qword [rbp + 0x370]
lea rax, [rbp + 0x360]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x368]
lea rax, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.Email
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x370]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14008f989
cmp word [rsp + 0x30], r15w
jne 0x14008fb87
lea rax, [rbp + 0x360]
mov qword [rsp + 0x430], r14
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp + 0x360], r15
lea rdx, str.SOFTWAREMicrosoftIdentityCRLUserExtendedProperties
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14008f9d1
mov r14, r15
mov qword [rbp + 0x360], r15
jmp 0x14008f9d8
mov r14, qword [rbp + 0x360]
test r14, r14
je 0x14008fb7f
mov qword [rsp + 0x478], rsi
mov esi, r15d
mov qword [rsp + 0x438], rdi
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
mov r9d, 0x1ff
mov word [rsp + 0x30], r15w
lea r8, [rsp + 0x30]
mov edx, esi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x14008fb66
mov edx, 0x200
lea rcx, [rsp + 0x30]
call fcn.14003ecb4
movzx eax, word [rsp + 0x30]
lea rbx, [rsp + 0x30]
test ax, ax
je 0x14008fa71
nop dword [rax]
nop word [rax + rax]
movzx edx, ax
lea rcx, str.abcdefghijklmnopqrstuvwxyz0123456789_.__
call fcn.140030bf4
test rax, rax
je 0x14008fad6
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x14008fa50
lea rdx, [0x1401c8854]
lea rcx, [rsp + 0x30]
call fcn.140030c6c
test rax, rax
je 0x14008fac6
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x14008fac6
lea rbx, [rax + 2]
mov rcx, rbx
lea rdx, [0x1401ba828]
call fcn.140030c6c
test rax, rax
je 0x14008fac6
cmp rax, rbx
je 0x14008fac6
lea rcx, [rsp + 0x30]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r15w
jne 0x14008fab6
cmp rax, 6
ja 0x14008fade
inc esi
cmp esi, 0xa
jb 0x14008fa00
jmp 0x14008fb66
mov word [rsp + 0x30], r15w
jmp 0x14008fac6
lea rax, [rsp + 0x30]
cmp word [rax + rdi*2 + 2], r15w
lea rdi, [rdi + 1]
jne 0x14008fae3
lea ebx, [rdi*2 + 2]
test ebx, ebx
je 0x14008fb66
lea rax, [rbp + 0x368]
mov qword [rbp + 0x368], r15
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 0x14008fb66
mov rcx, qword [rbp + 0x368]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], ebx
lea rdx, str.Email
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x368]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x438]
mov rsi, qword [rsp + 0x478]
mov r14, qword [rsp + 0x430]
add rsp, 0x440
pop r15
pop rbx
pop rbp
ret