Function at 0x67689c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff74
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], ecx
mov byte [ebp - 5], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x676b16
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
cmp dword [0x801acc], 0
je 0x676af8
mov eax, dword [0x801acc]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x676af8
test ebx, ebx
je 0x676af8
mov edx, ebx
mov eax, dword [0x801acc]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
je 0x676af8
mov eax, dword [0x801ad0]
call sub.rtl120.bpl__Sysutils_FileExists_qqrx20System_UnicodeString
test al, al
je 0x676af8
mov eax, dword [0x801ad4]
call sub.rtl120.bpl__Sysutils_FileExists_qqrx20System_UnicodeString
test al, al
je 0x676965
mov ecx, dword [0x801ad4]
mov dl, 1
mov eax, dword [0x4046a4]
call fcn.00404768
mov esi, eax
push 0
lea edx, [ebp - 0x64]
mov eax, dword [0x801ad0]
call fcn.006765e8
mov ecx, dword [ebp - 0x64]
mov edx, dword [0x801ad8]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov edi, eax
mov eax, esi
call sub.rtl120.bpl__System_TObject_Free_qqrv
test edi, edi
jg 0x676af8
cmp byte [ebp - 5], 0
je 0x676974
mov byte [ebp - 6], 1
jmp 0x676af8
lea eax, [ebp - 4]
push eax
mov eax, dword [0x801ad0]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0x11
mov eax, dword [0x801ad8]
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x80], 0x11
mov eax, dword [0x801adc]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x78], 0x11
mov eax, dword [0x801ae0]
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x70], 0
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x68], 0x11
lea edx, [ebp - 0x8c]
mov ecx, 4
mov eax, 0x676b34
call sub.rtl120.bpl__Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov eax, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
mov ebx, eax
inc ebx
mov eax, ebx
call sub.rtl120.bpl__Sysutils_StrAlloc_qqrui
mov dword [ebp - 0xc], eax
mov edx, ebx
add edx, edx
mov eax, dword [ebp - 0xc]
call fcn.00402518
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call sub.rtl120.bpl__Sysutils_StrPLCopy_qqrpbx20System_UnicodeStringui
lea eax, [ebp - 0x50]
mov edx, 0x44
call fcn.00402518
lea eax, [ebp - 0x60]
mov edx, 0x10
call fcn.00402518
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], 1
xor edx, edx
push ebp
push 0x676af1
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
push ebp
push 0x676ab7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
cmp byte [ebp - 6], 0
je 0x676aad
mov byte [0x801ae4], 1
push 0
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov ebx, eax
cmp ebx, 0x102
jne 0x676aad
cmp byte [0x801ae4], 0
je 0x676aad
mov eax, dword [sym.imp.vcl120.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl120.bpl__Forms_TApplication_ProcessMessages_qqrv
push 0xa
call sub.kernel32.dll_Sleep_1
jmp 0x676a7a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x676ac1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x676af8
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x676adb
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x676ae8
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0xc]
call sub.rtl120.bpl__Sysutils_StrDispose_qqrpb
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x676b1d
lea eax, [ebp - 0x64]
call sub.rtl120.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret