Function at 0x57671c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffccc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x334], 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 - 0xac]
mov ecx, 0x27
rep movsd dword es:[edi], dword [esi]
mov esi, edx
lea eax, [ebp - 0xac]
mov edx, dword [0x4133a8]
call sub.rtl120.bpl__System__AddRefRecord_qqrv
xor eax, eax
push ebp
push 0x576af8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xad], 0
mov byte [esi], 0
xor eax, eax
mov dword [ebp - 0xb4], eax
xor eax, eax
mov dword [ebp - 0xb8], eax
call fcn.0040e44c
test al, al
je 0x5767af
mov eax, dword [0x7a066c]
push dword [eax]
push 0x576b1c
push 0x576b40
lea eax, [ebp - 4]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
jmp 0x5767cd
mov eax, dword [0x7a066c]
push dword [eax]
push 0x576b1c
push 0x576b68
lea eax, [ebp - 4]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x100]
mov edx, 0x44
call fcn.004024a4
lea eax, [ebp - 0x110]
mov edx, 0x10
call fcn.004024a4
mov dword [ebp - 0x100], 0x44
mov dword [ebp - 0xd4], 1
mov word [ebp - 0xd0], 1
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x34]
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [0x7a0994]
cmp dword [eax], 0
je 0x57684a
push 0
push 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x320], eax
mov byte [ebp - 0x31c], 0x11
lea ecx, [ebp - 0x320]
mov eax, dword [0x7a0994]
mov eax, dword [eax]
mov edx, 0x576b90
call fcn.00571658
mov eax, dword [0x7a06f0]
movzx eax, byte [eax]
mov byte [ebp - 0xb9], al
mov eax, dword [0x7a06f0]
mov byte [eax], 0x12
xor edx, edx
push ebp
push 0x576ab7
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
push ebp
push 0x576999
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x330], eax
mov byte [ebp - 0x32c], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x328], eax
mov byte [ebp - 0x324], 0x11
lea edx, [ebp - 0x330]
mov ecx, 1
mov eax, 0x576bc4
call fcn.0040fdb0
lea eax, [ebp - 0x318]
mov edx, 0x208
call fcn.004024a4
lea eax, [ebp - 0x318]
mov ecx, 0x104
mov edx, dword [ebp - 0xc]
call sub.rtl120.bpl__Sysutils_StrPLCopy_qqrpbx20System_UnicodeStringui
lea eax, [ebp - 0x10]
mov edx, dword [0x7a066c]
mov edx, dword [edx]
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
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 0x576938
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 0x576ac1
push 0xa
mov eax, dword [ebp - 0x110]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov ebx, eax
cmp ebx, 0x102
jne 0x57695e
mov eax, dword [sym.imp.vcl120.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl120.bpl__Forms_TApplication_ProcessMessages_qqrv
jmp 0x576938
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 - 0xad]
test dword [ebp - 0xb4], 0x1000000
seta byte [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x576a30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x576ac1
mov eax, dword [0x7a0994]
cmp dword [eax], 0
je 0x576a88
push 1
push 0
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x330], eax
mov byte [ebp - 0x32c], 0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x328], eax
mov byte [ebp - 0x324], 0
lea ecx, [ebp - 0x330]
mov eax, dword [0x7a0994]
mov eax, dword [eax]
mov edx, 0x576c2c
call fcn.00571658
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x576a98
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x10c]
test eax, eax
je 0x576aa8
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x7a06f0]
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 0x576aff
lea eax, [ebp - 0x334]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0xac]
mov edx, dword [0x4133a8]
call sub.rtl120.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 0x10]
mov edx, 4
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret