Function at 0x42c8b0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x589fec
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61c948]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x5e8d68
call fcn.0040a190
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
push edx
call fcn.0042c210
xor ebp, ebp
mov dword [esp + 0x2c], ebp
mov dword [esi], vtable.CFGFilterRegistry.0
call fcn.0045881f
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x42c926
push 0x80004005
call fcn.0040a460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], ebp
lea edi, [esi + 8]
push 0x59b9b0
push edi
mov byte [esp + 0x34], 2
call fcn.00409f40
add esp, 8
test eax, eax
jne 0x42cd09
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.005608d0
xor esi, esi
mov dword [esp + 0x40], esi
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push str.CLSID_
push eax
mov byte [esp + 0x40], 4
call fcn.0040f160
mov eax, dword [eax]
add esp, 0x14
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebp
push eax
push SysReAllocString
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x42c9b6
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x38], esi
cmp eax, ebp
mov eax, dword [esp + 0x20]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42c9d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x42cad3
lea ecx, [esp + 0x18]
push ecx
push ebp
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push esi
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x42cac2
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x42ca13
cmp eax, 2
jne 0x42cac2
mov ebp, dword [esp + 0x18]
shr ebp, 1
mov dword [esp + 0x18], ebp
call fcn.0045881f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42ca37
push 0x80004005
call fcn.0040a460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x2c], 5
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebp
or eax, ecx
jge 0x42ca6b
push ebp
lea ecx, [esp + 0x18]
call fcn.0040a2d0
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edi
push 0
lea ecx, [esp + 0x44]
call fcn.00409e40
test eax, eax
jne 0x42ca9f
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
call fcn.0040a250
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x14]
add ecx, 0x18
push eax
call fcn.0040a4f0
lea eax, [edi - 0x10]
mov byte [esp + 0x2c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cac0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebp, ebp
cmp esi, ebp
je 0x42cad3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push str.CLSID083863F1_70DE_11d0_BD40_00A0C911CE86Instance_
push edx
call fcn.0040f160
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebp
push eax
push SysReAllocString
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x42cb22
xor eax, eax
cmp esi, ebp
je 0x42cb18
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x38], esi
cmp eax, ebp
mov eax, dword [esp + 0x20]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42cb45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x42ccb5
lea ecx, [esp + 0x14]
push ecx
push ebp
lea edx, [esp + 0x28]
push edx
push ebp
push str.FriendlyName
push esi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x42cc35
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x42cb83
cmp eax, 2
jne 0x42cc35
mov ebp, dword [esp + 0x14]
shr ebp, 1
mov dword [esp + 0x20], ebp
call fcn.0045881f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42cba7
push 0x80004005
call fcn.0040a460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x2c], 6
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebp
or eax, ecx
jge 0x42cbdb
push ebp
lea ecx, [esp + 0x18]
call fcn.0040a2d0
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edi
push str.FriendlyName
lea ecx, [esp + 0x44]
call fcn.00409e40
test eax, eax
jne 0x42cc12
mov edx, dword [esp + 0x20]
push edx
lea ecx, [esp + 0x18]
call fcn.0040a250
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x14]
add ecx, 0x18
push eax
call fcn.0040a4f0
lea eax, [edi - 0x10]
mov byte [esp + 0x2c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cc33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebp, ebp
lea ecx, [esp + 0x18]
push ecx
push ebp
lea edx, [esp + 0x28]
push edx
push ebp
push str.FilterData
push esi
mov dword [esp + 0x30], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x42cca8
cmp dword [esp + 0x20], 3
jne 0x42cca8
mov dword [esp + 0x20], ebp
mov byte [esp + 0x2c], 7
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
call fcn.0042db80
test al, al
mov edi, dword [esp + 0x20]
je 0x42cc9f
lea ecx, [esp + 0x38]
push ecx
lea eax, [esp + 0x1c]
mov ecx, edi
call fcn.0042de20
test eax, eax
jne 0x42cc9f
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
push edx
mov edx, edi
call fcn.0042cfa0
push edi
call fcn.0044ff63
add esp, 4
cmp esi, ebp
je 0x42ccb5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov eax, dword [esp + 0x3c]
cmp eax, 0x10000
jne 0x42ccc7
cmp dword [esp + 0x40], 0x20
je 0x42ccd5
mov ecx, dword [esp + 0x34]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x40]
mov dword [ecx + 0x24], eax
cmp esi, ebp
je 0x42cce0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x2c], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42cd05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x34]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10