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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
push esi
mov dword [ebp - 0x32c], 0
mov eax, dword [str.DeviceKHCAP_]
mov dword [ebp - 0x730], eax
mov ecx, dword [0x4f4d1c]
mov dword [ebp - 0x72c], ecx
mov edx, dword [0x4f4d20]
mov dword [ebp - 0x728], edx
mov ax, word [0x4f4d24]
mov word [ebp - 0x724], ax
mov cl, byte [0x4f4d26]
mov byte [ebp - 0x722], cl
push 0x1f1
push 0
lea edx, [ebp - 0x721]
push edx
call fcn.0049fd30
add esp, 0xc
lea eax, [ebp - 0x734]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
je 0x483f98
jmp 0x4841b3
mov dword [ebp - 0x10c], 0
push 0x100
lea ecx, [ebp - 0x310]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x734]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x318], eax
cmp dword [ebp - 0x318], 0
jne 0x4841a6
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x314], 0
lea edx, [ebp - 0x324]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x310]
push eax
mov ecx, dword [ebp - 0x734]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
je 0x484021
jmp 0x483fa2
mov dword [ebp - 0x320], 0x200
lea edx, [ebp - 0x320]
push edx
lea eax, [ebp - 0x530]
push eax
push 0
push 0
push str.ComponentId
mov ecx, dword [ebp - 0x324]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
jne 0x48407e
lea edx, [ebp - 0x530]
push edx
call fcn.004827c0
add esp, 4
movzx eax, al
test eax, eax
je 0x48407e
mov dword [ebp - 0x314], 8
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push 0x4f4ddc
mov edx, dword [ebp - 0x324]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
je 0x4840bc
mov eax, dword [ebp - 0x324]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x483fa2
mov dword [ebp - 0x320], 0x100
lea ecx, [ebp - 0x320]
push ecx
lea edx, [ebp - 0x838]
push edx
push 0
push 0
push 0x4f4dec
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
je 0x484112
mov ecx, dword [ebp - 0x324]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x483fa2
lea eax, [ebp - 0x838]
push eax
call fcn.004a38a0
add esp, 4
mov esi, eax
push 0x4f4df4
call fcn.004a38a0
add esp, 4
cmp esi, eax
jb 0x48416b
push 0x4f4e00
call fcn.004a38a0
add esp, 4
lea ecx, [ebp + eax - 0x838]
push ecx
lea edx, [ebp - 0x730]
push edx
push 0x4f4e0c
push 0x100
lea eax, [ebp - 0x108]
push eax
call fcn.004826e0
add esp, 0x14
jmp 0x484170
jmp 0x483fa2
mov byte [ebp - 9], 0
mov ecx, dword [ebp - 0x314]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.00483010
add esp, 8
mov eax, dword [ebp - 0x324]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x483fa2
mov edx, dword [ebp - 0x734]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesTcpipLinkage
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0
jne 0x48432b
lea ecx, [ebp - 0x32c]
push ecx
push 0
lea edx, [ebp - 0x31c]
push edx
push 0
push 0x4f4e78
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x328], eax
mov ecx, dword [ebp - 0x32c]
add ecx, 2
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x83c], eax
cmp dword [ebp - 0x83c], 0
jne 0x484237
xor al, al
jmp 0x48432d
lea edx, [ebp - 0x32c]
push edx
mov eax, dword [ebp - 0x83c]
push eax
lea ecx, [ebp - 0x31c]
push ecx
push 0
push str.bind
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x328], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10c], 0
mov ecx, dword [ebp - 0x83c]
add ecx, dword [ebp - 0x10c]
movsx edx, byte [ecx]
test edx, edx
jne 0x48428c
jmp 0x484303
mov esi, dword [ebp - 0x83c]
add esi, dword [ebp - 0x10c]
push 0x4f4e88
call fcn.004a38a0
add esp, 4
add esi, eax
push esi
lea eax, [ebp - 0x730]
push eax
push str._s_s
push 0x100
lea ecx, [ebp - 0x108]
push ecx
call fcn.004826e0
add esp, 0x14
mov edx, dword [ebp - 0x83c]
add edx, dword [ebp - 0x10c]
push edx
call fcn.004a38a0
add esp, 4
mov ecx, dword [ebp - 0x10c]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x10c], edx
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.00483010
add esp, 8
jmp 0x484277
mov ecx, dword [ebp - 0x83c]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x83c]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret