Function at 0x408e34
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdbc
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x240], edx
mov dword [ebp - 0x244], edx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x228], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409048
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 8]
call sub.RtlVcl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
push eax
push 0x409058
push 1
push 0
mov eax, dword [sym.imp.RtlVcl160.bpl__Winapi_Activex_CLSID_StdComponentCategoryMgr]
push eax
call sub.ole32.dll_CoCreateInstance
mov esi, eax
mov eax, esi
call sub.RtlVcl160.bpl__Winapi_Activex_Succeeded_qqrl
test al, al
je 0x408eff
lea eax, [ebp - 4]
call sub.RtlVcl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
push eax
push 0
push 0
mov eax, dword [sym.imp.PublicPkg160.bpl__Datasnap_Midconst_CATID_MIDASInterceptor]
push eax
push 1
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call sub.RtlVcl160.bpl__System_Win_Comobj_OleCheck_qqrl
jmp 0x408ee3
lea edx, [ebp - 0x228]
lea eax, [ebp - 0x24]
call sub.RtlVcl160.bpl__System_Win_Comobj_ClassIDToProgID_qqrrx5_GUID
mov edx, dword [ebp - 0x228]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x408ec8
jmp 0x409007
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push 0x409068
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409007
xor eax, eax
push ebp
push 0x409000
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
jmp 0x408fcb
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x238], eax
mov byte [ebp - 0x234], 0xa
lea edx, [ebp - 0x23c]
mov eax, dword [sym.imp.PublicPkg160.bpl__Datasnap_Midconst_CATID_MIDASInterceptor]
call sub.RtlVcl160.bpl__System_Win_Comobj_GUIDToString_qqrrx5_GUID
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x230], eax
mov byte [ebp - 0x22c], 0x11
lea edx, [ebp - 0x238]
mov ecx, 1
mov eax, 0x409080
call sub.RtlVcl160.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
lea eax, [ebp - 0x244]
lea edx, [ebp - 0x224]
mov ecx, pe_nt_image_headers32
call sub.RtlVcl160.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x238]
call sub.RtlVcl160.bpl__System_Win_Comobj_StringToGUID_qqrx20System_UnicodeString
lea eax, [ebp - 0x238]
lea edx, [ebp - 0x240]
call sub.RtlVcl160.bpl__System_Win_Comobj_ClassIDToProgID_qqrrx5_GUID
mov edx, dword [ebp - 0x240]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
push 0x200
lea eax, [ebp - 0x224]
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyW
test eax, eax
je 0x408f36
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409007
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40904f
lea eax, [ebp - 0x244]
mov edx, 3
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x228]
call sub.RtlVcl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0xc]
call sub.RtlVcl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 8]
call sub.RtlVcl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 4]
call sub.RtlVcl160.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
ret