Function at 0x411c8c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x411e73
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x20], 0
je 0x411e4b
lea eax, [ebp - 4]
mov edx, ebx
call sub.rtl250.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.00410654
test al, al
jne 0x411cee
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call sub.rtl250.bpl__System__UStrDelete_qqrr20System_UnicodeStringii
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.0041120c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x411e4b
xor eax, eax
push ebp
push 0x411e44
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call sub.rtl250.bpl__System_Win_Registry_TRegistry_SetCurrentKey_qqrp6HKEY__
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call sub.AxComponentsRTL.bpl__Axrtl_System_Win_Registry_TRegistry_GetKeyInfo_qqrr31System_Win_Registry_TRegKeyInfo
test al, al
je 0x411e1d
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call sub.rtl250.bpl__System__UStrFromPWCharLen_qqrr20System_UnicodeStringpbi
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x411d9e
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push ebx
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x411d98
mov eax, dword [ebp - 8]
call sub.rtl250.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov edx, eax
lea eax, [ebp - 0x3c]
call sub.rtl250.bpl__System__UStrFromPWChar_qqrr20System_UnicodeStringpb
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00411c8c
dec ebx
cmp ebx, 0xffffffff
jne 0x411d51
cmp dword [ebp - 0x30], 0
jle 0x411e1d
mov dl, 1
mov eax, dword [sym.imp.rtl250.bpl__System_Classes_TStringList_]
call sub.rtl250.bpl__System_Classes_TStringList__bctr_qqrv
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x411e16
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call sub.AxComponentsRTL.bpl__Axrtl_System_Win_Registry_TRegistry_GetValueNames_qqrp23System_Classes_TStrings
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x411e00
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x40]
mov edx, ebx
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 0x18]
mov edi, dword [eax]
call dword [edi + 0x48]
inc ebx
dec esi
jne 0x411dde
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411e1d
lea eax, [ebp - 0x1c]
call sub.rtl250.bpl__System_Sysutils_FreeAndNil_qqrpv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411e4b
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call sub.rtl250.bpl__System_Win_Registry_TRegistry_SetCurrentKey_qqrp6HKEY__
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x40]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411e7a
lea eax, [ebp - 0x40]
mov edx, 2
call sub.rtl250.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl250.bpl__System__UStrArrayClr_qqrpvi
ret