Function at 0x1000108f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
sub rsp, 0x390
mov rax, qword [0x10001d1d0]
xor rax, rsp
mov qword [rsp + 0x380], rax
xor esi, esi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x38], esi
mov r12, rsi
mov qword [rsp + 0x50], rsi
mov r13, rsi
mov dword [rsp + 0x48], esi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 3]
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlWinInit
mov rcx, 0xffffffff80000002
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov edi, eax
mov dword [rsp + 0x34], eax
cmp eax, esi
je 0x1000109bc
lea rbx, [0x10001d1e0]
mov rcx, qword [0x10001d1e0]
cmp rcx, rbx
je 0x100010d47
test byte [rcx + 0x1c], 1
je 0x100010d47
cmp byte [rcx + 0x19], 2
jb 0x100010d47
lea edx, [rsi + 0xa]
mov r9d, eax
lea r8, [0x1000183e0]
mov rcx, qword [rcx + 0x10]
call fcn.100001e70
mov rcx, qword [0x10001d1e0]
jmp 0x100010d47
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.RestoreInProgress
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov edi, eax
mov dword [rsp + 0x34], eax
cmp eax, esi
jne 0x100010cfd
cmp dword [rsp + 0x38], 4
jne 0x100010cfd
cmp dword [rsp + 0x48], esi
jne 0x100010a55
lea rbx, [0x10001d1e0]
mov rcx, qword [0x10001d1e0]
cmp rcx, rbx
je 0x100010d47
test byte [rcx + 0x1c], 1
je 0x100010d47
cmp byte [rcx + 0x19], 4
jb 0x100010d47
mov edx, 0xc
lea r8, [0x1000183e0]
mov rcx, qword [rcx + 0x10]
call fcn.10000121c
mov rcx, qword [0x10001d1e0]
jmp 0x100010d47
mov dword [rsp + 0x30], 0x20a
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x170]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.RestoreModule
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
mov edi, eax
cmp eax, esi
jne 0x100010cb2
cmp dword [rsp + 0x38], 1
jne 0x100010cb2
cmp dword [rsp + 0x30], 2
jb 0x100010cb2
mov eax, dword [rsp + 0x30]
shr rax, 1
cmp si, word [rsp + rax*2 + 0x16e]
jne 0x100010cb2
mov dword [rsp + 0x30], 0x105
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.RestoreFunction
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExA]
mov edi, eax
mov dword [rsp + 0x34], eax
cmp eax, esi
jne 0x100010c57
cmp dword [rsp + 0x38], 1
jne 0x100010c57
cmp dword [rsp + 0x30], 1
jb 0x100010c57
mov eax, dword [rsp + 0x30]
cmp byte [rsp + rax + 0x5f], sil
jne 0x100010c57
lea rbx, [0x10001d1e0]
mov rcx, qword [0x10001d1e0]
cmp rcx, rbx
je 0x100010b72
test byte [rcx + 0x1c], 1
je 0x100010b72
cmp byte [rcx + 0x19], 4
jb 0x100010b72
mov edx, 0xf
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x170]
lea r8, [0x1000183e0]
mov rcx, qword [rcx + 0x10]
call fcn.100010820
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r12, rax
mov qword [rsp + 0x50], rax
cmp rax, rsi
jne 0x100010be1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x34], eax
mov rcx, qword [0x10001d1e0]
cmp rcx, rbx
je 0x100010d47
test byte [rcx + 0x1c], 1
je 0x100010d47
cmp byte [rcx + 0x19], 2
jb 0x100010d47
mov edx, 0x10
mov r9d, eax
lea r8, [0x1000183e0]
mov rcx, qword [rcx + 0x10]
call fcn.100001e70
mov rcx, qword [0x10001d1e0]
jmp 0x100010d47
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r13, rax
cmp rax, rsi
jne 0x100010c4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x34], eax
mov rcx, qword [0x10001d1e0]
cmp rcx, rbx
je 0x100010d47
test byte [rcx + 0x1c], 1
je 0x100010d47
cmp byte [rcx + 0x19], 2
jb 0x100010d47
mov edx, 0x11
mov r9d, eax
lea r8, [0x1000183e0]
mov rcx, qword [rcx + 0x10]
call fcn.100001e70
mov rcx, qword [0x10001d1e0]
jmp 0x100010d47
mov rcx, qword [0x10001d1e0]
jmp 0x100010d47
mov eax, 0xd
cmp edi, esi
cmove edi, eax
mov dword [rsp + 0x34], edi
lea rbx, [0x10001d1e0]
mov rcx, qword [0x10001d1e0]
cmp rcx, rbx
je 0x100010d47
test byte [rcx + 0x1c], 1
je 0x100010d47
cmp byte [rcx + 0x19], 3
jb 0x100010d47
lea edx, [rax + 1]
mov r9d, edi
lea r8, [0x1000183e0]
mov rcx, qword [rcx + 0x10]
call fcn.100001e70
mov rcx, qword [0x10001d1e0]
jmp 0x100010d47
mov eax, 0xd
cmp edi, esi
cmove edi, eax
mov dword [rsp + 0x34], edi
lea rbx, [0x10001d1e0]
mov rcx, qword [0x10001d1e0]
cmp rcx, rbx
je 0x100010d47
test byte [rcx + 0x1c], 1
je 0x100010d47
cmp byte [rcx + 0x19], 3
jb 0x100010d47
mov edx, eax
mov r9d, edi
lea r8, [0x1000183e0]
mov rcx, qword [rcx + 0x10]
call fcn.100001e70
mov rcx, qword [0x10001d1e0]
jmp 0x100010d47
mov eax, 0xd
cmp edi, esi
cmove edi, eax
mov dword [rsp + 0x34], edi
lea rbx, [0x10001d1e0]
mov rcx, qword [0x10001d1e0]
cmp rcx, rbx
je 0x100010d47
test byte [rcx + 0x1c], 1
je 0x100010d47
cmp byte [rcx + 0x19], 3
jb 0x100010d47
lea edx, [rax - 2]
mov r9d, edi
lea r8, [0x1000183e0]
mov rcx, qword [rcx + 0x10]
call fcn.100001e70
mov rcx, qword [0x10001d1e0]
cmp r13, rsi
je 0x100010e00
cmp rcx, rbx
je 0x100010d76
test byte [rcx + 0x1c], 1
je 0x100010d76
cmp byte [rcx + 0x19], 4
jb 0x100010d76
mov edx, 0x12
lea r8, [0x1000183e0]
mov rcx, qword [rcx + 0x10]
call fcn.10000121c
lea rcx, [0x10000b130]
call r13
mov rcx, qword [0x10001d1e0]
cmp rcx, rbx
je 0x100010dad
test byte [rcx + 0x1c], 1
je 0x100010dad
cmp byte [rcx + 0x19], 4
jb 0x100010dad
mov edx, 0x13
lea r8, [0x1000183e0]
mov rcx, qword [rcx + 0x10]
call fcn.10000121c
jmp 0x100010e00
mov rcx, qword [rsp + 0x40]
cmp rcx, rsi
je 0x100010e10
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp r12, rsi
je 0x100010e1e
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.100001000
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop r13
ret