Function at 0x416060
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x538cee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
mov eax, dword [0x5ab980]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24c], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x258]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
mov eax, dword [eax]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0x260], 3
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x416125
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24c], 2
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 1
call fcn.005128e4
lea ecx, [esp + 0x24]
mov byte [esp + 0x24c], 0
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x24c], 0xffffffff
call fcn.005128e4
or eax, 0xffffffff
jmp 0x4163c9
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [esp + 0x44]
push 0x200
push edx
push 0
push eax
mov dword [esp + 0x38], 1
call ebx
test eax, eax
jne 0x416372
mov esi, dword [esp + 0x254]
mov ecx, dword [esp + 0x258]
push 0x5971e8
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.00512b79
lea ecx, [esp + 0x44]
lea edx, [esp + 0x30]
push ecx
push eax
push edx
mov byte [esp + 0x258], 4
call fcn.00512b79
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 5
call fcn.00512a1d
lea ecx, [esp + 0x30]
mov byte [esp + 0x24c], 4
call fcn.005128e4
lea ecx, [esp + 0x40]
mov byte [esp + 0x24c], 3
call fcn.005128e4
push 0
push 0
mov ecx, esi
call fcn.00459410
test eax, eax
jne 0x4163e4
lea ecx, [esp + 0x10]
call fcn.00512e18
push str.softwareclassesclsid
lea ecx, [esp + 0x14]
call fcn.0050e341
test eax, eax
jge 0x41634d
push str.softwareclasses_typelib
lea ecx, [esp + 0x14]
call fcn.0050e341
test eax, eax
jge 0x41634d
push str.softwareclassesinterface
lea ecx, [esp + 0x14]
call fcn.0050e341
test eax, eax
jge 0x41634d
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push esi
call fcn.00416510
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41634d
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x44]
push 0x200
push eax
push 0
push ecx
mov edi, 1
call ebx
test eax, eax
jne 0x416342
lea edx, [esp + 0x10]
push 0x5971e8
lea eax, [esp + 0x30]
push edx
push eax
call fcn.00512b79
lea ecx, [esp + 0x44]
lea edx, [esp + 0x38]
push ecx
push eax
push edx
mov byte [esp + 0x258], 6
call fcn.00512b79
push eax
push esi
mov ecx, ebp
mov byte [esp + 0x254], 7
call fcn.00416510
lea ecx, [esp + 0x38]
mov byte [esp + 0x24c], 6
call fcn.005128e4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24c], 3
call fcn.005128e4
lea eax, [esp + 0x10]
push 0x5971e8
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.00512b79
lea edx, [esp + 0x44]
mov byte [esp + 0x24c], 8
push edx
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00512b79
push eax
push esi
mov ecx, ebp
mov byte [esp + 0x254], 9
call fcn.00416060
lea ecx, [esp + 0x34]
mov byte [esp + 0x24c], 8
call fcn.005128e4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x24c], 3
call fcn.005128e4
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x44]
mov eax, edi
push 0x200
push ecx
push eax
push edx
inc edi
call ebx
test eax, eax
je 0x416267
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, ecx
inc ecx
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x44]
push 0x200
push ecx
push eax
push edx
call ebx
test eax, eax
je 0x416155
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24c], 2
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 1
call fcn.005128e4
lea ecx, [esp + 0x24]
mov byte [esp + 0x24c], 0
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x24c], 0xffffffff
call fcn.005128e4
mov eax, 1
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x240
ret 8
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24c], 2
call fcn.005128e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x24c], 1
call fcn.005128e4
lea ecx, [esp + 0x24]
mov byte [esp + 0x24c], 0
call fcn.005128e4
lea ecx, [esp + 0x10]
mov dword [esp + 0x24c], 0xffffffff
call fcn.005128e4
mov eax, 0xfffffc19
jmp 0x4163c9