Function at 0x1085eac
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rsi
sub rsp, 0x30
xor esi, esi
lea r8, [rax + 0x18]
lea rdx, [0x01081d70]
mov rcx, 0xffffffff80000001
mov dword [rax + 0x10], 4
mov qword [rax + 0x18], rsi
mov dword [rax + 8], esi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x1085f2a
lea rax, [rsp + 0x48]
lea rdx, [0x01081dd0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x1085f1f
mov eax, 0x80070006
jmp 0x1086147
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x40], esi
je 0x1086093
lea rcx, [0x010c2320]
call fcn.01085ba8
cmp qword [0x010c2320], rsi
je 0x1086145
cmp al, sil
je 0x1086145
mov ecx, 0xc0
call fcn.0108e628
cmp rax, rsi
mov rbx, rax
je 0x1085ff9
mov rcx, qword [0x010c2320]
lea rax, [0x01085980]
mov dword [rbx + 0x10], esi
mov qword [rbx], rax
lea rax, [0x010859d0]
mov dword [rbx + 0x14], 1
mov qword [rbx + 0x20], rcx
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x30], rsi
mov qword [rbx + 8], rax
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0x40], rsi
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rsi
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x60], rsi
mov dword [rbx + 0x74], esi
mov dword [rbx + 0x78], esi
mov byte [rbx + 0x7c], sil
mov byte [rbx + 0x7d], sil
mov byte [rbx + 0x7e], 1
mov dword [rbx + 0x80], esi
mov qword [rbx + 0x88], rsi
mov qword [rbx + 0x90], rsi
mov qword [rbx + 0x98], rsi
mov qword [rbx + 0xa0], rsi
mov byte [rbx + 0xac], sil
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1085ffc
mov rbx, rsi
cmp rbx, rsi
mov qword [0x010c2318], rbx
jne 0x1086012
mov eax, 0x80004005
jmp 0x1086147
mov edx, 0xa
mov rcx, rbx
call fcn.0108d6ac
cmp al, sil
jne 0x108604b
mov rcx, qword [0x010c2318]
call fcn.0108d8a4
mov rcx, qword [0x010c2318]
cmp rcx, rsi
je 0x1086008
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x010c2318], rsi
jmp 0x1086008
mov rbx, qword [0x010c2318]
lea rdx, [0x010854e0]
mov ecx, 0x1d
call fcn.010875cc
lea r8, [0x0108da10]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x010c19f4], 1
mov qword [rbx + 0x40], rax
jmp 0x1086145
mov rbx, qword [0x010c2318]
cmp rbx, rsi
je 0x1086145
lea rdx, [0x01085510]
mov ecx, 0x1d
call fcn.010875cc
mov rcx, qword [rbx + 0x48]
cmp rcx, rsi
je 0x10860c3
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp qword [rbx + 0x40], rsi
je 0x1086120
lea rdx, [0x01085540]
mov ecx, 0x1d
call fcn.010875cc
mov rcx, qword [rbx + 0x40]
mov edx, 3
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1086101
lea rdx, [0x01085598]
mov ecx, 0x1d
call fcn.010875cc
lea rdx, [0x010855c0]
mov ecx, 0x1d
call fcn.010875cc
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x40], rsi
mov rcx, qword [0x010c2318]
call fcn.0108d8a4
mov rcx, qword [0x010c2318]
cmp rcx, rsi
je 0x1086145
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x010c2318], rsi
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rsi
ret