Function at 0x403530
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x60
mov eax, dword [str.NTMPDriver]
mov ecx, dword [0x40ab70]
mov dx, word [0x40ab74]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
mov al, byte [0x40ab76]
push 0x1c
push 0x40
mov dword [esp + 0x20], ecx
mov word [esp + 0x24], dx
mov byte [esp + 0x26], al
mov dword [esp + 0x28], 0x5740b2fa
mov word [esp + 0x2c], 0x6888
mov word [esp + 0x2e], 0x445b
mov byte [esp + 0x30], 0x88
mov byte [esp + 0x31], 0x20
mov byte [esp + 0x32], 0x18
mov byte [esp + 0x33], 0x45
mov byte [esp + 0x34], 0xce
mov byte [esp + 0x35], 0xa7
mov byte [esp + 0x36], 0x17
mov byte [esp + 0x37], 0xb2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x403790
push 2
push 0
lea ecx, [esp + 0x28]
push 0
push ecx
mov dword [edi], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, dword [esp + 0x10]
mov ebx, eax
push edi
push 0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x403672
push 0x20019
push 2
push 0
push 1
push edi
push ebx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x403665
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
push edx
push eax
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
push esi
mov dword [esp + 0x28], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403665
lea edx, [esp + 0x30]
push edx
call fcn.00405ab0
add esp, 4
lea eax, [esp + 0x30]
push 0x40a6bc
push eax
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x40365b
lea ecx, [esp + 0x30]
push 0x40ab68
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
je 0x403665
push edi
push ebx
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
push edi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDeleteDeviceInfo]
jmp 0x4035d4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, 0xffffffff
je 0x403685
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1c
push 0x40
mov dword [esp + 0x28], 0xc8ebdfb0
mov word [esp + 0x2c], 0xb510
mov word [esp + 0x2e], 0x11d0
mov byte [esp + 0x30], pe_nt_image_headers32
mov byte [esp + 0x31], 0xe5
mov byte [esp + 0x32], 0
mov byte [esp + 0x33], 0xa0
mov byte [esp + 0x34], 0xc9
mov byte [esp + 0x35], 0x25
mov byte [esp + 0x36], 0x42
mov byte [esp + 0x37], 0xe3
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x403790
push 2
push 0
lea edx, [esp + 0x28]
push 0
push edx
mov dword [edi], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
push edi
push 0
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x40377d
push 0x20019
push 2
push 0
push 1
push edi
push ebx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x403770
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
push ecx
push 0
lea edx, [esp + 0x20]
push 0
push edx
push esi
mov dword [esp + 0x28], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403770
lea eax, [esp + 0x30]
push 0x40ab64
push eax
call fcn.00405a30
add esp, 8
test eax, eax
jne 0x403766
lea ecx, [esp + 0x30]
push 0x40ab60
push ecx
call fcn.00405a30
add esp, 8
test eax, eax
je 0x403770
push edi
push ebx
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
push edi
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDeleteDeviceInfo]
jmp 0x4036f0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, 0xffffffff
je 0x403790
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret