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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x73
push 0
push 0
dec ecx
jne 0x444380
lea eax, [ebp - 0x360]
mov edx, dword [sym.imp.rtl170.bpl___xp_26System_Sysutils_TSearchRec]
call sub.rtl170.bpl__System__InitializeRecord_qqrpvt1
xor eax, eax
push ebp
push 0x444c2a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x444a81
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, 0x5e5794
mov ecx, 1
mov edx, dword [0x443024]
call sub.rtl170.bpl__System__DynArraySetLength_qqrv
add esp, 4
mov dword [0x5e5790], 0xffffffff
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x444c38
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x444495
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyW
test eax, eax
jne 0x44448c
mov eax, dword [ebp - 0x18]
dec eax
test eax, eax
jl 0x44448c
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call sub.rtl170.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call sub.rtl170.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call sub.rtl170.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
push ebp
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.00443da8
pop ecx
inc dword [ebp - 0x14]
dec dword [ebp - 0x20]
jne 0x444439
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x444c74
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x444586
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryInfoKeyW
test eax, eax
jne 0x444586
mov eax, dword [ebp - 0x18]
dec eax
test eax, eax
jl 0x444586
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call sub.rtl170.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
call sub.rtl170.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 0xc]
call sub.rtl170.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov edx, 0x444c94
mov ecx, 4
call sub.rtl170.bpl__System_Sysutils_AnsiStrLIComp_qqrpbt1ui
test eax, eax
je 0x444563
mov eax, dword [ebp - 0xc]
call sub.rtl170.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov edx, 0x444ca0
mov ecx, 4
call sub.rtl170.bpl__System_Sysutils_AnsiStrLIComp_qqrpbt1ui
test eax, eax
jne 0x44457a
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call sub.rtl170.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
push ebp
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00443da8
pop ecx
inc dword [ebp - 0x14]
dec dword [ebp - 0x20]
jne 0x4444f9
mov eax, dword [0x5e5794]
call sub.rtl170.bpl__System__DynArrayLength_qqrpxv
test eax, eax
jle 0x44459b
push ebp
call fcn.00444074
pop ecx
cmp dword [0x5e5760], 0
jne 0x444603
mov dword [ebp - 8], 0x64
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xea]
push eax
push 0
push 0
push 0x444cac
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x444603
lea eax, [ebp - 0x368]
lea edx, [ebp - 0xea]
mov ecx, 0x65
call sub.rtl170.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp - 0x368]
lea edx, [ebp - 0x364]
call sub.rtl170.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x364]
mov eax, 0x5e5760
call sub.rtl170.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
cmp dword [0x5e5760], 0
je 0x444691
lea edx, [ebp - 0x36c]
mov eax, dword [0x5e5760]
call sub.rtl170.bpl__System_Sysutils_ExtractFileDir_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x36c]
mov eax, 0x5e5788
call sub.rtl170.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x374]
push eax
mov eax, dword [0x5e5788]
call sub.rtl170.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, eax
sub edx, 3
mov ecx, 4
mov eax, dword [0x5e5788]
call sub.rtl170.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov eax, dword [ebp - 0x374]
lea edx, [ebp - 0x370]
call sub.rtl170.bpl__System_Sysutils_AnsiUpperCase_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x370]
mov edx, 0x444cc8
call sub.rtl170.bpl__System__UStrEqual_qqrv
jne 0x444691
mov eax, dword [0x5e5788]
call sub.rtl170.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, eax
sub edx, 4
mov eax, 0x5e5788
call sub.rtl170.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
cmp dword [0x5e5760], 0
jne 0x444a1f
cmp dword [0x5e578c], 0
jne 0x44475f
mov eax, dword [0x5e5794]
call sub.rtl170.bpl__System__DynArrayLength_qqrpxv
test eax, eax
jle 0x4446e1
cmp dword [0x5e5790], 0xffffffff
je 0x4446e1
mov eax, 0x5e5788
mov edx, dword [0x5e5790]
lea edx, [edx + edx*2]
mov ecx, dword [0x5e5794]
mov edx, dword [ecx + edx*4 + 8]
call sub.rtl170.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x4446eb
mov eax, 0x5e5788
call sub.rtl170.bpl__System__UStrClr_qqrpv
cmp dword [0x5e5788], 0
jne 0x44473e
mov dword [ebp - 8], 0x64
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xea]
push eax
push 0
push 0
push 0x444cd4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x44473e
mov eax, dword [ebp - 8]
mov word [ebp + eax*2 - 0xec], 0
mov eax, 0x5e5788
lea edx, [ebp - 0xea]
mov ecx, 0x65
call sub.rtl170.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
cmp dword [0x5e5788], 0
jne 0x4447ee
mov eax, 0x5e5760
mov edx, 0x444cf8
call sub.rtl170.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x4447ee
mov eax, dword [0x5e5794]
call sub.rtl170.bpl__System__DynArrayLength_qqrpxv
dec eax
test eax, eax
jl 0x4447c9
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*2]
mov edx, dword [0x5e5794]
mov eax, dword [edx + eax*4 + 4]
call sub.rtl170.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
mov eax, dword [0x5e578c]
call sub.rtl170.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov edx, eax
pop eax
call sub.rtl170.bpl__System_Sysutils_AnsiStrComp_qqrpbt1
test eax, eax
jne 0x4447c1
mov eax, 0x5e5788
mov edx, dword [ebp - 0x14]
lea edx, [edx + edx*2]
mov ecx, dword [0x5e5794]
mov edx, dword [ecx + edx*4 + 8]
call sub.rtl170.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x4447c9
inc dword [ebp - 0x14]
dec dword [ebp - 0x20]
jne 0x444779
cmp dword [0x5e5788], 0
jne 0x4447ee
mov eax, 0x5e5760
mov ecx, dword [0x5e578c]
mov edx, 0x444d14
call sub.rtl170.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
push ebp
call fcn.004442c8
pop ecx
cmp dword [0x5e5788], 0
je 0x444a1f
lea eax, [ebp - 0x10]
call sub.rtl170.bpl__System__UStrClr_qqrpv
mov eax, dword [0x5e5788]
call sub.rtl170.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, dword [0x5e5788]
cmp word [edx + eax*2 - 2], 0x5c
jne 0x444832
mov eax, dword [0x5e5788]
call sub.rtl170.bpl__System__UStrLen_qqrx20System_UnicodeString
mov edx, eax
dec edx
mov eax, 0x5e5788
call sub.rtl170.bpl__System__UStrSetLength_qqrr20System_UnicodeStringi
push dword [0x5e5788]
push 0x444d28
push 0x444cf8
lea eax, [ebp - 0x378]
mov edx, 3
call sub.rtl170.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 0x378]
lea ecx, [ebp - 0x360]
mov edx, 0x1ff
call sub.rtl170.bpl__System_Sysutils_FindFirst_qqrx20System_UnicodeStringir26System_Sysutils_TSearchRec
test eax, eax
jne 0x44489b
push dword [0x5e5788]
push 0x444d28
push 0x444cf8
mov eax, 0x5e5760
mov edx, 3
call sub.rtl170.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x360]
call sub.rtl170.bpl__System_Sysutils_FindClose_qqrr26System_Sysutils_TSearchRec
jmp 0x4449d6
push dword [0x5e5788]
push 0x444d40
push 0x444cf8
lea eax, [ebp - 0x37c]
mov edx, 3
call sub.rtl170.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 0x37c]
lea ecx, [ebp - 0x360]
mov edx, 0x1ff
call sub.rtl170.bpl__System_Sysutils_FindFirst_qqrx20System_UnicodeStringir26System_Sysutils_TSearchRec
test eax, eax
jne 0x444904
push dword [0x5e5788]
push 0x444d40
push 0x444cf8
mov eax, 0x5e5760
mov edx, 3
call sub.rtl170.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x360]
call sub.rtl170.bpl__System_Sysutils_FindClose_qqrr26System_Sysutils_TSearchRec
jmp 0x4449d6
push dword [0x5e5788]
push 0x444d28
push 0x444d50
lea eax, [ebp - 0x380]
mov edx, 3
call sub.rtl170.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 0x380]
lea ecx, [ebp - 0x360]
mov edx, 0x1ff
call sub.rtl170.bpl__System_Sysutils_FindFirst_qqrx20System_UnicodeStringir26System_Sysutils_TSearchRec
test eax, eax
jne 0x4449d6
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x384]
xor edx, edx
mov eax, dword [ebp - 0x34c]
call sub.rtl170.bpl__System_Sysutils_ChangeFileExt_qqrx20System_UnicodeStringt1
mov eax, dword [ebp - 0x384]
mov ecx, 6
mov edx, 4
call sub.rtl170.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x30
jb 0x4449b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x39
ja 0x4449b8
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call sub.rtl170.bpl__System__UStrCmp_qqrv
jbe 0x4449b8
push dword [0x5e5788]
push 0x444d28
push dword [ebp - 0x34c]
mov eax, 0x5e5760
mov edx, 3
call sub.rtl170.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call sub.rtl170.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x360]
call sub.rtl170.bpl__System_Sysutils_FindNext_qqrr26System_Sysutils_TSearchRec
test eax, eax
je 0x444942
lea eax, [ebp - 0x360]
call sub.rtl170.bpl__System_Sysutils_FindClose_qqrr26System_Sysutils_TSearchRec
cmp dword [0x5e5760], 0
jne 0x444a1f
cmp dword [0x5e578c], 0
jne 0x4449f9
mov eax, 0x5e5760
mov edx, 0x444cf8
call sub.rtl170.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x444a1f
push dword [0x5e5788]
push 0x444d28
push 0x444d70
mov eax, 0x5e5760
mov edx, 3
call sub.rtl170.bpl__System__UStrCatN_qqrv
push ebp
call fcn.004442c8
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xea]
push eax
push 0
push 0
push 0x444d78
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x444a59
mov edx, 0x444d84
lea eax, [ebp - 0xea]
mov ecx, 3
call sub.rtl170.bpl__System_Sysutils_StrLIComp_qqrpxbt1ui
test eax, eax
je 0x444a5d
xor eax, eax
jmp 0x444a5f
mov al, 1
mov byte [0x5e5784], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x444a88
cmp dword [ebp - 4], 0
je 0x444a80
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret