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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1234cb81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
cmp dword [ebp + 8], 0
je 0x1229df3e
mov eax, dword [ebp + 8]
push eax
call fcn.122ca717
add esp, 4
test eax, eax
je 0x1229df3e
cmp dword [ebp + 0xc], 0
je 0x1229df3e
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.122ca717
add esp, 4
test eax, eax
je 0x1229df3e
cmp dword [ebp + 0x10], 0
je 0x1229df3e
cmp dword [ebp + 0x14], 0
jne 0x1229df45
xor eax, eax
jmp 0x1229e4a1
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.1221af20
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
push str.SYSTEMCurrentControlSetControlClass_s
lea eax, [ebp - 0x28]
push eax
call fcn.122b8cc0
add esp, 0xc
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
call fcn.1221af20
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x28]
push ecx
push str._sProperties
lea edx, [ebp - 0x2c]
push edx
call fcn.122b8cc0
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.12212010
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1229e0eb
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 0x1239829c
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 0x1229e0da
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp + 0x14]
jne 0x1229e0da
cmp dword [ebp - 0x38], 3
jne 0x1229e0da
mov edx, dword [ebp - 0x34]
push edx
call fcn.122ca698
add esp, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x1229e0da
mov ecx, dword [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp - 0x3c]
push edx
call fcn.122ca640
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 0x123982b0
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 0x1229e0c1
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp + 0x14]
jne 0x1229e0b4
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.122cb7b0
add esp, 0xc
test eax, eax
jne 0x1229e0b4
mov dword [ebp - 0x64], 1
jmp 0x1229e0bb
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.122ca6a6
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 0x1229e111
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.122b5d40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.122b5d40
jmp 0x1229e470
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.12212010
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x1229e1a8
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x1229e188
lea ecx, [ebp - 0x40]
call fcn.122a7faa
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 0x1239834c
push 1
push 0x123af974
call fcn.122a118e
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.122a7fd1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.122b5d40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.122b5d40
jmp 0x1229e470
mov eax, dword [ebp + 8]
push eax
call fcn.122ca717
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 0x1229e21c
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x1229e21c
lea ecx, [ebp - 0x44]
call fcn.122a7faa
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
push ecx
push str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_Class_Fail__err__lu_
push 0x123983e4
push 1
push 0x123af974
call fcn.122a118e
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.122a7fd1
mov edx, dword [0x123983f0]
mov dword [ebp - 0x30], edx
push 4
lea eax, [ebp - 0x30]
push eax
push 1
push 0
push 0x123983f4
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 0x1229e28a
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x1229e28a
lea ecx, [ebp - 0x48]
call fcn.122a7faa
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
push edx
push str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_NoDisplayClass_Fail__err__lu_
push 0x123984a4
push 1
push 0x123af974
call fcn.122a118e
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.122a7fd1
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 0x1229e2ef
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x1229e2ef
lea ecx, [ebp - 0x4c]
call fcn.122a7faa
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x14]
push edx
push str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_NoUseClass_Fail__err__lu_
push 0x12398550
push 1
push 0x123af974
call fcn.122a118e
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.122a7fd1
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 0x1229e37d
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x1229e35d
lea ecx, [ebp - 0x50]
call fcn.122a7faa
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
push edx
push str.CSetDeviceSDDL::SetDevSDDL_RegCreateKeyEx_Fail__subkey_Properties__err__lu_
push 0x1239860c
push 1
push 0x123af974
call fcn.122a118e
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.122a7fd1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.122b5d40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.122b5d40
jmp 0x1229e470
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 0x1229e405
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x1229e3e8
lea ecx, [ebp - 0x54]
call fcn.122a7faa
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 0x123986c8
push 1
push 0x123af974
call fcn.122a118e
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.122a7fd1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.122b5d40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.122b5d40
jmp 0x1229e470
mov dword [ebp - 0x10], 1
mov ecx, 0x123af970
call fcn.1229c4e3
test eax, eax
je 0x1229e44b
lea ecx, [ebp - 0x58]
call fcn.122a7faa
mov byte [ebp - 4], 8
push str.CSetDeviceSDDL::SetDevSDDL_succeed_
push 0x1239871c
push 1
push 0x123af974
call fcn.122a118e
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.122a7fd1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.122b5d40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.122b5d40
xor edx, edx
test edx, edx
jne 0x1229df61
cmp dword [ebp - 0x1c], 0
je 0x1229e480
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 0
je 0x1229e490
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x18], 0
je 0x1229e49e
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