Function at 0x407950
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42bbab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x320
mov eax, dword [0x437cd4]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x344]
mov ecx, 6
xor eax, eax
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionPCI_Multi_Io_Controller_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x54]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00407680
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
push 0xf003f
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x407ac6
mov ebp, dword [esp + 0x344]
mov ebx, dword [esp + 0x340]
mov esi, 1
mov dword [esp + 0x10], esi
push esi
lea eax, [esp + 0x12c]
push str.VID_PID_NAME_d
push eax
call fcn.004111ef
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x22c]
lea eax, [esp + 0x20]
push ecx
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x134]
push 0
push ecx
push edx
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407aa8
cmp dword [esp + 0x14], 4
jbe 0x407aa8
lea edi, [esp + 0x22c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
mov dword [ebp], ebx
add ebx, 0x104
add ebp, 4
inc esi
cmp esi, 6
mov dword [esp + 0x10], esi
jb 0x407a24
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407c62
cmp eax, 2
je 0x407af2
push 0
lea edx, [esp + 0x14]
push 0
push edx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionPCI_Multi_Io_Controller_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [ebx + 0x54]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00407680
add esp, 4
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
push 0xf003f
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x407c29
mov ebp, dword [esp + 0x344]
mov ebx, dword [esp + 0x340]
mov esi, 1
mov dword [esp + 0x14], esi
push esi
lea eax, [esp + 0x230]
push str.VID_PID_NAME_d
push eax
call fcn.004111ef
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x128]
lea eax, [esp + 0x20]
push ecx
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x238]
push 0
push ecx
push edx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407c0e
cmp dword [esp + 0x10], 4
jbe 0x407c0e
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov dword [ebp], ebx
add ebx, 0x104
add ebp, 4
inc esi
cmp esi, 6
mov dword [esp + 0x14], esi
jb 0x407b8a
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407c62
cmp eax, 2
je 0x407c55
push 0
lea edx, [esp + 0x14]
push 0
push edx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x344]
mov dword [ecx], str.VEN_9710DEV_9865
lea ecx, [esp + 0x1c]
mov dword [esp + 0x338], 0xffffffff
call fcn.0041feb3
mov ecx, dword [esp + 0x330]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x32c
ret 8