Function at 0x43c590
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x10], 3
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], str.SystemCurrentControlSetControlGroupOrderList
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
neg ecx
sbb ecx, ecx
and ecx, 0x100
add ecx, 0xf003f
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x43c7ea
lea eax, [ebp - 8]
push eax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x49f2b0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 8]
push eax
call fcn.0047159e
add esp, 4
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x49f2c0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x43c7c6
cmp dword [ebp + 0x10], 0
je 0x43c6d1
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0047159e
add esp, 4
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x30], edx
push 4
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00476e50
add esp, 0xc
push 4
lea edx, [ebp + 8]
push edx
mov eax, dword [ebp - 0x28]
add eax, 4
push eax
call fcn.00476e50
add esp, 0xc
mov ecx, dword [ebp - 8]
sub ecx, 4
push ecx
mov edx, dword [ebp - 0x24]
add edx, 4
push edx
mov eax, dword [ebp - 0x28]
add eax, 8
push eax
call fcn.00476e50
add esp, 0xc
jmp 0x43c799
mov ecx, dword [ebp - 8]
sub ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0047159e
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
sub eax, 1
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 1
jmp 0x43c719
mov ecx, dword [ebp - 0x44]
add ecx, 1
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x3c]
ja 0x43c73f
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp + 8]
jne 0x43c73d
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x40], ecx
jmp 0x43c73f
jmp 0x43c710
push 4
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.00476e50
add esp, 0xc
mov ecx, dword [ebp - 0x40]
lea edx, [ecx*4 - 4]
push edx
mov eax, dword [ebp - 0x24]
add eax, 4
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 4
push ecx
call fcn.00476e50
add esp, 0xc
mov edx, dword [ebp - 0x3c]
sub edx, dword [ebp - 0x40]
shl edx, 2
push edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax*4 + 4]
push edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + eax*4]
push edx
call fcn.00476e50
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
push str.Filter
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x43c7c6
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.0047311d
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.0047311d
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc