Function at 0x140118740
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x190
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rsi, r9
mov rbx, r8
mov r14, rdx
mov r15, rcx
mov rdx, r8
lea rcx, [rsp + 0x70]
call fcn.140117fe0
nop
mov eax, 0x5c
mov word [rbp + 0xc0], ax
mov edi, 0xffffffff
lea r9d, [rax - 0x5b]
mov r8d, edi
movzx edx, ax
mov rcx, rbx
call fcn.140040d00
lea r12, [0x1401a1e20]
cmp eax, edi
jne 0x1401187bd
mov qword [rsp + 0x68], r12
jmp 0x1401187cf
lea r8d, [rax + 1]
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.140041340
nop
mov ebx, dword [r15 + 0xb4]
xor r13d, r13d
mov qword [rbp - 0x78], r13
or ebx, 0x20019
lea rcx, [rsp + 0x68]
call fcn.140046630
mov rdx, rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140118853
mov r15, qword [rbp - 0x78]
test r15, r15
je 0x140118853
lea rcx, [rsp + 0x70]
call fcn.140046630
mov rdx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x60]
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1401188de
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax]
test ecx, ecx
je 0x140118875
cmp ecx, 0xffffffff
je 0x140118889
mov ecx, edi
mov rax, qword [rsp + 0x68]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140118889
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x68]
call fcn.140049bf0
nop
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1401188a7
cmp eax, 0xffffffff
je 0x1401188ba
mov rcx, qword [rsp + 0x70]
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1401188ba
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x70]
call fcn.140049bf0
movzx eax, bl
lea r11, [rsp + 0x190]
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
mov ecx, dword [rsp + 0x60]
lea eax, [rcx - 1]
mov edx, dword [rsp + 0x30]
cmp eax, 1
jbe 0x1401188f8
cmp ecx, 7
jne 0x1401188ff
add edx, 4
jmp 0x1401188fb
add edx, 2
mov dword [rsp + 0x30], edx
xor r8d, r8d
lea rcx, [rsp + 0x38]
call fcn.14002fc60
nop
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x38]
cmp ecx, 1
ja 0x140118925
cmp qword [rax + 0x10], 0x18
je 0x140118941
mov r8d, dword [rax + 8]
shr r8d, 0x1f
mov edx, dword [rax + 4]
inc edx
lea rcx, [rsp + 0x38]
call fcn.140031410
mov rax, qword [rsp + 0x38]
mov rbx, qword [rax + 0x10]
add rbx, rax
lea rcx, [rsp + 0x70]
call fcn.140046630
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140118987
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x140118dae
mov r8d, dword [rsp + 0x60]
cmp r8d, 0xb
ja case.0x1401189a8.6
lea rdx, [0x140000000]
mov ecx, dword [rdx + r8*4 + 0x118df0]
add rcx, rdx
jmp rcx
mov qword [rsp + 0x48], r12
cmp dword [rsp + 0x30], 0
je 0x140118a16
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax + 0x10]
add rdx, rax
mov r8d, edi
lea rcx, [rsp + 0x78]
call fcn.1400043b0
mov rdx, qword [rsp + 0x48]
mov qword [rbp + 0x48], rdx
mov rcx, qword [rax]
mov qword [rsp + 0x48], rcx
mov qword [rax], rdx
mov rax, qword [rsp + 0x78]
mov ecx, dword [rax]
test ecx, ecx
je 0x140118a03
cmp ecx, 0xffffffff
je 0x140118a16
mov ecx, edi
mov rax, qword [rsp + 0x78]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140118a16
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x78]
call fcn.140049bf0
test rsi, rsi
je 0x140118a4d
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x58]
call fcn.1401043c0
mov rcx, qword [rsi]
mov qword [rbp - 0x40], rcx
mov ecx, dword [rsi + 8]
mov dword [rbp - 0x38], ecx
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x40]
movups xmmword [rax], xmm1
lea rcx, [rbp + 0x58]
call fcn.14007da90
nop
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax]
test ecx, ecx
je 0x140118a75
cmp ecx, 0xffffffff
je 0x140118da3
mov ecx, edi
mov rax, qword [rsp + 0x48]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140118da3
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x48]
call fcn.140049bf0
jmp 0x140118da3
lea rax, [0x14016e190]
mov qword [rsp + 0x50], rax
cmp dword [rsp + 0x30], 0
je 0x140118b6f
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax + 0x10]
add rdx, rax
mov r8d, edi
lea rcx, [rsp + 0x40]
call fcn.1400043b0
nop
mov rbx, qword [rsp + 0x40]
mov eax, dword [rbx + 4]
lea r14d, [rax + 1]
test eax, eax
je 0x140118b41
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140008140
nop
mov eax, dword [rbx]
test eax, eax
je 0x140118afb
cmp eax, 0xffffffff
je 0x140118b0e
mov ecx, edi
mov rax, qword [rsp + 0x40]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140118b0e
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x40]
call fcn.140049bf0
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax + 0x10]
add rdx, rax
movsxd rax, r14d
lea rdx, [rdx + rax*2]
mov r8d, edi
lea rcx, [rsp + 0x40]
call fcn.1400043b0
nop
mov rbx, qword [rsp + 0x40]
mov eax, dword [rbx + 4]
inc r14d
add r14d, eax
test eax, eax
jne 0x140118ad0
mov eax, dword [rbx]
test eax, eax
je 0x140118b5c
cmp eax, 0xffffffff
je 0x140118b6f
mov ecx, edi
mov rax, qword [rsp + 0x40]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140118b6f
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x40]
call fcn.140049bf0
test rsi, rsi
je 0x140118ba6
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x68]
call fcn.140104080
mov rcx, qword [rsi]
mov qword [rbp - 0x30], rcx
mov ecx, dword [rsi + 8]
mov dword [rbp - 0x28], ecx
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x30]
movups xmmword [rax], xmm1
lea rcx, [rbp + 0x68]
call fcn.14007da90
nop
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
test ecx, ecx
je 0x140118bc6
cmp ecx, 0xffffffff
je 0x140118bd6
mov ecx, edi
mov rax, qword [rsp + 0x50]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140118bd6
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140008550
nop
jmp 0x140118da3
mov qword [rsp + 0x58], r12
cmp dword [rsp + 0x30], 0
je 0x140118c4b
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + 4]
cdq
sub eax, edx
sar eax, 1
mov rdx, qword [rcx + 0x10]
add rdx, rcx
mov r8d, eax
lea rcx, [rbp - 0x80]
call fcn.1400043b0
mov rdx, qword [rsp + 0x58]
mov qword [rbp + 0x50], rdx
mov rcx, qword [rax]
mov qword [rsp + 0x58], rcx
mov qword [rax], rdx
mov rax, qword [rbp - 0x80]
mov ecx, dword [rax]
test ecx, ecx
je 0x140118c39
cmp ecx, 0xffffffff
je 0x140118c4b
mov ecx, edi
mov rax, qword [rbp - 0x80]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140118c4b
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x80]
call fcn.140049bf0
test rsi, rsi
je 0x140118c82
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x78]
call fcn.1401043c0
mov rcx, qword [rsi]
mov qword [rbp - 0x20], rcx
mov ecx, dword [rsi + 8]
mov dword [rbp - 0x18], ecx
movups xmm0, xmmword [rax]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rax], xmm1
lea rcx, [rbp + 0x78]
call fcn.14007da90
nop
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax]
test ecx, ecx
je 0x140118caa
cmp ecx, 0xffffffff
je 0x140118da3
mov ecx, edi
mov rax, qword [rsp + 0x58]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140118da3
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x58]
call fcn.140049bf0
jmp 0x140118da3
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x10]
test rsi, rsi
je 0x140118da3
mov edx, dword [rax + rcx]
lea rcx, [rbp - 0x60]
call fcn.14007d850
mov rax, qword [rsi]
mov qword [rbp - 0x10], rax
mov eax, dword [rsi + 8]
mov dword [rbp - 8], eax
movaps xmm0, xmmword [rbp - 0x60]
movaps xmm1, xmmword [rbp - 0x10]
movdqa xmmword [rbp - 0x60], xmm1
lea rcx, [rbp - 0x60]
jmp 0x140118d9b
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x10]
test rsi, rsi
je 0x140118da3
mov rdx, qword [rax + rcx]
lea rcx, [rbp - 0x50]
call fcn.14007d940
mov rax, qword [rsi]
mov qword [rbp], rax
mov eax, dword [rsi + 8]
mov dword [rbp + 8], eax
movaps xmm0, xmmword [rbp - 0x50]
movaps xmm1, xmmword [rbp]
movdqa xmmword [rbp - 0x50], xmm1
lea rcx, [rbp - 0x50]
jmp 0x140118d9b
mov qword [rbp + 0x20], 2
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x28], xmm0
lea rax, [0x1402d77f0]
mov qword [rbp + 0x38], rax
lea rdx, [0x1402abfb0]
lea rcx, [rbp + 0x20]
call fcn.140035f50
test rsi, rsi
je 0x140118da3
mov dword [rbp - 0x68], 0x80000000
mov qword [rbp - 0x70], r13
mov rax, qword [rsi]
mov qword [rbp + 0x10], rax
mov eax, dword [rsi + 8]
mov dword [rbp + 0x18], eax
movaps xmm0, xmmword [rbp - 0x70]
movaps xmm1, xmmword [rbp + 0x10]
movdqa xmmword [rbp - 0x70], xmm1
lea rcx, [rbp - 0x70]
movups xmmword [rsi], xmm0
call fcn.14007da90
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
test ecx, ecx
je 0x140118dd6
cmp ecx, 0xffffffff
je 0x140118855
mov ecx, edi
mov rax, qword [rsp + 0x38]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140118855
mov edx, 1
lea r8d, [rdx + 7]
mov rcx, qword [rsp + 0x38]
call fcn.140049bf0
jmp 0x140118855