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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469370
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x33c
mov eax, dword [0x47fe44]
mov edx, dword [eax + 0xc]
push ebx
push esi
push edi
mov ecx, 0x47fe44
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov edi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x18]
push str.HKEY_CLASSES_ROOTCLSID_s
push eax
mov byte [ebp - 4], 1
call fcn.0040ec1f
mov esi, dword [ebp - 0x18]
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
push esi
call fcn.0045f2e0
test eax, eax
je 0x464280
cmp dword [ebp - 0x1c], 0
jne 0x464280
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebx]
mov edx, dword [edx + 4]
push eax
push 2
push esi
mov ecx, ebx
call edx
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 0x463b4b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x47fe44]
mov eax, dword [edx + 0xc]
mov ecx, 0x47fe44
call eax
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.0040ec1f
mov edx, dword [0x47fe44]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x47fe44
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x34]
push edx
push esi
mov byte [ebp - 4], 3
call fcn.0045eeb0
test eax, eax
jl 0x463c41
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x18]
push ecx
push 0x2001f
push 0
push edx
push eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x463c41
mov edi, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x140]
push edx
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], 0x104
call fcn.004290b0
test eax, eax
jne 0x463c36
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x1c]
push str.HKEY_CLASSES_ROOT_s
push edx
call fcn.0040ec1f
mov esi, dword [ebp - 0x1c]
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0045f2e0
test eax, eax
je 0x463c36
cmp dword [ebp - 0x20], 0
jne 0x463c36
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov edx, dword [edx + 4]
push eax
push 2
push esi
mov ecx, ebx
call edx
test edi, edi
je 0x463c41
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463c64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463c84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x47fe44]
mov eax, dword [edx + 0xc]
mov ecx, 0x47fe44
call eax
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.0040ec1f
mov eax, dword [0x47fe44]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x47fe44
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
push ecx
push edi
mov byte [ebp - 4], 6
call fcn.0045eeb0
test eax, eax
jge 0x463cfd
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 0x463e0a
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push ecx
push 0x2001f
push 0
push edx
push eax
mov byte [ebp - 4], 7
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x463d78
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x140]
push edx
lea eax, [ebp - 0x34]
push eax
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 0x463de9
mov eax, dword [ebp - 0x34]
cmp eax, 1
je 0x463d65
cmp eax, 2
jne 0x463de9
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x463da2
cmp byte [ebp + eax - 0x141], 0
je 0x463da9
jmp 0x463de9
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 0x463d9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
jmp 0x464283
mov byte [ebp - 0x140], 0
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x1c]
push str.HKEY_CLASSES_ROOT_s
push edx
call fcn.0040ec1f
mov edi, dword [ebp - 0x1c]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.0045f2e0
test eax, eax
je 0x463de9
cmp dword [ebp - 0x24], 0
jne 0x463de9
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
push 2
push edi
call edx
test esi, esi
je 0x463df4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], bl
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463e16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x463e36
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x47fe44]
mov eax, dword [edx + 0xc]
mov ecx, 0x47fe44
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov edx, dword [0x47fe44]
mov eax, dword [edx + 0xc]
mov ecx, 0x47fe44
mov byte [ebp - 4], 8
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x18]
push str.HKEY_CLASSES_ROOTCLSID_sTypeLib
mov bl, 9
push edx
mov byte [ebp - 4], bl
call fcn.0040ec1f
mov eax, dword [0x47fe44]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x47fe44
call edx
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.0045eeb0
test eax, eax
jge 0x463ec9
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 0x463fd0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
lea ecx, [ebp + 8]
push ecx
push 0x2001f
push 0
push edx
push eax
mov byte [ebp - 4], 0xb
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x463fba
mov esi, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x140]
push edx
lea eax, [ebp - 0x20]
push eax
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 0x463faf
mov eax, dword [ebp - 0x20]
cmp eax, 1
je 0x463f31
cmp eax, 2
jne 0x463faf
mov eax, dword [ebp + 8]
test eax, eax
je 0x463f44
cmp byte [ebp + eax - 0x141], 0
je 0x463f4b
jmp 0x463faf
mov byte [ebp - 0x140], 0
lea ecx, [ebp - 0x140]
push ecx
lea edx, [ebp - 0x18]
push str.HKEY_CLASSES_ROOTTypeLib_s
push edx
call fcn.0040ec1f
mov edi, dword [ebp - 0x18]
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.0045f2e0
test eax, eax
je 0x463faf
cmp dword [ebp - 0x34], 0
jne 0x463faf
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
push 2
push edi
call edx
lea eax, [ebp - 0x140]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x463f94
sub eax, edx
push eax
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403cc5
test esi, esi
je 0x463fba
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 0x463fdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 8
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463ffc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp - 0x1c]
jne 0x46403a
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 0x464025
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
cmp dword [eax - 0xc], 0
je 0x464005
mov edx, dword [0x47fe44]
mov eax, dword [edx + 0xc]
mov ecx, 0x47fe44
call eax
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.0040ec1f
mov eax, dword [0x47fe44]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x47fe44
call edx
add eax, 0x10
mov dword [ebp + 8], eax
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push esi
mov byte [ebp - 4], 0xd
call fcn.0045eeb0
test eax, eax
jge 0x4640c8
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4640c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
jmp 0x46425b
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x18]
push ecx
push 0x2001f
push 0
push edx
push eax
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x46409d
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x24], ecx
xor ebx, ebx
mov dword [ebp - 0x2c], 0x104
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x348]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x464227
mov edx, dword [0x47fe44]
mov eax, dword [edx + 0xc]
mov ecx, 0x47fe44
call eax
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 str.TypeLib_s_s0win32
push eax
mov byte [ebp - 4], 0xf
call fcn.0040ec1f
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 0x4641e9
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 0x4641e9
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x4641bb
cmp eax, 2
jne 0x4641e9
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4641ce
cmp byte [ebp + eax - 0x245], 0
je 0x4641d5
jmp 0x4641e9
mov byte [ebp - 0x244], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x244]
push ecx
call fcn.00463840
add ebx, 1
test esi, esi
mov dword [ebp - 0x2c], 0x104
je 0x4641fe
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 0xe
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4640ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4640ff
test esi, esi
je 0x464232
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 0x464255
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 0x464278
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
jmp 0x464005
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 0x4642a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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