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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b106
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x424010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xd4], edi
cmp dword [ebp + 8], 4
jne 0x4049dc
cmp dword [ebp + 0xc], 4
jne 0x4049dc
mov eax, 1
jmp 0x404e7d
push 0x94
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xbc], 0x9c
push 0
push eax
mov dword [ebp - 0xb8], 0
call fcn.00407e30
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0xbc]
add esp, 0xc
push eax
call esi
test eax, eax
jne 0x404a2c
lea eax, [ebp - 0xbc]
mov dword [ebp - 0xbc], 0x94
push eax
call esi
push str.setupapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov dword [ebp - 0xe0], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x404a7e
push 0x5c
push str.DrvInstPolicy.cpp
call fcn.00406f30
add esp, 8
test eax, eax
je 0x404a6b
push str.failed
push esi
inc eax
push 0xea
jmp 0x404abb
push str.failed
push 0
mov eax, str.DrvInstPolicy.cpp
push 0xea
jmp 0x404abb
push str.pSetupGetRealSystemTime
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xd8], eax
test eax, eax
jne 0x404ad0
push 0x5c
push str.DrvInstPolicy.cpp
call fcn.00406f30
add esp, 8
test eax, eax
je 0x404aaa
inc eax
jmp 0x404aaf
mov eax, str.DrvInstPolicy.cpp
push str.failed
push 0
push 0xf2
push eax
push str.RsupS
call fcn.00401490
add esp, 0x14
xor edi, edi
jmp 0x404e70
cmp dword [ebp + 8], 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x404c02
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], 0
push eax
push 3
push 0
push str.SoftwareMicrosoftDriver_Signing
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404b44
push 0x5c
push str.DrvInstPolicy.cpp
call fcn.00406f30
add esp, 8
test eax, eax
je 0x404b2e
push str.failed
push 0
inc eax
push 0x107
jmp 0x404be7
push str.failed
push 0
mov eax, str.DrvInstPolicy.cpp
push 0x107
jmp 0x404be7
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 4
push eax
add edi, 0x110
lea eax, [ebp - 0xc8]
push edi
push eax
push 0
push str.Policy
push dword [ebp - 0xc0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404ba7
push str.failed
push 0
push 0x110
push str.DrvInstPolicy.cpp
call fcn.00401680
add esp, 4
push eax
push str.RsupS
call fcn.00401490
add esp, 0x14
mov dword [edi], 1
push dword [ebp - 0xc4]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0xc8]
push 0
push str.Policy
push dword [ebp - 0xc0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x404bf5
push str.failed
push 0
push 0x118
push str.DrvInstPolicy.cpp
call fcn.00401680
add esp, 4
push eax
push str.RsupS
call fcn.00401490
add esp, 0x14
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x404c02
push eax
call ebx
cmp dword [ebp + 0xc], 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
je 0x404d60
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xc0], 0
push eax
lea eax, [ebp - 0xc0]
push eax
push 0
push 3
push 1
push 0
push 0
push str.SoftwareMicrosoftDriver_Signing
push 0x80000002
call edi
test eax, eax
je 0x404c7f
push 0x5c
push str.DrvInstPolicy.cpp
call fcn.00406f30
add esp, 8
test eax, eax
je 0x404c69
push str.failed
push 0
inc eax
push 0x12c
jmp 0x404d31
push str.failed
push 0
mov eax, str.DrvInstPolicy.cpp
push 0x12c
jmp 0x404d31
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xc4]
push ecx
add eax, 0x114
mov dword [ebp - 0xc4], 4
push eax
lea eax, [ebp - 0xc8]
push eax
push 0
push str.Policy
push dword [ebp - 0xc0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404cf1
push str.failed
push 0
push 0x135
push str.DrvInstPolicy.cpp
call fcn.00401680
add esp, 4
push eax
push str.RsupS
call fcn.00401490
mov eax, dword [ebp - 0xd4]
add esp, 0x14
mov dword [eax + 0x114], 1
push dword [ebp - 0xc4]
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0xc8]
push 0
push str.Policy
push dword [ebp - 0xc0]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x404d53
push str.failed
push 0
push 0x13d
push str.DrvInstPolicy.cpp
call fcn.00401680
add esp, 4
push eax
push str.RsupS
call fcn.00401490
mov eax, dword [ebp - 0xc0]
add esp, 0x14
test eax, eax
je 0x404d4c
push eax
call ebx
xor edi, edi
jmp 0x404e70
mov eax, dword [ebp - 0xc0]
test eax, eax
je 0x404d60
push eax
call ebx
mov dword [ebp - 0xcc], 0
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0xcc]
push eax
push 0
push 1
push 1
push 0
push 0
push str.SYSTEMWPAPnP
push 0x80000002
call edi
test eax, eax
je 0x404da7
push str.failed
push 0
push 0x154
jmp 0x404e46
lea eax, [ebp - 0xc4]
mov dword [ebp - 0xc4], 4
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xc8]
push eax
push 0
push str.seed
push dword [ebp - 0xcc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404e3a
cmp dword [ebp - 0xc4], 4
jne 0x404e3a
cmp dword [ebp - 0xc8], 4
jne 0x404e3a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp eax, edx
movzx ecx, al
movzx eax, word [ebp - 0xce]
movzx ebx, dl
mov word [ebp - 0x20], ax
cmova ebx, ecx
movzx eax, word [ebp - 0xd0]
and bl, 3
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x20]
shl bl, 2
push eax
mov byte [ebp - 0x1c], 4
mov byte [ebp - 0x11], bl
call dword [ebp - 0xd8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 1
jmp 0x404e63
push str.failed
push 0
push 0x15d
push str.DrvInstPolicy.cpp
call fcn.00401680
add esp, 4
push eax
push str.RsupS
call fcn.00401490
add esp, 0x14
xor edi, edi
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x404e70
push eax
call ebx
test esi, esi
je 0x404e7b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407810
mov esp, ebp
pop ebp
ret 8