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

Disassembly:
sub esp, 0xa28
mov eax, dword [0x423640]
xor eax, esp
mov dword [esp + 0xa24], eax
push ebx
push ebp
xor ebx, ebx
push esi
mov ebp, 0x423408
push edi
mov edi, ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebp
mov esi, dword [ebp]
mov dword [esp + 0x1c], ebx
mov ecx, esi
mov eax, str._RESOLVECLSID_
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407af0
test dl, dl
je 0x407aec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407af0
add eax, 2
add ecx, 2
test dl, dl
jne 0x407ad0
xor eax, eax
jmp 0x407af5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x407aff
mov dword [esp + 0x28], ebx
jmp 0x407b37
mov ecx, esi
mov eax, str._ALLVALUES_
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x407b26
test dl, dl
je 0x407b22
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x407b26
add eax, 2
add ecx, 2
test dl, dl
jne 0x407b06
xor eax, eax
jmp 0x407b2b
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
cmp eax, ebx
setne cl
inc ecx
mov dword [esp + 0x28], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x407db0
push 0x104
lea edx, [esp + 0x30]
push edx
push eax
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x407dae
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x407dae
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x407c54
lea ecx, [esp + 0x130]
push ecx
lea ecx, [esp + 0x30]
call fcn.00407380
add esp, 4
test eax, eax
jne 0x407d6f
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x534]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x421364
mov ebp, 0x400
push edx
mov dword [esp + 0x28], ebp
call esi
test eax, eax
jne 0x407c0f
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x534]
call fcn.00407380
add esp, 4
test eax, eax
jne 0x407d6f
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x534]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push str.CLSID
push ecx
mov dword [esp + 0x28], ebp
call esi
test eax, eax
jne 0x407d80
lea edx, [esp + 0x130]
push edx
lea ecx, [esp + 0x534]
call fcn.00407380
jmp 0x407d68
cmp eax, 1
jne 0x407d20
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x534]
push ecx
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
xor ebp, ebp
push ebp
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x944]
push ecx
push ebp
push edx
mov dword [esp + 0x30], 0x400
mov dword [esp + 0x40], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x407d80
jmp 0x407cb0
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x534]
call fcn.00407060
add esp, 4
test eax, eax
je 0x407cdc
push 1
lea esi, [esp + 0x134]
call fcn.00407460
add esp, 4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x534]
push edx
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x944]
push edx
inc ebp
push ebp
push eax
mov dword [esp + 0x30], 0x400
mov dword [esp + 0x40], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x407cb0
jmp 0x407d80
cmp eax, 2
jne 0x407d80
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebp]
lea edx, [esp + 0x534]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push 0
push ecx
push edx
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407d80
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x534]
call fcn.00407060
add esp, 4
test eax, eax
je 0x407d80
push 1
lea esi, [esp + 0x134]
call fcn.00407460
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
push 0x104
lea edx, [esp + 0x30]
push edx
inc ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ebp, dword [esp + 0x24]
test eax, eax
je 0x407b70
xor ebx, ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x407dbf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebp, 0xc
cmp ebp, 0x4235a0
mov dword [esp + 0x24], ebp
jl 0x407ac1
mov ecx, dword [esp + 0xa34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00409279
add esp, 0xa28
ret