Function at 0x140031c30
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov qword [rbp + 0xf], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov r13, rcx
xor ebx, ebx
call fcn.140014f40
test eax, eax
je 0x140031eec
lea rcx, [r13 + 0xc00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [rbp + 0x6f], ebx
lea rcx, [rbp + 0x6f]
call fcn.1400152c0
mov ebx, eax
mov dword [rbp - 0x39], eax
mov rax, qword [r13 + 0xb98]
mov qword [rbp - 0x29], rax
xor r14d, r14d
test eax, eax
je 0x140031edf
xor ebx, ebx
mov rcx, rbx
cmp r14d, dword [r13 + 0xb98]
jae 0x140031ccc
mov edx, r14d
lea rcx, [r13 + 0xb80]
call fcn.14004bdbc
test rax, rax
je 0x140031f09
mov rcx, qword [rax + 0x10]
mov rax, qword [rbp - 0x29]
test dword [rcx + 0x174], 0x100
je 0x140031ed0
cmp dword [rbp + 0x6f], 3
je 0x140031ed0
mov r12d, ebx
mov rcx, qword [rcx]
sub rcx, 0x18
call fcn.140004c20
mov r15, rax
lea rcx, [rax + 0x18]
mov qword [rbp + 0x17], rcx
mov rcx, rax
call fcn.140004c20
add rax, 0x18
mov qword [rbp - 9], rax
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x31]
call fcn.140046760
nop
mov qword [rbp - 0x21], rbx
mov dword [rbp - 0x19], ebx
mov qword [rbp - 0x11], rbx
mov r9d, 0x20019
mov r8, qword [rbp - 0x31]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x21]
call fcn.14000ddf0
test eax, eax
jne 0x140031e7c
mov dword [rbp + 0x77], ebx
mov qword [rbp - 1], rbx
mov esi, ebx
mov rdi, qword [rbp - 0x21]
test rdi, rdi
je 0x140031de9
lea rdx, [rbp - 1]
lea rcx, [0x140281948]
call fcn.140011a50
test eax, eax
js 0x140031dca
mov dword [rbp + 0x7f], 4
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x49]
xor r8d, r8d
mov rsi, qword [rbp - 1]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140031db7
cmp dword [rbp - 0x49], 4
mov eax, SafeArrayGetDim
cmovne ebx, eax
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor esi, esi
test ebx, ebx
sete sil
xor ebx, ebx
test esi, esi
je 0x140031dd9
mov r12d, ebx
cmp dword [rbp + 0x77], 1
sete r12b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rbx
mov qword [rbp - 0x21], rbx
mov dword [rbp - 0x19], ebx
test r12d, r12d
je 0x140031e80
mov r9d, 0x20006
mov r8, qword [rbp - 0x31]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x21]
call fcn.14000ddf0
test eax, eax
jne 0x140031e7c
mov qword [rbp + 7], rbx
mov rdi, qword [rbp - 0x21]
test rdi, rdi
je 0x140031e80
lea rdx, [rbp + 7]
lea rcx, [0x140281948]
call fcn.140011a50
test eax, eax
js 0x140031e6a
mov dword [rbp - 0x41], ebx
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp + 7]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 7]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, rbx
mov qword [rbp - 0x21], rbx
jmp 0x140031e80
mov rdi, qword [rbp - 0x21]
test rdi, rdi
je 0x140031e8f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140031eb0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, 0xffffffff
lock xadd dword [r15 + 0x10], eax
sub eax, 1
jg 0x140031ecc
mov rcx, qword [r15]
mov rax, qword [rcx]
mov rdx, r15
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp - 0x29]
inc r14d
cmp r14d, eax
jb 0x140031ca0
mov ebx, dword [rbp - 0x39]
lea rcx, [r13 + 0xbf0]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov eax, ebx
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14004b6d4
int3