Function at 0x45cbc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x48794c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
mov dword [ebp - 0xf0], ecx
movzx eax, byte [ebp + 0xc]
mov dword [ebp - 0xd8], eax
push 0
lea ecx, [ebp - 0x14]
push ecx
push 0xa
lea edx, [ebp - 0xd8]
push edx
push 0xa
lea eax, [ebp - 0xd8]
push eax
push 0x220420
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0xcc], eax
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xcc], 0
je 0x45cc2a
cmp dword [ebp - 0x14], 0xa
ja 0x45cc31
mov dword [ebp - 0x14], 0x62
mov eax, dword [ebp - 0x14]
push eax
call fcn.0040e234
add esp, 4
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x18], edx
movzx eax, byte [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
push 0x220420
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jne 0x45ccac
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0xe0], edx
mov eax, dword [ebp - 0xe0]
push eax
call fcn.0040e26e
add esp, 4
jmp 0x45ce1d
mov ecx, dword [ebp - 0x18]
add ecx, 8
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0x12
push edx
call fcn.0045e1f0
add esp, 8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebp - 0xe4]
push ecx
call fcn.0040e26e
add esp, 4
mov ecx, 0x14
mov esi, str.SYSTEMCurrentControlSetControlClass_
lea edi, [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
push 0x56
push 0
lea edx, [ebp - 0x78]
push edx
call fcn.00440cf0
add esp, 0xc
mov eax, dword [ebp + 0x10]
add eax, 0x12
push eax
push 0x2c
lea ecx, [ebp - 0x7a]
push ecx
call fcn.0043f7e4
add esp, 0xc
lea edx, [ebp - 0x10]
push edx
push 0x20019
push 0
lea eax, [ebp - 0xc8]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
je 0x45cd42
jmp 0x45ce1d
mov dword [ebp - 8], 0x3c
mov dword [ebp - 4], 1
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0x6a
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x4744c0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0xea
jne 0x45ce13
mov edx, dword [ebp - 8]
push edx
call fcn.0040e234
add esp, 4
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.DriverDesc
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jne 0x45cdfb
push 0x34
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
add eax, 0x6a
push eax
call fcn.00445ff0
add esp, 0xc
push 0x4744f0
push 4
mov ecx, dword [ebp + 0x10]
add ecx, 0x9e
push ecx
call fcn.0043f7e4
add esp, 0xc
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0xec], edx
mov eax, dword [ebp - 0xec]
push eax
call fcn.0040e26e
add esp, 4
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0043ea11
mov esp, ebp
pop ebp
ret 0xc