Function at 0x449268
Capabilities:
Create process on windows
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
push ebx
xor ebx, ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp - 0xc]
call sub.rtl160.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x449555
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dword [ebp - 0x1c], 0x104
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0x449564
push 0x80000000
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x44952a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x121]
push eax
push 0
push 0
push 0x449580
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x449521
mov eax, dword [ebp - 0x1c]
mov byte [ebp + eax - 0x121], 0
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x121]
mov ecx, 0x105
push 0
call sub.rtl160.bpl__System__LStrFromArray_qqrr27System__AnsiStringT_us_i0__pcius
push 0x104
lea eax, [ebp - 0x121]
push eax
mov eax, dword [ebp - 0x10]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x121]
mov ecx, 0x105
push 0
call sub.rtl160.bpl__System__LStrFromArray_qqrr27System__AnsiStringT_us_i0__pcius
cmp dword [ebp - 0x10], 0
je 0x449521
lea eax, [ebp - 0x17c]
push eax
mov cl, 0x25
mov edx, 0x535d3a
mov eax, dword [ebp - 8]
call fcn.00449138
mov edx, dword [ebp - 0x17c]
lea eax, [ebp - 8]
call sub.rtl160.bpl__System__LStrLAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
lea eax, [ebp - 0x180]
push eax
mov cl, 0x25
mov edx, 0x535d3a
mov eax, dword [ebp - 0xc]
call fcn.00449138
mov edx, dword [ebp - 0x180]
lea eax, [ebp - 0xc]
call sub.rtl160.bpl__System__LStrLAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
lea eax, [ebp - 4]
call fcn.00448070
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 0x10]
mov eax, 0x449590
call fcn.0040a688
test eax, eax
jle 0x4493dd
push 0
lea eax, [ebp - 4]
mov ecx, 0x4495a4
mov edx, 0x4495b4
call fcn.0040a144
push 0x4495c4
push dword [ebp - 4]
push 0x4495d8
push dword [ebp - 8]
push 0x4495f0
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
mov edx, 6
call sub.rtl160.bpl__System__LStrCatN_qqrv
push 0
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, 0x449604
call fcn.0040a144
test al, al
jne 0x44944f
mov eax, dword [ebp - 0x10]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x10]
cmp byte [edx + eax - 1], 0x20
je 0x449444
push dword [ebp - 0x10]
push 0x449614
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 3
call sub.rtl160.bpl__System__LStrCatN_qqrv
jmp 0x44944f
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call sub.rtl160.bpl__System__LStrCat_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x4494b3
mov eax, dword [ebp - 0x10]
call sub.rtl160.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
cmp eax, 0x7ffe
jle 0x4494b3
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x7ffd], 0x25
jne 0x449487
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 0x7ffd
call sub.rtl160.bpl__System__LStrSetLength_qqrr27System__AnsiStringT_us_i0__ius
jmp 0x4494b3
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x7ffc], 0x25
jne 0x4494a4
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 0x7ffc
call sub.rtl160.bpl__System__LStrSetLength_qqrr27System__AnsiStringT_us_i0__ius
jmp 0x4494b3
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 0x7ffe
call sub.rtl160.bpl__System__LStrSetLength_qqrr27System__AnsiStringT_us_i0__ius
lea eax, [ebp - 0x168]
mov edx, 0x44
call fcn.00403694
mov dword [ebp - 0x168], 0x44
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x168]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
call sub.rtl160.bpl__System__LStrToPChar_qqrx27System__AnsiStringT_us_i0__
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x449521
mov eax, dword [ebp - 0x174]
test eax, eax
je 0x449511
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x178]
test eax, eax
je 0x449521
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44955c
lea eax, [ebp - 0x180]
mov edx, 2
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x14]
mov edx, 5
call sub.rtl160.bpl__System__LStrArrayClr_qqrpvi
ret