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

Disassembly:
push 0xffffffffffffffff
push 0x48e3b4
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x4b5930]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
mov eax, dword [0x4b5930]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x160]
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x18]
push ecx
push 0x20019
mov dword [esp + 0x15c], 0
mov edx, dword [esp + 0x164]
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x421d89
push eax
mov ecx, dword [esp + 0x1c]
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [esp + 0x10], 0
je 0x421d89
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x54]
push eax
push ecx
push edx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
mov dword [esp + 0x38], eax
jne 0x421d71
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
call fcn.0040aea0
push 0x49adb9
lea ecx, [esp + 0x20]
mov byte [esp + 0x158], 1
call fcn.0040aea0
push str.CLSID_
lea ecx, [esp + 0x40]
mov byte [esp + 0x158], 2
call fcn.0040aea0
lea ecx, [esp + 0x40]
push ecx
push eax
lea edx, [esp + 0x2c]
mov bl, 3
push edx
mov byte [esp + 0x160], bl
call fcn.00408f40
push str.InprocServer32
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0x16c], 4
call fcn.00408f40
mov eax, dword [eax]
add esp, 0x18
lea ecx, [esp + 0x28]
push ecx
push 0xf003f
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421bfd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x154], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421c24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x154], 2
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421c4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x421d21
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push ecx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x421d21
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x20]
call fcn.0040b150
mov esi, dword [esp + 0x30]
lea ebx, [esp + 0x20]
call fcn.0040e210
mov eax, dword [edi + 0x20]
push 0
push 0
push 0x1004
push eax
call ebp
push 0
push 0
push 0
push 0
push 0x49adb9
push eax
push 1
mov ecx, edi
call fcn.00458b9a
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 0x20]
push ecx
push 1
push 0
push 0
push 0x1004
push edx
call ebp
sub eax, 1
push eax
mov ecx, edi
call fcn.004587cc
mov eax, dword [edi + 0x20]
push 0
push 0
push 0x1004
push eax
call ebp
mov ecx, dword [edi + 0x20]
push 0
push 0
push 0x1004
push ecx
mov ebx, eax
call ebp
add ebx, 0xffffffff
push ebx
push 0
push 0
push 0
push 0
push 4
sub eax, 1
push 0
push eax
mov ecx, edi
call fcn.00458be6
mov byte [esp + 0x154], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421d49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x154], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421d71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x14], 1
cmp dword [esp + 0x38], 0
mov dword [esp + 0x10], 0x104
je 0x421b1d
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x154], 0xffffffff
mov eax, dword [esp + 0x15c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421dc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0046da06
add esp, 0x148
ret