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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bbe41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
cmp dword [ebp + 8], 0
je 0x10023d9e
mov eax, dword [ebp + 8]
push eax
call fcn.1004e37e
add esp, 4
test eax, eax
je 0x10023d9e
cmp dword [ebp + 0xc], 0
je 0x10023d9e
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1004e37e
add esp, 4
test eax, eax
je 0x10023d9e
cmp dword [ebp + 0x10], 0
je 0x10023d9e
cmp dword [ebp + 0x14], 0
jne 0x10023da5
xor eax, eax
jmp 0x10024301
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
call fcn.10003890
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
push str.SYSTEMCurrentControlSetControlClass_s
lea eax, [ebp - 0x28]
push eax
call fcn.10040920
add esp, 0xc
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
call fcn.10003890
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x28]
push ecx
push str._sProperties
lea edx, [ebp - 0x2c]
push edx
call fcn.10040920
add esp, 0xc
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0x20019
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.10003750
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10023f4b
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x34]
push ecx
push 0
lea edx, [ebp - 0x38]
push edx
push 0
push 0x100dd2d8
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10023f3a
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp + 0x14]
jne 0x10023f3a
cmp dword [ebp - 0x38], 3
jne 0x10023f3a
mov edx, dword [ebp - 0x34]
push edx
call fcn.1004e2e8
add esp, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x10023f3a
mov ecx, dword [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp - 0x3c]
push edx
call fcn.1004e290
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
push 0
push 0x100dd2ec
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10023f21
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp + 0x14]
jne 0x10023f14
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.1004f300
add esp, 0xc
test eax, eax
jne 0x10023f14
mov dword [ebp - 0x64], 1
jmp 0x10023f1b
mov dword [ebp - 0x64], 0
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.1004e2f6
add esp, 4
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x24], 0
je 0x10023f71
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1003d9a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1003d9a0
jmp 0x100242d0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.10003750
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10024008
mov ecx, 0x100f2400
call fcn.10022333
test eax, eax
je 0x10023fe8
lea ecx, [ebp - 0x40]
call fcn.1001a95a
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push str.CSetDeviceSDDL::SetDevSDDL_RegCreateKeyEx_Fail__subkey__s__err__lu_
push 0x100dd388
push 1
push 0x100f2404
call fcn.1002702e
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.1001a981
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1003d9a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1003d9a0
jmp 0x100242d0
mov eax, dword [ebp + 8]
push eax
call fcn.1004e37e
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 8]
push edx
push 1
push 0
push str.Class
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1002407c
mov ecx, 0x100f2400
call fcn.10022333
test eax, eax
je 0x1002407c
lea ecx, [ebp - 0x44]
call fcn.1001a95a
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
push ecx
push str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_Class_Fail__err__lu_
push 0x100dd420
push 1
push 0x100f2404
call fcn.1002702e
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.1001a981
mov edx, dword [0x100dd42c]
mov dword [ebp - 0x30], edx
push 4
lea eax, [ebp - 0x30]
push eax
push 1
push 0
push 0x100dd430
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100240ea
mov ecx, 0x100f2400
call fcn.10022333
test eax, eax
je 0x100240ea
lea ecx, [ebp - 0x48]
call fcn.1001a95a
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
push edx
push str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_NoDisplayClass_Fail__err__lu_
push 0x100dd4e0
push 1
push 0x100f2404
call fcn.1002702e
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.1001a981
push 4
lea eax, [ebp - 0x30]
push eax
push 1
push 0
push str.NoUseClass
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1002414f
mov ecx, 0x100f2400
call fcn.10022333
test eax, eax
je 0x1002414f
lea ecx, [ebp - 0x4c]
call fcn.1001a95a
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x14]
push edx
push str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_NoUseClass_Fail__err__lu_
push 0x100dd58c
push 1
push 0x100f2404
call fcn.1002702e
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.1001a981
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.Properties
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x100241dd
mov ecx, 0x100f2400
call fcn.10022333
test eax, eax
je 0x100241bd
lea ecx, [ebp - 0x50]
call fcn.1001a95a
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
push edx
push str.CSetDeviceSDDL::SetDevSDDL_RegCreateKeyEx_Fail__subkey_Properties__err__lu_
push 0x100dd648
push 1
push 0x100f2404
call fcn.1002702e
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.1001a981
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1003d9a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1003d9a0
jmp 0x100242d0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 3
push 0
push str.Security
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10024265
mov ecx, 0x100f2400
call fcn.10022333
test eax, eax
je 0x10024248
lea ecx, [ebp - 0x54]
call fcn.1001a95a
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_Security_Fail__ulSize__lu__err__lu_
push 0x100dd704
push 1
push 0x100f2404
call fcn.1002702e
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.1001a981
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1003d9a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1003d9a0
jmp 0x100242d0
mov dword [ebp - 0x10], 1
mov ecx, 0x100f2400
call fcn.10022333
test eax, eax
je 0x100242ab
lea ecx, [ebp - 0x58]
call fcn.1001a95a
mov byte [ebp - 4], 8
push str.CSetDeviceSDDL::SetDevSDDL_succeed_
push 0x100dd758
push 1
push 0x100f2404
call fcn.1002702e
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.1001a981
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1003d9a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1003d9a0
xor edx, edx
test edx, edx
jne 0x10023dc1
cmp dword [ebp - 0x1c], 0
je 0x100242e0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 0
je 0x100242f0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x18], 0
je 0x100242fe
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret