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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c9eae
mov eax, dword fs:[0]
push eax
mov eax, 0x1060
call fcn.0055b970
mov eax, dword [0x6385e0]
xor eax, ebp
mov dword [ebp - 0x34], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1068], ecx
mov dword [ebp - 0x28], str.4d36e967_e325_11ce_bfc1_08002be10318
mov dword [ebp - 0x24], str.4d36e96a_e325_11ce_bfc1_08002be10318
mov dword [ebp - 0x20], str.4d36e97b_e325_11ce_bfc1_08002be10318
mov byte [ebp - 0x19], 0
push 7
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408420
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00404b70
test eax, eax
jle 0x42e06f
lea ecx, [ebp - 0x2c]
push ecx
push str.SYSTEMCurrentControlSetControlCriticalDeviceDatabase
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x42e06f
mov dword [ebp - 0x838], 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x838]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x838]
jae 0x42e065
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x106c], edx
push 0x400
lea eax, [ebp - 0x834]
push eax
mov ecx, dword [ebp - 0x106c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
test eax, eax
jne 0x42e060
lea edx, [ebp - 0x83c]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x834]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42e060
mov dword [ebp - 0x840], 0x800
lea edx, [ebp - 0x840]
push edx
lea eax, [ebp - 0x1044]
push eax
push 0
push 0
push str.Service
mov ecx, dword [ebp - 0x83c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42e053
lea edx, [ebp - 0x1044]
push edx
lea ecx, [ebp - 0x1050]
call fcn.004b3550
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1050]
call fcn.004b4c70
movzx ecx, al
test ecx, ecx
je 0x42e044
mov dword [ebp - 0x840], 0x800
lea edx, [ebp - 0x840]
push edx
lea eax, [ebp - 0x1044]
push eax
push 0
push 0
push str.ClassGUID
mov ecx, dword [ebp - 0x83c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42e044
lea edx, [ebp - 0x1044]
push edx
lea ecx, [ebp - 0x105c]
call fcn.004b3550
mov byte [ebp - 4], 2
mov dword [ebp - 0x1060], 0
jmp 0x42dfdf
mov eax, dword [ebp - 0x1060]
add eax, 1
mov dword [ebp - 0x1060], eax
cmp dword [ebp - 0x1060], 3
jae 0x42e00d
push 0
mov ecx, dword [ebp - 0x1060]
mov edx, dword [ebp + ecx*4 - 0x28]
push edx
lea ecx, [ebp - 0x105c]
call fcn.004b4b20
movzx eax, al
test eax, eax
je 0x42e00b
mov byte [ebp - 0x19], 1
jmp 0x42dfd0
movzx ecx, byte [ebp - 0x19]
test ecx, ecx
je 0x42e035
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x105c]
call fcn.004b3860
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1050]
call fcn.004b3860
jmp 0x42e065
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x105c]
call fcn.004b3860
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1050]
call fcn.004b3860
mov edx, dword [ebp - 0x83c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42dea5
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov cl, byte [ebp - 0x19]
mov byte [ebp - 0x1061], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004b3860
mov al, byte [ebp - 0x1061]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.0054d4f5
mov esp, ebp
pop ebp
ret 4