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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x34140501
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
cmp dword [ebp + 8], 0
je 0x3408dc4e
mov eax, dword [ebp + 8]
push eax
call fcn.340bd4b7
add esp, 4
test eax, eax
je 0x3408dc4e
cmp dword [ebp + 0xc], 0
je 0x3408dc4e
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.340bd4b7
add esp, 4
test eax, eax
je 0x3408dc4e
cmp dword [ebp + 0x10], 0
je 0x3408dc4e
cmp dword [ebp + 0x14], 0
jne 0x3408dc55
xor eax, eax
jmp 0x3408e1b1
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.3400b090
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
push str.SYSTEMCurrentControlSetControlClass_s
lea eax, [ebp - 0x28]
push eax
call fcn.340aa2b0
add esp, 0xc
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x2c]
call fcn.3400b090
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x28]
push ecx
push str._sProperties
lea edx, [ebp - 0x2c]
push edx
call fcn.340aa2b0
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.340020c0
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 0x3408ddfb
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 0x3418c054
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 0x3408ddea
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp + 0x14]
jne 0x3408ddea
cmp dword [ebp - 0x38], 3
jne 0x3408ddea
mov edx, dword [ebp - 0x34]
push edx
call fcn.340bd438
add esp, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x3408ddea
mov ecx, dword [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp - 0x3c]
push edx
call fcn.340bd3e0
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 0x3418c068
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 0x3408ddd1
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp + 0x14]
jne 0x3408ddc4
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.340be550
add esp, 0xc
test eax, eax
jne 0x3408ddc4
mov dword [ebp - 0x64], 1
jmp 0x3408ddcb
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.340bd446
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 0x3408de21
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.340a7330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.340a7330
jmp 0x3408e180
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.340020c0
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 0x3408deb8
mov ecx, 0x341a3e58
call fcn.3408c1f3
test eax, eax
je 0x3408de98
lea ecx, [ebp - 0x40]
call fcn.340994ba
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 0x3418c104
push 1
push 0x341a3e5c
call fcn.34090e9e
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.340994e1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.340a7330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.340a7330
jmp 0x3408e180
mov eax, dword [ebp + 8]
push eax
call fcn.340bd4b7
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 0x3408df2c
mov ecx, 0x341a3e58
call fcn.3408c1f3
test eax, eax
je 0x3408df2c
lea ecx, [ebp - 0x44]
call fcn.340994ba
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
push ecx
push str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_Class_Fail__err__lu_
push 0x3418c19c
push 1
push 0x341a3e5c
call fcn.34090e9e
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.340994e1
mov edx, dword [0x3418c1a8]
mov dword [ebp - 0x30], edx
push 4
lea eax, [ebp - 0x30]
push eax
push 1
push 0
push 0x3418c1ac
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 0x3408df9a
mov ecx, 0x341a3e58
call fcn.3408c1f3
test eax, eax
je 0x3408df9a
lea ecx, [ebp - 0x48]
call fcn.340994ba
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
push edx
push str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_NoDisplayClass_Fail__err__lu_
push 0x3418c25c
push 1
push 0x341a3e5c
call fcn.34090e9e
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.340994e1
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 0x3408dfff
mov ecx, 0x341a3e58
call fcn.3408c1f3
test eax, eax
je 0x3408dfff
lea ecx, [ebp - 0x4c]
call fcn.340994ba
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x14]
push edx
push str.CSetDeviceSDDL::SetDevSDDL_RegSetValueExW_NoUseClass_Fail__err__lu_
push 0x3418c308
push 1
push 0x341a3e5c
call fcn.34090e9e
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.340994e1
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 0x3408e08d
mov ecx, 0x341a3e58
call fcn.3408c1f3
test eax, eax
je 0x3408e06d
lea ecx, [ebp - 0x50]
call fcn.340994ba
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x14]
push edx
push str.CSetDeviceSDDL::SetDevSDDL_RegCreateKeyEx_Fail__subkey_Properties__err__lu_
push 0x3418c3c4
push 1
push 0x341a3e5c
call fcn.34090e9e
add esp, 0x14
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.340994e1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.340a7330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.340a7330
jmp 0x3408e180
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 0x3408e115
mov ecx, 0x341a3e58
call fcn.3408c1f3
test eax, eax
je 0x3408e0f8
lea ecx, [ebp - 0x54]
call fcn.340994ba
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 0x3418c480
push 1
push 0x341a3e5c
call fcn.34090e9e
add esp, 0x18
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x54]
call fcn.340994e1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.340a7330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.340a7330
jmp 0x3408e180
mov dword [ebp - 0x10], 1
mov ecx, 0x341a3e58
call fcn.3408c1f3
test eax, eax
je 0x3408e15b
lea ecx, [ebp - 0x58]
call fcn.340994ba
mov byte [ebp - 4], 8
push str.CSetDeviceSDDL::SetDevSDDL_succeed_
push 0x3418c4d4
push 1
push 0x341a3e5c
call fcn.34090e9e
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.340994e1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.340a7330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.340a7330
xor edx, edx
test edx, edx
jne 0x3408dc71
cmp dword [ebp - 0x1c], 0
je 0x3408e190
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 0
je 0x3408e1a0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x18], 0
je 0x3408e1ae
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