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 r14, r9
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov rdx, r8
lea rcx, [rsp + 0x60]
call fcn.140118270
nop
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.1401183d0
nop
mov ebx, dword [rdi + 0xbc]
xor r12d, r12d
mov qword [rsp + 0x70], r12
or ebx, 0x20019
lea rcx, [rsp + 0x68]
call fcn.140036ca0
mov rdx, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or edi, 0xffffffff
test eax, eax
jne 0x140118d90
mov r15, qword [rsp + 0x70]
test r15, r15
je 0x140118d90
lea rcx, [rsp + 0x60]
call fcn.140036ca0
mov rdx, rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14011882a
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140118d90
mov ecx, dword [rsp + 0x48]
lea eax, [rcx - 1]
mov edx, dword [rbp + 0xc0]
cmp eax, 1
jbe 0x140118846
cmp ecx, 7
jne 0x14011884f
add edx, 4
jmp 0x140118849
add edx, 2
mov dword [rbp + 0xc0], edx
xor r8d, r8d
lea rcx, [rsp + 0x30]
call fcn.140022f60
nop
mov rax, qword [rsp + 0x30]
mov r13d, 1
cmp dword [rax], r13d
ja 0x140118874
cmp qword [rax + 0x10], 0x18
je 0x140118896
mov r8d, r12d
cmp dword [rax + 8], 0x80000000
cmovae r8d, r13d
mov edx, dword [rax + 4]
inc edx
lea rcx, [rsp + 0x30]
call fcn.1400243f0
mov rax, qword [rsp + 0x30]
mov rbx, qword [rax + 0x10]
add rbx, rax
lea rcx, [rsp + 0x60]
call fcn.140036ca0
mov rdx, rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
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
jmp 0x140118d60
mov r8d, dword [rsp + 0x48]
cmp r8d, 0xb
ja case.0x1401188ff.6
lea rdx, [0x140000000]
mov ecx, dword [rdx + r8*4 + 0x118e14]
add rcx, rdx
jmp rcx
lea rax, [0x140187f70]
mov qword [rsp + 0x50], rax
cmp dword [rbp + 0xc0], 0
je 0x140118971
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax + 0x10]
add rdx, rax
mov r8d, edi
lea rcx, [rsp + 0x78]
call fcn.1400042e0
mov rdx, qword [rsp + 0x50]
mov qword [rbp + 0x48], rdx
mov rcx, qword [rax]
mov qword [rsp + 0x50], rcx
mov qword [rax], rdx
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x140118963
cmp eax, 0xffffffff
je 0x140118971
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140118971
mov rcx, qword [rsp + 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
test r14, r14
je 0x1401189aa
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x58]
call fcn.1400d40b0
mov rcx, qword [r14]
mov qword [rbp - 0x40], rcx
mov ecx, dword [r14 + 8]
mov dword [rbp - 0x38], ecx
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
movups xmm0, xmmword [rbp - 0x40]
movups xmmword [rax], xmm0
lea rcx, [rbp + 0x58]
call fcn.140075340
nop
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
test ecx, ecx
je 0x1401189cd
cmp ecx, 0xffffffff
je 0x140118d55
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140118d55
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x50]
call fcn.140039ba0
jmp 0x140118d55
lea rsi, [0x140157d00]
mov qword [rsp + 0x40], rsi
cmp dword [rbp + 0xc0], 0
je 0x140118ace
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax + 0x10]
add rdx, rax
mov r8d, edi
lea rcx, [rsp + 0x38]
call fcn.1400042e0
nop
mov rbx, qword [rsp + 0x38]
mov eax, dword [rbx + 4]
lea esi, [rax + 1]
test eax, eax
je 0x140118a9d
nop word [rax + rax]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.140009210
nop
mov eax, dword [rbx]
test eax, eax
je 0x140118a5b
cmp eax, 0xffffffff
je 0x140118a6c
mov eax, edi
lock xadd dword [rbx], eax
cmp eax, 1
jne 0x140118a6c
mov rbx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, rbx
call fcn.140039ba0
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax + 0x10]
add rdx, rax
movsxd rax, esi
lea rdx, [rdx + rax*2]
mov r8d, edi
lea rcx, [rsp + 0x38]
call fcn.1400042e0
nop
mov rbx, qword [rsp + 0x38]
mov eax, dword [rbx + 4]
inc esi
add esi, eax
test eax, eax
jne 0x140118a30
mov eax, dword [rbx]
test eax, eax
je 0x140118ab8
cmp eax, 0xffffffff
je 0x140118ac9
mov eax, edi
lock xadd dword [rbx], eax
cmp eax, 1
jne 0x140118ac9
mov rbx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, rbx
call fcn.140039ba0
mov rsi, qword [rsp + 0x40]
test r14, r14
je 0x140118b0b
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x68]
call fcn.1400d3d60
mov rcx, qword [r14]
mov qword [rbp - 0x30], rcx
mov ecx, dword [r14 + 8]
mov dword [rbp - 0x28], ecx
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
movups xmm0, xmmword [rbp - 0x30]
movups xmmword [rax], xmm0
lea rcx, [rbp + 0x68]
call fcn.140075340
mov rsi, qword [rsp + 0x40]
mov eax, dword [rsi]
test eax, eax
je 0x140118b26
cmp eax, 0xffffffff
je 0x140118b7f
mov eax, edi
lock xadd dword [rsi], eax
cmp eax, 1
jne 0x140118b7f
mov rsi, qword [rsp + 0x40]
movsxd rbx, dword [rsi + 0xc]
add rbx, 2
lea rbx, [rsi + rbx*8]
movsxd r14, dword [rsi + 8]
add r14, 2
lea r14, [rsi + r14*8]
cmp r14, rbx
je 0x140118b76
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x140118b60
cmp eax, 0xffffffff
je 0x140118b71
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140118b71
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.140039ba0
cmp rbx, r14
jne 0x140118b43
mov rcx, rsi
call fcn.14011dbc0
nop
jmp 0x140118d55
lea rax, [0x140187f70]
mov qword [rsp + 0x58], rax
cmp dword [rbp + 0xc0], 0
je 0x140118bfc
mov rcx, qword [rsp + 0x30]
mov r9, qword [rcx + 0x10]
add r9, rcx
mov eax, dword [rcx + 4]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov rdx, r9
lea rcx, [rbp - 0x80]
call fcn.1400042e0
mov rdx, qword [rsp + 0x58]
mov qword [rbp + 0x50], rdx
mov rcx, qword [rax]
mov qword [rsp + 0x58], rcx
mov qword [rax], rdx
mov rcx, qword [rbp - 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x140118bee
cmp eax, 0xffffffff
je 0x140118bfc
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140118bfc
mov rcx, qword [rbp - 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
test r14, r14
je 0x140118c35
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x78]
call fcn.1400d40b0
mov rcx, qword [r14]
mov qword [rbp - 0x20], rcx
mov ecx, dword [r14 + 8]
mov dword [rbp - 0x18], ecx
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rax], xmm0
lea rcx, [rbp + 0x78]
call fcn.140075340
nop
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax]
test ecx, ecx
je 0x140118c58
cmp ecx, 0xffffffff
je 0x140118d55
mov ecx, edi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x140118d55
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x58]
call fcn.140039ba0
jmp 0x140118d55
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x10]
test r14, r14
je 0x140118d55
mov edx, dword [rax + rcx]
lea rcx, [rbp - 0x60]
call fcn.140075200
mov rax, qword [r14]
mov qword [rbp - 0x10], rax
mov eax, dword [r14 + 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 0x140118d4c
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x10]
test r14, r14
je 0x140118d55
mov rdx, qword [rax + rcx]
lea rcx, [rbp - 0x50]
call fcn.1400752f0
mov rax, qword [r14]
mov qword [rbp], rax
mov eax, dword [r14 + 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 0x140118d4c
mov qword [rbp + 0x20], 2
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x28], xmm0
lea rax, [0x1402b84e0]
mov qword [rbp + 0x38], rax
lea rdx, [0x140291590]
lea rcx, [rbp + 0x20]
call fcn.140028d60
test r14, r14
je 0x140118d55
mov dword [rbp - 0x68], 0x80000000
mov qword [rbp - 0x70], r12
mov rax, qword [r14]
mov qword [rbp + 0x10], rax
mov eax, dword [r14 + 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 [r14], xmm0
call fcn.140075340
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x140118d80
cmp eax, 0xffffffff
je 0x140118d92
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140118d92
mov rcx, qword [rsp + 0x30]
mov r8d, 8
mov rdx, r13
call fcn.140039ba0
jmp 0x140118d92
xor bl, bl
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x140118db2
cmp eax, 0xffffffff
je 0x140118dc1
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140118dc1
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x140118ddf
cmp eax, 0xffffffff
je 0x140118ded
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x140118ded
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140039ba0
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