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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3c8]
sub rsp, 0x4a0
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140121ef0]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rsi, rcx
mov qword [rbp - 0x50], rcx
xor r15d, r15d
mov qword [rcx], r15
mov qword [rcx + 8], r15
call fcn.14005c770
mov qword [rsi], rax
mov qword [rsp + 0x50], r15
mov rax, qword [str.SOFTWARESiemensSWSPlugIns]
mov qword [rbp + 0x30], rax
mov rax, qword [0x1400e6280]
mov qword [rbp + 0x38], rax
mov rax, qword [0x1400e6288]
mov qword [rbp + 0x40], rax
mov rax, qword [0x1400e6290]
mov qword [rbp + 0x48], rax
mov rax, qword [0x1400e6298]
mov qword [rbp + 0x50], rax
mov rax, qword [0x1400e62a0]
mov qword [rbp + 0x58], rax
mov rax, qword [0x1400e62a8]
mov qword [rbp + 0x60], rax
movzx eax, word [0x1400e62b0]
mov word [rbp + 0x68], ax
mov r14d, r15d
mov dword [rsp + 0x4c], Ordinal_265
mov qword [rsp + 0x70], r15
lea rcx, [rbp - 0x68]
call sub.mfc110u.dll_Ordinal_2312
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005bdcc
lea ecx, [rax + 0x18]
call sub.mfc110u.dll_Ordinal_1480
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14005b95b
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, str.POST_INIT_PLUGIN
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x14005b95e
mov ecx, 0x8007000e
call fcn.1400bbc00
int3
mov rbx, r15
mov qword [rbp - 0x78], rbx
test rbx, rbx
jne 0x14005b972
mov ecx, 0x8007000e
call fcn.1400bbc00
nop
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call sub.mfc110u.dll_Ordinal_1480
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14005b9b4
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, str.LOADSUBPLUGINS
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x14005b9b7
mov ecx, 0x8007000e
call fcn.1400bbc00
int3
mov rbx, r15
mov qword [rbp - 0x70], rbx
test rbx, rbx
jne 0x14005b9cb
mov ecx, 0x8007000e
call fcn.1400bbc00
nop
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x4c]
lea r8, [rbp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x14005bdb3
mov r13d, 0x80000000
lea r12, vtable.CMyGUID.0
nop dword [rax]
xor edx, edx
lea rcx, [rbp - 8]
call fcn.1400ad2b0
nop
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.1400ad2b0
nop
mov qword [rsp + 0x40], r15
mov dword [rbp - 0x7c], Ordinal_265
mov dword [rbp - 0x80], 4
mov qword [rsp + 0x68], r15
inc r14d
mov dword [rsp + 0x4c], Ordinal_265
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x70]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x280]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.TypeID
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005bd33
cmp dword [rsp + 0x48], 1
jne 0x14005bd33
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.Priority
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005bae7
cmp dword [rsp + 0x48], 4
je 0x14005baef
mov dword [rsp + 0x60], 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp + 0x280]
lea rcx, [rbp - 0x40]
call fcn.1400ad310
lea rdx, [rbp]
lea rcx, [rbp + 0x70]
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
js 0x14005bd33
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [0x1400e5eb0]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [rbp]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x14005bcbd
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x14005bb59
mov r8, qword [rax]
jmp 0x14005bb5c
mov r8, r15
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x68]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor edx, edx
call qword [rax + 0x40]
mov ebx, eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [rbx + r13]
test r13d, ecx
jne 0x14005bc11
cmp ebx, 0x80004001
je 0x14005bc11
mov rcx, qword [0x140122018]
lea r8, [rbp + 0x70]
lea rdx, str.The_plugin__s_can_not_be_initialized_
mov rcx, qword [rcx + 0x1a8]
call fcn.14004c390
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
mov r9d, ebx
lea r8, [rbp + 0x70]
lea rdx, str.Plugin__s_Post_Init_failed_with_0x_.8X
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
mov rbx, qword [0x140122018]
lea rcx, [rsp + 0x78]
call qword [sym.imp.mfc110u.dll_Ordinal_1632]
mov r8, rax
mov edx, 2
lea rcx, [rbx + 0xc0]
call fcn.14006a5c0
nop
lea rcx, [rsp + 0x78]
jmp 0x14005bd2c
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.14005c0b0
mov rbx, rax
mov rdi, qword [rsp + 0x40]
cmp qword [rax + 0x38], rdi
je 0x14005bc4c
test rdi, rdi
je 0x14005bc39
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbx + 0x38]
mov qword [rbx + 0x38], rdi
test rcx, rcx
je 0x14005bc4c
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
lea rax, [rbp - 8]
cmp rbx, rax
je 0x14005bc75
mov eax, dword [rbp]
mov dword [rbx + 8], eax
mov eax, dword [rbp + 4]
mov dword [rbx + 0xc], eax
mov eax, dword [rbp + 8]
mov dword [rbx + 0x10], eax
mov eax, dword [rbp + 0xc]
mov dword [rbx + 0x14], eax
mov rcx, rbx
call fcn.1400ad380
mov eax, dword [rsp + 0x60]
mov dword [rbx + 0x40], eax
mov rax, qword [rbp - 0x70]
test rax, rax
je 0x14005bc8a
mov r8, qword [rax]
jmp 0x14005bc8d
mov r8, r15
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x68]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor edx, edx
call qword [rax + 0x40]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x14005bd33
mov rax, qword [0x140122018]
lea r8, [rbp + 0x70]
lea rdx, str.The_plugin__s_can_not_be_loaded_
mov rcx, qword [rax + 0x1a8]
call fcn.14004c390
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc110u.dll_Ordinal_296]
nop
mov r9d, ebx
lea r8, [rbp + 0x70]
lea rdx, str.Plugin__s_CoCreateInstance_failed_with_0x_.8X
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc110u.dll_Ordinal_4595]
mov rbx, qword [0x140122018]
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc110u.dll_Ordinal_1632]
mov r8, rax
mov edx, 2
lea rcx, [rbx + 0xc0]
call fcn.14006a5c0
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.mfc110u.dll_Ordinal_1027]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14005bd44
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov qword [rbp - 0x40], r12
cmp qword [rbp - 0x10], 8
jb 0x14005bd58
mov rcx, qword [rbp - 0x28]
call sub.mfc110u.dll_Ordinal_1482
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], r15
mov word [rbp - 0x28], r15w
mov qword [rbp - 8], r12
cmp qword [rbp + 0x28], 8
jb 0x14005bd7d
mov rcx, qword [rbp + 0x10]
call sub.mfc110u.dll_Ordinal_1482
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x4c]
lea r8, [rbp + 0x70]
mov edx, r14d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x14005ba10
lea r9, [0x140009450]
mov edx, 8
lea r8d, [rdx - 6]
lea rcx, [rbp - 0x78]
call fcn.1400bb640
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005bddd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 0x68]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rax, rsi
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400bb310
lea r11, [rsp + 0x4a0]
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