Function at 0x140245ef0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov rax, qword [0x144dd6080]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov rax, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor r15d, r15d
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [0x1403ddf20]
movdqu xmmword [rsp + 0x58], xmm1
mov byte [rsp + 0x48], r15b
movups xmmword [rsp + 0x68], xmm0
movdqu xmmword [rsp + 0x78], xmm1
mov byte [rsp + 0x68], r15b
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.140245690
test al, al
jne 0x140246026
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], al
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140245fc0
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140245fba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14024630f
call fcn.140395a68
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140245ffd
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140245ff8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14024631b
call fcn.140395a68
mov rax, rdi
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.140395b80
mov rbx, qword [rsp + 0x900]
add rsp, 0x8c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
movups xmm0, xmmword [str.SYSTEMCurrentControlSetControlClass_]
movaps xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [0x1405163d8]
movaps xmmword [rbp - 0x40], xmm1
movsd xmm0, qword [0x1405163e8]
movsd qword [rbp - 0x30], xmm0
lea r8, [rsp + 0x68]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rbp - 0x80]
cmp r14, 0xf
cmova r8, rsi
lea rcx, [rbp - 0x50]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x140246066
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140246080
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp - 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140246108
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
cmp r14, 0xf
jbe 0x140245fc0
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140246100
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14024630f
mov rcx, rsi
jmp 0x140245fba
mov dword [rsp + 0x30], 0x3ff
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3b0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.OpenCLDriverName
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140246285
cmp dword [rsp + 0x34], 1
jne 0x140246285
mov eax, dword [rsp + 0x30]
cmp rax, 0x400
jae 0x14024632d
mov byte [rbp + rax + 0x3b0], bl
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
lea rax, [rbp + 0x3b0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140246194
lea rdx, [rbp + 0x3b0]
lea rcx, [rbp - 0x78]
call fcn.140001680
nop
lea rdx, [rbp - 0x78]
mov rcx, rdi
call fcn.1401f6470
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x1402461f7
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1402461f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140246321
call fcn.140395a68
movdqa xmm0, xmmword [0x1403ddf20]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
cmp r14, 0xf
jbe 0x140246240
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140246237
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140246327
mov rcx, rsi
call fcn.140395a68
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140245ffd
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140245ff8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140246315
jmp 0x140245ff8
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
cmp r14, 0xf
jbe 0x1402462ce
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1402462c5
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14024630f
mov rcx, rsi
call fcn.140395a68
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140245ffd
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140245ff8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14024631b
jmp 0x140245ff8
call fcn.14039cf6c
nop
call fcn.14039cf6c
int3
call fcn.14039cf6c
nop
call fcn.14039cf6c
nop
call fcn.14039cf6c
nop
call fcn.140396390
int3