Function at 0x1400226e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb78
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rax, qword [0x1400d2478]
xor rax, rsp
mov qword [rsp + 0xb60], rax
mov r13, r9
mov r14, r8
mov r12, rdx
mov rbx, rcx
xor r15d, r15d
mov ebp, r15d
mov qword [rsp + 0xd0], 7
mov qword [rsp + 0xc8], r15
mov word [rsp + 0xb8], r15w
lea r8d, [r15 + 0x1d]
lea rdx, str.IMInstaller::SearchIMDrvNames
lea rcx, [rsp + 0xb0]
call fcn.140001870
nop
lea r9, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae r9, qword [rsp + 0xb8]
lea rax, str.Function_start
mov qword [rsp + 0x20], rax
lea edx, [r15 + 0x32]
lea r8d, [r15 + 1]
mov rcx, rbx
call fcn.1400144a0
mov qword [rsp + 0x70], r15
mov rcx, r12
call fcn.140026970
mov rcx, r14
call fcn.140026970
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetServices_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140022da3
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140022d46
mov esi, r15d
cmp dword [rsp + 0x60], r15d
jbe 0x140022d96
nop
mov word [rsp + 0x130], r15w
xor edx, edx
mov r8d, 0x1fc
lea rcx, [rsp + 0x132]
call fcn.1400719a0
mov dword [rsp + 0x7c], 0xff
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x7c]
lea r8, [rsp + 0x130]
mov edx, esi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140022c78
mov word [rsp + 0x750], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x752]
call fcn.1400719a0
mov dword [rsp + 0x78], 0x208
mov qword [rsp + 0x120], 7
mov qword [rsp + 0x118], r15
mov word [rsp + 0x108], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x130]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x100]
call fcn.140001870
nop
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r9, [rcx - 1]
xor r8d, r8d
mov rdx, r13
lea rcx, [rsp + 0x100]
call fcn.1400021c0
test rax, rax
jne 0x140022c5e
mov qword [rsp + 0x68], r15
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x960]
call fcn.1400719a0
lea rdx, [rsp + 0x130]
mov qword [rsp + 0x28], rdx
lea rax, str.SystemCurrentControlSetServices_
mov qword [rsp + 0x20], rax
lea r9, [0x1400ade30]
mov edx, 0x100
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x960]
call fcn.140066f18
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x960]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140022cda
mov qword [rsp + 0xf8], 7
mov qword [rsp + 0xf0], r15
mov word [rsp + 0xe0], r15w
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x750]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140022c35
mov word [rsp + 0x540], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x542]
call fcn.1400719a0
mov word [rsp + 0x330], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x332]
call fcn.1400719a0
mov qword [rsp + 0x40], 0x104
lea rax, [rsp + 0x330]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x104
lea rax, [rsp + 0x540]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x750]
call fcn.140064fb8
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x540]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x540]
lea rcx, [rsp + 0xd8]
call fcn.140001870
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x330]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x330]
lea rcx, [rsp + 0xd8]
call fcn.14000a130
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DeleteFlag
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x140022b4c
lea r9, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae r9, qword [rsp + 0xb8]
lea rax, [rsp + 0x130]
mov qword [rsp + 0x28], rax
lea rax, str.Wrong_parameter:__s
mov qword [rsp + 0x20], rax
mov edx, 0x1e
lea r8d, [rdx - 0x1d]
mov rcx, rbx
call fcn.1400144a0
jmp 0x140022c35
inc ebp
mov qword [rsp + 0xa0], 7
mov qword [rsp + 0x98], r15
mov word [rsp + 0x88], r15w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x130]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x80]
call fcn.140001870
nop
lea rdx, [rsp + 0x80]
mov rcx, r12
call fcn.140009190
nop
cmp qword [rsp + 0xa0], 8
jb 0x140022bc2
mov rcx, qword [rsp + 0x88]
call fcn.140065920
lea rdx, [rsp + 0xd8]
mov rcx, r14
call fcn.140009190
lea rdx, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 8
cmovae rdx, qword [rsp + 0xe0]
lea r9, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae r9, qword [rsp + 0xb8]
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x130]
mov qword [rsp + 0x28], rax
lea rax, str.Parameter___s_:__s
mov qword [rsp + 0x20], rax
mov edx, 0x1e
lea r8d, [rdx - 0x1d]
mov rcx, rbx
call fcn.1400144a0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], r15
cmp qword [rsp + 0xf8], 8
jb 0x140022c5e
mov rcx, qword [rsp + 0xe0]
call fcn.140065920
nop
cmp qword [rsp + 0x120], 8
jb 0x140022cc9
mov rcx, qword [rsp + 0x108]
call fcn.140065920
jmp 0x140022cc9
lea rdi, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae rdi, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x130]
mov qword [rsp + 0x28], rax
lea rax, str.Error_getting_data:___s_
mov qword [rsp + 0x20], rax
mov r9, rdi
mov edx, 0x1e
lea r8d, [rdx - 0x1d]
mov rcx, rbx
call fcn.1400144a0
inc esi
cmp esi, dword [rsp + 0x60]
jae 0x140022d96
jmp 0x140022830
lea rdi, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae rdi, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x130]
mov qword [rsp + 0x28], rax
lea rax, str.Error_reading___s_:__d
mov qword [rsp + 0x20], rax
mov r9, rdi
mov edx, 0xa
lea r8d, [rdx - 9]
mov rcx, rbx
call fcn.1400144a0
nop
cmp qword [rsp + 0x120], 8
jb 0x140022d96
mov rcx, qword [rsp + 0x108]
call fcn.140065920
jmp 0x140022d96
lea rdi, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae rdi, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.RegQueryInfoKey
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
lea rax, str.Error___i__return_by_function___s_
mov qword [rsp + 0x20], rax
mov r9, rdi
mov edx, 0xa
lea r8d, [rdx - 9]
mov rcx, rbx
call fcn.1400144a0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140022df3
lea rdi, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae rdi, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.RegOpenKeyEx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
lea rax, str.Error___i__return_by_function___s_
mov qword [rsp + 0x20], rax
mov r9, rdi
mov edx, 0xa
lea r8d, [rdx - 9]
mov rcx, rbx
call fcn.1400144a0
lea r9, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae r9, qword [rsp + 0xb8]
mov dword [rsp + 0x28], ebp
lea rax, str.Return_code__0x_x_
mov qword [rsp + 0x20], rax
mov edx, 0x28
lea r8d, [rdx - 0x27]
mov rcx, rbx
call fcn.1400144a0
lea r9, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 8
cmovae r9, qword [rsp + 0xb8]
lea rax, str.Function_end
mov qword [rsp + 0x20], rax
mov edx, 0x32
lea r8d, [rdx - 0x31]
mov rcx, rbx
call fcn.1400144a0
nop
cmp qword [rsp + 0xd0], 8
jb 0x140022e82
mov rcx, qword [rsp + 0xb8]
call fcn.140065920
mov eax, ebp
jmp 0x140022e84
mov eax, ebp
mov rcx, qword [rsp + 0xb60]
xor rcx, rsp
call fcn.140064b70
add rsp, 0xb78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret