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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6014bb70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x33c
mov eax, dword [0x6015b6f8]
push ebx
push esi
push edi
mov ecx, 0x6015b6f8
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov edi, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x18]
push str.HKEY_CLASSES_ROOTCLSID_s
push ecx
mov byte [ebp - 4], 1
call fcn.6010a8e0
mov esi, dword [ebp - 0x18]
add esp, 0xc
lea edx, [ebp - 0x1c]
push edx
push esi
call fcn.6011c190
test eax, eax
je 0x60142f0b
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x60142f0b
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push 2
push esi
mov ecx, ebx
call dword [eax + 4]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x601427f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push edi
lea ecx, [ebp - 0x1c]
push str.HKEY_CLASSES_ROOTCLSID_sProgID
push ecx
mov byte [ebp - 4], 2
call fcn.6010a8e0
mov edx, dword [0x6015b6f8]
add esp, 0xc
mov ecx, 0x6015b6f8
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x34]
push ecx
push esi
mov byte [ebp - 4], 3
call fcn.6011be20
test eax, eax
jl 0x601428eb
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x18]
push eax
push 0x2001f
push 0
push ecx
push edx
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x60142b12
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x140]
push ecx
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], 0x104
call fcn.6010c5d0
test eax, eax
jne 0x601428e0
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x1c]
push str.HKEY_CLASSES_ROOT_s
push ecx
call fcn.6010a8e0
mov esi, dword [ebp - 0x1c]
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
push esi
call fcn.6011c190
test eax, eax
je 0x601428e0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x601428e0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebx]
push ecx
push 2
push esi
mov ecx, ebx
call dword [eax + 4]
test edi, edi
je 0x601428eb
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x6014290c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x6014292a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x1c]
push str.HKEY_CLASSES_ROOTCLSID_sVersionIndependentProgID
mov bl, 5
push edx
mov byte [ebp - 4], bl
call fcn.6010a8e0
mov eax, dword [0x6015b6f8]
add esp, 0xc
mov ecx, 0x6015b6f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x20]
push edx
push edi
mov byte [ebp - 4], 6
call fcn.6011be20
test eax, eax
jl 0x60142a43
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
push 0x2001f
push 0
push ecx
push edx
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x60142b2e
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x34]
push edx
push 0
push 0
push esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x60142a38
mov eax, dword [ebp - 0x34]
cmp eax, 1
je 0x601429eb
cmp eax, 2
jne 0x60142a38
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp + eax - 0x141]
test cl, cl
jne 0x60142a38
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x1c]
push str.HKEY_CLASSES_ROOT_s
push ecx
call fcn.6010a8e0
mov edi, dword [ebp - 0x1c]
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
push edi
call fcn.6011c190
test eax, eax
je 0x60142a38
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x60142a38
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
push edx
push 2
push edi
call dword [eax + 4]
test esi, esi
je 0x60142a43
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60142a63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60142a81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov edx, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
mov byte [ebp - 4], 8
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push str.HKEY_CLASSES_ROOTCLSID_sTypeLib
mov bl, 9
push ecx
mov byte [ebp - 4], bl
call fcn.6010a8e0
mov edx, dword [0x6015b6f8]
add esp, 0xc
mov ecx, 0x6015b6f8
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
push ecx
push edi
mov byte [ebp - 4], 0xa
call fcn.6011be20
test eax, eax
jge 0x60142b84
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x60142c7a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x60142902
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60142b4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60142b6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
lea eax, [ebp + 8]
push eax
push 0x2001f
push 0
push ecx
push edx
mov byte [ebp - 4], 0xb
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x60142c64
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
push 0
push esi
mov dword [ebp - 0x30], esi
mov dword [ebp + 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x60142c59
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x60142be8
cmp eax, 2
jne 0x60142c59
mov eax, dword [ebp + 8]
mov cl, byte [ebp + eax - 0x141]
test cl, cl
jne 0x60142c59
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x18]
push str.HKEY_CLASSES_ROOTTypeLib_s
push ecx
call fcn.6010a8e0
mov edi, dword [ebp - 0x18]
add esp, 0xc
lea edx, [ebp - 0x34]
push edx
push edi
call fcn.6011c190
test eax, eax
je 0x60142c59
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x60142c59
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
push edx
push 2
push edi
call dword [eax + 4]
lea eax, [ebp - 0x140]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x60142c40
sub eax, edx
push eax
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x1c]
call fcn.60104370
test esi, esi
je 0x60142c64
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60142c84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60142ca2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 0x14]
test eax, eax
mov eax, dword [ebp - 0x1c]
je 0x60142ed8
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x60142ed8
mov eax, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp + 0x14]
push str.HKEY_CLASSES_ROOTTypeLib_s
push edx
mov byte [ebp - 4], 0xc
call fcn.6010a8e0
mov eax, dword [0x6015b6f8]
add esp, 0xc
mov ecx, 0x6015b6f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov esi, dword [ebp + 0x14]
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x3c]
push edx
push esi
mov byte [ebp - 4], 0xd
call fcn.6011be20
test eax, eax
jge 0x60142d3c
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60142d34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
jmp 0x60142eba
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x18]
push eax
push 0x2001f
push 0
push ecx
push edx
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x60142d13
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov dword [ebp - 0x2c], 0x104
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x348]
push edx
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x60142e88
mov eax, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x348]
push ecx
push edx
lea eax, [ebp - 0x18]
push 0x60150540
push eax
mov byte [ebp - 4], 0xf
call fcn.6010a8e0
add esp, 0x10
xor esi, esi
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
push 0x2001f
push esi
push edi
push SysReAllocStringLen
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x60142e4e
mov esi, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x30]
push ecx
push 0
push 0
push esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x60142e4e
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x60142e2c
cmp eax, 2
jne 0x60142e4e
mov edx, dword [ebp - 0x28]
mov al, byte [ebp + edx - 0x245]
test al, al
jne 0x60142e4e
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x244]
push edx
call fcn.601424f0
inc ebx
test esi, esi
mov dword [ebp - 0x2c], 0x104
je 0x60142e61
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60142d73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x60142d73
test esi, esi
je 0x60142e93
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60142eb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60142ed5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x60142ef6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esi - 0x10]
jmp 0x60142b51