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

Disassembly:
sub esp, 0x21c
mov eax, dword [ecx + 4]
push esi
test eax, eax
mov dword [esp + 8], ecx
je 0x404d2f
mov esi, str.SystemCurrentControlSetControlClass36FC9E60_C465_11CF_8056_444553540000
push esi
call fcn.00405dc0
jmp 0x404d33
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404eee
mov edx, dword [esp + 0xc]
push ebx
mov ebx, 0x104
push edi
lea ecx, [esp + 0x124]
push ebx
push ecx
push eax
push edx
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x404ed9
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
xor esi, esi
push eax
push 0xf003f
lea ecx, [esp + 0x130]
push esi
push ecx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404eb8
lea eax, [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
push edx
push esi
push str.InfSection
push eax
mov dword [esp + 0x28], ebx
call ebp
test eax, eax
jne 0x404e25
cmp dword [esp + 0x10], 4
jbe 0x404e25
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00405d90
push 0xa
lea edx, [esp + 0x28]
push str.mosusbcomp
push edx
mov dword [esp + 0x1c], ebx
call fcn.00410430
add esp, 0xc
test eax, eax
jne 0x404e09
mov esi, 1
push 8
lea eax, [esp + 0x28]
push str.mosucomp
push eax
call fcn.00410430
add esp, 0xc
test eax, eax
je 0x404e7b
test esi, esi
jne 0x404e80
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push edx
push eax
push 0
push str.NTMPDriver
push ecx
mov dword [esp + 0x28], ebx
call ebp
test eax, eax
jne 0x404e80
cmp dword [esp + 0x10], 4
jbe 0x404e80
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
call fcn.00405d90
push 8
lea eax, [esp + 0x28]
push str.mosuport
push eax
mov dword [esp + 0x1c], ebx
call fcn.00410430
add esp, 0xc
test eax, eax
jne 0x404e80
mov esi, 1
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov dword [esp + 0x1c], 0
je 0x404eb8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x128]
push edx
push eax
call fcn.00405f20
test eax, eax
je 0x404eb8
sub edi, 2
jns 0x404eb8
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x128]
mov eax, edi
push ebx
push ecx
push eax
push edx
inc edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x404d83
pop ebp
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
add esp, 0x21c
ret
cmp eax, 2
je 0x404f37
push 0
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [0x43acf0]
test eax, eax
je 0x404f2c
mov edx, dword [esp + 8]
push 0x40
push str.Registry_Error
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
add esp, 0x21c
ret