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

Disassembly:
sub esp, 0x534
push ebx
push ebp
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x235]
mov byte [esp + 0x234], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x43d]
mov byte [esp + 0x43c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x131]
mov byte [esp + 0x130], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x339]
mov byte [esp + 0x338], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x54c]
mov ebp, 0x104
stosb byte es:[edi], al
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ebx
push eax
push 0xf003f
push ebx
push ecx
push 0x80000002
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401f54
lea edx, [esp + 0x24]
push esi
push edx
mov edx, dword [esp + 0x1c]
push ebx
push ebx
lea eax, [esp + 0x1c]
push ebx
lea ecx, [esp + 0x40]
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x401f3c
mov esi, dword [esp + 0x548]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push 0xf003f
lea ecx, [esp + 0x38]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401f01
lea eax, [esp + 0x28]
xor ebx, ebx
push eax
mov eax, dword [esp + 0x18]
push ebx
push ebx
lea ecx, [esp + 0x1c]
push ebx
lea edx, [esp + 0x144]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x401ef2
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
lea edx, [esp + 0x13c]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401eb7
lea ecx, [esp + 0x10]
lea edx, [esp + 0x238]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x2c]
push str.ClassGUID
push eax
mov dword [esp + 0x28], ebp
call edi
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x440]
push ecx
push edx
push 0
push 0
push str.Driver
push eax
mov dword [esp + 0x28], ebp
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x54c]
lea eax, [esp + 0x33c]
push edx
push esi
push str._s_s
push eax
call fcn.004038d2
lea ecx, [esp + 0x248]
push esi
push ecx
call fcn.00403930
add esp, 0x18
test eax, eax
jne 0x401eb7
lea edx, [esp + 0x33c]
lea eax, [esp + 0x440]
push edx
push eax
call fcn.00403930
add esp, 8
test eax, eax
je 0x401eea
lea ecx, [esp + 0x28]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x144]
inc ebx
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x401df9
jmp 0x401ef2
mov dword [esp + 0x24], 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x24]
cmp ebx, 1
je 0x401f3c
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
push 0
lea ecx, [esp + 0x40]
inc eax
push edx
mov edx, dword [esp + 0x2c]
push ecx
push eax
push edx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x40], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x401da6
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x534
ret
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x534
ret