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

Disassembly:
sub esp, 0x81c
mov eax, dword [str.DeviceNPF_]
mov ecx, dword [0x418858]
mov edx, dword [0x41885c]
push ebx
mov dword [esp + 0x120], eax
mov al, byte [0x418860]
push ebp
push esi
push edi
mov dword [esp + 0x130], ecx
mov byte [esp + 0x138], al
mov ecx, 0x7c
xor eax, eax
lea edi, [esp + 0x139]
mov dword [esp + 0x134], edx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
xor esi, esi
push ecx
push 0x20019
stosw word es:[edi], ax
push esi
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [esp + 0x34], esi
stosb byte es:[edi], al
call ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x407fc9
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x42c]
push 0x100
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x407fc2
mov eax, dword [esp + 0x18]
inc esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], esi
xor esi, esi
push ecx
push 0x20019
lea edx, [esp + 0x434]
push esi
push edx
push eax
call ebp
test eax, eax
jne 0x407f9d
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x62c]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push str.ComponentId
push eax
mov dword [esp + 0x34], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407eee
lea ecx, [esp + 0x62c]
push ecx
call fcn.00407190
add esp, 4
test al, al
je 0x407eee
mov esi, 8
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
push 0x418790
push eax
call ebp
test eax, eax
je 0x407f14
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x407f9b
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x32c]
push edx
push eax
push 0
push 0
push 0x418788
push ecx
mov dword [esp + 0x34], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407f8f
lea edi, [esp + 0x32c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 8
jb 0x407f9d
lea ecx, [esp + 0x334]
lea edx, [esp + 0x12c]
push ecx
push edx
push str._s_s
lea eax, [esp + 0x38]
push 0x100
push eax
call fcn.00406c10
lea ecx, [esp + 0x40]
push esi
push ecx
mov byte [esp + 0x147], 0
call fcn.00407310
add esp, 0x1c
mov edx, dword [esp + 0x14]
push edx
call ebx
mov eax, dword [esp + 0x10]
push eax
call ebx
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x42c]
push 0x100
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x407e81
mov eax, dword [esp + 0x18]
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesTcpipLinkage
push 0x80000002
call ebp
test eax, eax
jne 0x4080be
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
push eax
lea eax, [esp + 0x30]
push eax
push 0
push str.bind
push ecx
call esi
mov edx, dword [esp + 0x20]
add edx, 2
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
jne 0x408032
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x81c
ret
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ebp
push ecx
push 0
push str.bind
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call ebx
mov al, byte [ebp]
xor esi, esi
test al, al
je 0x4080a4
mov edi, ebp
lea ecx, [esi + ebp + 8]
lea edx, [esp + 0x12c]
push ecx
push edx
push str._s_s
lea eax, [esp + 0x38]
push 0x100
push eax
call fcn.00406c10
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
lea esi, [esi + ecx + 1]
lea ecx, [esp + 0x44]
push ecx
call fcn.00407310
mov al, byte [esi + ebp]
lea edi, [esi + ebp]
add esp, 0x1c
test al, al
jne 0x40805d
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x81c
ret