Function at 0x575fa0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffca4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x35c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov esi, eax
lea edi, [ebp - 0xbc]
mov ecx, 0x27
rep movsd dword es:[edi], dword [esi]
mov esi, edx
lea eax, [ebp - 0xbc]
mov edx, dword [0x4133a8]
call sub.rtl120.bpl__System__AddRefRecord_qqrv
xor eax, eax
push ebp
push 0x5764bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xbd], 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.004024a4
lea eax, [ebp - 0x120]
mov edx, 0x10
call fcn.004024a4
mov dword [ebp - 0x110], 0x44
mov dword [ebp - 0xe4], 1
mov word [ebp - 0xe0], 1
call fcn.0040e44c
test al, al
je 0x57607c
mov eax, dword [0x7a066c]
push dword [eax]
push 0x5764dc
push 0x576500
lea eax, [ebp - 4]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
jmp 0x57609a
mov eax, dword [0x7a066c]
push dword [eax]
push 0x5764dc
push 0x576528
lea eax, [ebp - 4]
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
cmp dword [ebp - 0x70], 1
jne 0x576111
lea eax, [ebp - 0x18]
mov edx, 0x576550
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x5c]
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x98]
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [0x7a0994]
cmp dword [eax], 0
je 0x57618c
push 1
push 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x338], eax
mov byte [ebp - 0x334], 0x11
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x330], eax
mov byte [ebp - 0x32c], 0x11
lea ecx, [ebp - 0x338]
mov eax, dword [0x7a0994]
mov eax, dword [eax]
mov edx, 0x576564
call fcn.00571658
jmp 0x57618c
lea eax, [ebp - 0x18]
mov edx, 0x5765b4
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x44]
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea edx, [ebp - 8]
mov eax, dword [ebp - 0x4c]
call sub.rtl120.bpl__Sysutils_ExtractFileName_qqrx20System_UnicodeString
cmp dword [ebp - 8], 0
jne 0x576147
lea eax, [ebp - 8]
mov edx, 0x5765c8
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [0x7a0994]
cmp dword [eax], 0
je 0x57618c
push 1
push 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x338], eax
mov byte [ebp - 0x334], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x330], eax
mov byte [ebp - 0x32c], 0x11
lea ecx, [ebp - 0x338]
mov eax, dword [0x7a0994]
mov eax, dword [eax]
mov edx, 0x5765e0
call fcn.00571658
mov eax, dword [0x7a06f0]
movzx eax, byte [eax]
mov byte [ebp - 0xc9], al
mov eax, dword [0x7a06f0]
mov byte [eax], 0x13
xor edx, edx
push ebp
push 0x57647a
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
push ebp
push 0x57635c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x70], 1
jne 0x57621f
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x358], eax
mov byte [ebp - 0x354], 0x11
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x350], eax
mov byte [ebp - 0x34c], 0x11
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x348], eax
mov byte [ebp - 0x344], 0x11
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x340], eax
mov byte [ebp - 0x33c], 0x11
lea edx, [ebp - 0x358]
mov ecx, 3
mov eax, 0x576630
call fcn.0040fdb0
jmp 0x576278
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x358], eax
mov byte [ebp - 0x354], 0x11
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x350], eax
mov byte [ebp - 0x34c], 0x11
mov eax, dword [ebp - 8]
mov dword [ebp - 0x348], eax
mov byte [ebp - 0x344], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x340], eax
mov byte [ebp - 0x33c], 0x11
lea edx, [ebp - 0x358]
mov ecx, 3
mov eax, 0x57665c
call fcn.0040fdb0
lea eax, [ebp - 0x328]
mov edx, 0x208
call fcn.004024a4
lea eax, [ebp - 0x328]
mov ecx, 0x104
mov edx, dword [ebp - 0x1c]
call sub.rtl120.bpl__Sysutils_StrPLCopy_qqrpbx20System_UnicodeStringui
lea eax, [ebp - 0x20]
mov edx, dword [0x7a066c]
mov edx, dword [edx]
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
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 0x5762fb
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 0x576484
push 0xa
mov eax, dword [ebp - 0x120]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov ebx, eax
cmp ebx, 0x102
jne 0x576321
mov eax, dword [sym.imp.vcl120.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl120.bpl__Forms_TApplication_ProcessMessages_qqrv
jmp 0x5762fb
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 - 0xbd]
test dword [ebp - 0xc4], 0x1000000
seta byte [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5763f3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x576484
mov eax, dword [0x7a0994]
cmp dword [eax], 0
je 0x57644b
push 1
push 0
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x338], eax
mov byte [ebp - 0x334], 0
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x330], eax
mov byte [ebp - 0x32c], 0
lea ecx, [ebp - 0x338]
mov eax, dword [0x7a0994]
mov eax, dword [eax]
mov edx, 0x5766dc
call fcn.00571658
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x57645b
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x57646b
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x7a06f0]
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 0x5764c2
lea eax, [ebp - 0x35c]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0xbc]
mov edx, dword [0x4133a8]
call sub.rtl120.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 0x20]
mov edx, 8
call sub.rtl120.bpl__System__UStrArrayClr_qqrpvi
ret