Function at 0x529074
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcc4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x33c], ecx
mov dword [ebp - 0x320], ecx
mov dword [ebp - 0x31c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov esi, eax
lea edi, [ebp - 0xad]
mov ecx, 0x27
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, edx
lea eax, [ebp - 0xad]
mov edx, dword [0x4136d4]
call sub.rtl120.bpl__System__AddRefRecord_qqrv
xor eax, eax
push ebp
push 0x529479
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xae], 0
mov byte [esi], 0
xor eax, eax
mov dword [ebp - 0xb4], eax
xor eax, eax
mov dword [ebp - 0xb8], eax
call fcn.0040ffe8
test al, al
je 0x52911e
lea eax, [ebp - 0x31c]
call fcn.0040ccac
push dword [ebp - 0x31c]
push 0x52949c
push 0x5294c0
lea eax, [ebp - 4]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
jmp 0x529146
lea eax, [ebp - 0x320]
call fcn.0040ccac
push dword [ebp - 0x320]
push 0x52949c
push 0x5294e8
lea eax, [ebp - 4]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x100]
mov edx, 0x44
call fcn.00402518
lea eax, [ebp - 0x110]
mov edx, 0x10
call fcn.00402518
mov dword [ebp - 0x100], 0x44
mov dword [ebp - 0xd4], 1
mov word [ebp - 0xd0], 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x35]
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [0x806ce8]
cmp dword [eax], 0
je 0x5291c3
push 0
push 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x328], eax
mov byte [ebp - 0x324], 0x11
lea ecx, [ebp - 0x328]
mov eax, dword [0x806ce8]
mov eax, dword [eax]
mov edx, 0x529510
call fcn.00518544
mov eax, dword [0x806a14]
movzx eax, byte [eax]
mov byte [ebp - 0xb9], al
mov eax, dword [0x806a14]
mov byte [eax], 0x12
xor edx, edx
push ebp
push 0x529428
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
push ebp
push 0x52930a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x338], eax
mov byte [ebp - 0x334], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x330], eax
mov byte [ebp - 0x32c], 0x11
lea edx, [ebp - 0x338]
mov ecx, 1
mov eax, 0x529544
call fcn.00411984
lea eax, [ebp - 0x318]
mov edx, 0x208
call fcn.00402518
lea eax, [ebp - 0x318]
mov ecx, 0x104
mov edx, dword [ebp - 0xc]
call sub.rtl120.bpl__Sysutils_StrPLCopy_qqrpbx20System_UnicodeStringui
lea eax, [ebp - 0x10]
call fcn.0040ccac
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x100]
push eax
mov eax, dword [ebp - 0x10]
call sub.rtl120.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x318]
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x5292a9
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0xb8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call sub.rtl120.bpl__System__TryFinallyExit_qqrv
jmp 0x529432
push 0xa
mov eax, dword [ebp - 0x110]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov ebx, eax
cmp ebx, 0x102
jne 0x5292cf
mov eax, dword [sym.imp.vcl120.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl120.bpl__Forms_TApplication_ProcessMessages_qqrv
jmp 0x5292a9
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [ebp - 0x110]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test byte [ebp - 0xb1], 0x10
sete byte [ebp - 0xae]
test dword [ebp - 0xb4], 0x1000000
seta byte [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5293a1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529432
mov eax, dword [0x806ce8]
cmp dword [eax], 0
je 0x5293f9
push 1
push 0
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x338], eax
mov byte [ebp - 0x334], 0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x330], eax
mov byte [ebp - 0x32c], 0
lea ecx, [ebp - 0x338]
mov eax, dword [0x806ce8]
mov eax, dword [eax]
mov edx, 0x5295ac
call fcn.00518544
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x529409
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x529419
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x806a14]
movzx edx, byte [ebp - 0xb9]
mov byte [eax], dl
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529480
lea eax, [ebp - 0x33c]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x320]
mov edx, 2
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0xad]
mov edx, dword [0x4136d4]
call sub.rtl120.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 0x10]
mov edx, 4
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret