Function at 0x5288f4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x6c
push 0
push 0
dec ecx
jne 0x5288fc
push ecx
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xbd]
mov ecx, 0x27
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, edx
lea eax, [ebp - 0xbd]
mov edx, dword [0x4136d4]
call sub.rtl120.bpl__System__AddRefRecord_qqrv
xor eax, eax
push ebp
push 0x528e13
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xbe], 0
mov byte [esi], 0
xor eax, eax
mov dword [ebp - 0xc4], eax
xor eax, eax
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0x110]
mov edx, 0x44
call fcn.00402518
lea eax, [ebp - 0x120]
mov edx, 0x10
call fcn.00402518
mov dword [ebp - 0x110], 0x44
mov dword [ebp - 0xe4], 1
mov word [ebp - 0xe0], 1
call fcn.0040ffe8
test al, al
je 0x5289c2
lea eax, [ebp - 0x32c]
call fcn.0040ccac
push dword [ebp - 0x32c]
push 0x528e34
push 0x528e58
lea eax, [ebp - 4]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
jmp 0x5289ea
lea eax, [ebp - 0x330]
call fcn.0040ccac
push dword [ebp - 0x330]
push 0x528e34
push 0x528e80
lea eax, [ebp - 4]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
cmp dword [ebp - 0x71], 1
jne 0x528a61
lea eax, [ebp - 0x18]
mov edx, 0x528ea8
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x5d]
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x99]
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [0x806ce8]
cmp dword [eax], 0
je 0x528adc
push 1
push 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x340], eax
mov byte [ebp - 0x33c], 0x11
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x338], eax
mov byte [ebp - 0x334], 0x11
lea ecx, [ebp - 0x340]
mov eax, dword [0x806ce8]
mov eax, dword [eax]
mov edx, 0x528ebc
call fcn.00518544
jmp 0x528adc
lea eax, [ebp - 0x18]
mov edx, 0x528f0c
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x45]
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x4d]
call sub.rtl120.bpl__Sysutils_ExtractFileName_qqrx20System_UnicodeString
cmp dword [ebp - 8], 0
jne 0x528a97
lea eax, [ebp - 8]
mov edx, 0x528f20
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [0x806ce8]
cmp dword [eax], 0
je 0x528adc
push 1
push 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x340], eax
mov byte [ebp - 0x33c], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x338], eax
mov byte [ebp - 0x334], 0x11
lea ecx, [ebp - 0x340]
mov eax, dword [0x806ce8]
mov eax, dword [eax]
mov edx, 0x528f38
call fcn.00518544
mov eax, dword [0x806a14]
movzx eax, byte [eax]
mov byte [ebp - 0xc9], al
mov eax, dword [0x806a14]
mov byte [eax], 0x13
xor edx, edx
push ebp
push 0x528dc2
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
push ebp
push 0x528ca4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x71], 1
jne 0x528b6f
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x360], eax
mov byte [ebp - 0x35c], 0x11
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x358], eax
mov byte [ebp - 0x354], 0x11
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x350], eax
mov byte [ebp - 0x34c], 0x11
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x348], eax
mov byte [ebp - 0x344], 0x11
lea edx, [ebp - 0x360]
mov ecx, 3
mov eax, 0x528f88
call fcn.00411984
jmp 0x528bc8
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x360], eax
mov byte [ebp - 0x35c], 0x11
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x358], eax
mov byte [ebp - 0x354], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x350], eax
mov byte [ebp - 0x34c], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x348], eax
mov byte [ebp - 0x344], 0x11
lea edx, [ebp - 0x360]
mov ecx, 3
mov eax, 0x528fb4
call fcn.00411984
lea eax, [ebp - 0x328]
mov edx, 0x208
call fcn.00402518
lea eax, [ebp - 0x328]
mov ecx, 0x104
mov edx, dword [ebp - 0x1c]
call sub.rtl120.bpl__Sysutils_StrPLCopy_qqrpbx20System_UnicodeStringui
lea eax, [ebp - 0x20]
call fcn.0040ccac
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x20]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x328]
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x528c43
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0xc8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x528dcc
push 0xa
mov eax, dword [ebp - 0x120]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov ebx, eax
cmp ebx, 0x102
jne 0x528c69
mov eax, dword [sym.imp.vcl120.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl120.bpl__Forms_TApplication_ProcessMessages_qqrv
jmp 0x528c43
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0x120]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test byte [ebp - 0xc1], 0x10
sete byte [ebp - 0xbe]
test dword [ebp - 0xc4], 0x1000000
seta byte [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x528d3b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x528dcc
mov eax, dword [0x806ce8]
cmp dword [eax], 0
je 0x528d93
push 1
push 0
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x340], eax
mov byte [ebp - 0x33c], 0
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x338], eax
mov byte [ebp - 0x334], 0
lea ecx, [ebp - 0x340]
mov eax, dword [0x806ce8]
mov eax, dword [eax]
mov edx, 0x529034
call fcn.00518544
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x528da3
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x528db3
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x806a14]
movzx edx, byte [ebp - 0xc9]
mov byte [eax], dl
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x528e1a
lea eax, [ebp - 0x364]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x330]
mov edx, 2
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0xbd]
mov edx, dword [0x4136d4]
call sub.rtl120.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 0x20]
mov edx, 8
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret