Function at 0x40bcb0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x53767a
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 dword [esp + 0x28], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24c], 0
mov dword [esp + 0x10], eax
push str.SOFTWAREClassesCLSID_
lea ecx, [esp + 0x28]
mov byte [esp + 0x250], 1
call fcn.00512952
push str.SOFTWAREClassesTypeLib_
lea ecx, [esp + 0x3c]
mov byte [esp + 0x250], 2
call fcn.00512952
push str.SOFTWAREClassesInterface_
lea ecx, [esp + 0x34]
mov byte [esp + 0x250], 3
call fcn.00512952
push str.SOFTWAREClassesAppID_
lea ecx, [esp + 0x38]
mov byte [esp + 0x250], 4
call fcn.00512952
push str.SOFTWAREClasses_
lea ecx, [esp + 0x30]
mov byte [esp + 0x250], 5
call fcn.00512952
mov ebp, dword [esp + 0x254]
lea eax, [esp + 0x24]
push ebp
lea ecx, [esp + 0x18]
mov bl, 6
push eax
push ecx
mov byte [esp + 0x258], bl
call fcn.00512b13
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 7
call fcn.00512a1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], bl
call fcn.005128e4
lea edx, [esp + 0x10]
push str.ProgID
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00512b79
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.005128e4
test edi, edi
jne 0x40beb2
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x44]
push edx
push eax
push edi
push edi
push edi
push ecx
mov dword [esp + 0x34], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bea7
cmp dword [esp + 0x1c], 1
jbe 0x40bea7
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.00512a6d
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00512b13
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 8
call fcn.00512a1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], bl
call fcn.005128e4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push 0xf003f
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40bea7
push str.HKEY_LOCAL_MACHINE_
push eax
lea ecx, [esp + 0x18]
call fcn.0050df1d
push edi
push 1
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00512659
mov ecx, dword [esp + 0x34]
call fcn.00407760
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x24]
push ebp
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00512b13
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 9
call fcn.00512a1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], bl
call fcn.005128e4
lea ecx, [esp + 0x10]
push str.VersionIndependentProgID
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00512b79
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.005128e4
test edi, edi
jne 0x40bff5
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x44]
push edx
push eax
push edi
push edi
push edi
push ecx
mov dword [esp + 0x34], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bfea
cmp dword [esp + 0x1c], 1
jbe 0x40bfea
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.00512a6d
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00512b13
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 0xa
call fcn.00512a1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], bl
call fcn.005128e4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push 0xf003f
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40bfea
push str.HKEY_LOCAL_MACHINE_
push eax
lea ecx, [esp + 0x18]
call fcn.0050df1d
push edi
push 1
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00512659
mov ecx, dword [esp + 0x34]
call fcn.00407760
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x24]
push ebp
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00512b13
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 0xb
call fcn.00512a1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], bl
call fcn.005128e4
lea ecx, [esp + 0x10]
push str.AppID
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00512b79
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.005128e4
test edi, edi
jne 0x40c138
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x44]
push edx
push eax
push edi
push edi
push edi
push ecx
mov dword [esp + 0x34], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c12d
cmp dword [esp + 0x1c], 1
jbe 0x40c12d
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.00512a6d
lea eax, [esp + 0x10]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00512b13
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 0xc
call fcn.00512a1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], bl
call fcn.005128e4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push 0xf003f
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40c12d
push str.HKEY_LOCAL_MACHINE_
push eax
lea ecx, [esp + 0x18]
call fcn.0050df1d
push edi
push 1
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00512659
mov ecx, dword [esp + 0x34]
call fcn.00407760
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x30]
push ebp
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00512b13
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x250], 0xd
call fcn.00512a1d
lea ecx, [esp + 0x14]
mov byte [esp + 0x24c], bl
call fcn.005128e4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40c1e5
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x44]
push eax
push ecx
push 0
push 0
push 0
push edx
mov dword [esp + 0x34], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c1da
push str.HKEY_LOCAL_MACHINE_
push eax
lea ecx, [esp + 0x18]
call fcn.0050df1d
push 0
push 1
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
call fcn.00512659
mov ecx, dword [esp + 0x34]
call fcn.00407760
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24c], 5
call fcn.005128e4
lea ecx, [esp + 0x34]
mov byte [esp + 0x24c], 4
call fcn.005128e4
lea ecx, [esp + 0x30]
mov byte [esp + 0x24c], 3
call fcn.005128e4
lea ecx, [esp + 0x38]
mov byte [esp + 0x24c], 2
call fcn.005128e4
lea ecx, [esp + 0x24]
mov byte [esp + 0x24c], 1
call fcn.005128e4
lea ecx, [esp + 0x10]
mov byte [esp + 0x24c], 0
call fcn.005128e4
lea ecx, [esp + 0x3c]
mov dword [esp + 0x24c], 0xffffffff
call fcn.005128e4
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x240
ret 4