Function at 0x430610
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49722b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.Enum
mov dword [ebp - 0x2c], ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x43069d
mov cl, byte [ebp + 0xb]
mov edi, str.Could_not_read_from_HKLMEnum
mov byte [ebp - 0x54], cl
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x50], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x4c], ebx
push ecx
push str.Could_not_read_from_HKLMEnum
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x48], ebx
call fcn.00431080
lea edx, [ebp - 0x54]
push 0x4a7550
push edx
call fcn.0043e2f7
xor ecx, ecx
mov dword [ebp - 0x14], 0x80
mov eax, ecx
inc ecx
push ebx
mov dword [ebp - 0x34], ecx
push ebx
push ebx
lea ecx, [ebp - 0x14]
push ebx
lea edx, [ebp - 0x184]
push ecx
push edx
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x430913
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push ecx
push 0x20019
lea edx, [ebp - 0x184]
push ebx
push edx
push eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x43072a
mov cl, byte [ebp + 0xb]
mov edi, str.Could_not_read_from_HKLMEnum_
mov byte [ebp - 0x44], cl
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x40], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x3c], ebx
push ecx
push str.Could_not_read_from_HKLMEnum_
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], ebx
call fcn.00431080
lea edx, [ebp - 0x44]
push 0x4a7550
push edx
call fcn.0043e2f7
mov esi, str.USBPORTS
lea eax, [ebp - 0x184]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x430759
cmp cl, bl
je 0x430755
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x430759
add eax, 2
add esi, 2
cmp cl, bl
jne 0x430735
xor eax, eax
jmp 0x43075e
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], 0x80
xor edi, edi
push ebx
push ebx
push ebx
lea edx, [ebp - 0x14]
push ebx
lea ecx, [ebp - 0x104]
mov eax, edi
push edx
mov edx, dword [ebp - 0x1c]
push ecx
push eax
push edx
inc edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4308fa
mov esi, str.PNP0500
lea eax, [ebp - 0x104]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4307c5
cmp cl, bl
je 0x4307c1
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4307c5
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4307a1
xor eax, eax
jmp 0x4307ca
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x43080b
mov esi, str.PNP0501
lea eax, [ebp - 0x104]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4307fd
cmp cl, bl
je 0x4307f9
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4307fd
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4307d9
xor eax, eax
jmp 0x430802
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x43080b
cmp dword [ebp - 0x24], ebx
je 0x430885
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push eax
push 0x20019
lea ecx, [ebp - 0x104]
push ebx
push ecx
push edx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x430867
mov al, byte [ebp + 0xb]
mov edi, str.Could_not_read_from_HKLMEnum_
mov byte [ebp - 0x64], al
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x60], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x5c], ebx
push ecx
push str.Could_not_read_from_HKLMEnum_
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x58], ebx
call fcn.00431080
lea ecx, [ebp - 0x64]
push 0x4a7550
push ecx
call fcn.0043e2f7
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
push edx
push eax
push ecx
mov ecx, dword [ebp - 0x2c]
call fcn.00430930
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0x80
jmp 0x430771
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x14], 0x80
jmp 0x4306a6
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4