Function at 0x40d4a0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x455973
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x33c
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
lea eax, [esp + 0x250]
push str.CheckForEndOfDeviceInstallationStep2_ENTRY_n
mov ebp, ecx
push eax
call fcn.0043a4a0
add esp, 0xc
mov ecx, 0x475b68
call fcn.0042f5e0
lea ecx, [esp + 0x24c]
push ecx
mov ecx, 0x475b68
call fcn.0042f820
mov eax, dword [0x471df4]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x354], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xd64]
mov byte [esp + 0x354], 3
cmp eax, esi
jne 0x40d52e
push str.Enum_
jmp 0x40d533
push str.SystemCurrentControlSetEnum_
lea ecx, [esp + 0x1c]
call fcn.0044a511
mov ecx, dword [ebp + 0x830]
mov eax, dword [ebp + 0x828]
cmp ecx, esi
jbe 0x40d748
mov dword [esp + 0x24], ecx
jmp 0x40d55a
mov eax, dword [esp + 0x34]
mov edx, dword [eax]
add eax, 8
push eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x40], edx
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x358], 4
call fcn.0044a4c1
lea ecx, [esp + 0x38]
mov byte [esp + 0x354], 3
call fcn.0044a3d4
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d735
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x48]
push 0x104
push ecx
push eax
push edx
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40d72a
lea edi, [ebp + 0x9a4]
lea eax, [esp + 0x48]
lea ecx, [esp + 0x2c]
push eax
call fcn.0044a442
mov esi, eax
push 0x46a404
lea ecx, [esp + 0x40]
mov byte [esp + 0x358], 5
call fcn.0044a442
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x44]
push ecx
push edx
mov byte [esp + 0x360], 6
call fcn.0044a5b7
push esi
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x35c], 7
push eax
call fcn.0044a5b7
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x358], 8
call fcn.0044a4c1
lea ecx, [esp + 0x28]
mov byte [esp + 0x354], 7
call fcn.0044a3d4
lea ecx, [esp + 0x40]
mov byte [esp + 0x354], 6
call fcn.0044a3d4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x354], 5
call fcn.0044a3d4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x354], 3
call fcn.0044a3d4
mov ecx, dword [esp + 0x10]
push 0
push ecx
mov ecx, edi
call fcn.00449d49
test eax, eax
je 0x40d6c0
lea edx, [esp + 0x48]
mov eax, ebx
push 0x104
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x40d5e3
jmp 0x40d72a
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
mov dword [esp + 0x24], 3
call fcn.0044a149
mov ecx, ebp
call fcn.0040d7e0
test eax, eax
je 0x40d72a
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.00449c44
mov edx, dword [ebp + 0x9c0]
mov ecx, dword [ebp + 0x97c]
inc edx
mov dword [esp + 0x1c], 1
mov eax, edx
mov dword [ebp + 0x9c0], edx
cmp eax, ecx
jae 0x40d722
mov ecx, dword [ebp + 0x9c8]
inc eax
cmp eax, ecx
mov dword [ebp + 0x9c0], eax
jb 0x40d72a
mov dword [esp + 0x1c], 2
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
jne 0x40d556
mov esi, dword [esp + 0x1c]
push esi
lea edx, [esp + 0x150]
push str.CheckForEndOfDeviceInstallationStep2_EXIT_:_dwRetVal___d_n
push edx
call fcn.0043a4a0
add esp, 0xc
lea eax, [esp + 0x14c]
mov ecx, 0x475b68
push eax
call fcn.0042f820
mov ecx, 0x475b68
call fcn.0042f5f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x354], 2
call fcn.0044a3d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x354], 1
call fcn.0044a3d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x354], 0
call fcn.0044a3d4
lea ecx, [esp + 0x18]
mov dword [esp + 0x354], 0xffffffff
call fcn.0044a3d4
mov ecx, dword [esp + 0x34c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x348
ret