Function at 0x410468
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x39
push 0
push 0
dec ecx
jne 0x410470
push ebx
push esi
push edi
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x410c24
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [sym.imp.coreide60.bpl__Modules_TWorkspace_]
call sub.coreide60.bpl__Modules_TWorkspace_ActiveProject_qqrp17System_TMetaClass
mov esi, eax
mov eax, dword [sym.imp.coreide60.bpl__Debug_Debugger]
mov eax, dword [eax]
cmp dword [eax + 0x38], 0
je 0x4104e4
test esi, esi
je 0x4104e4
lea edx, [ebp - 0x80]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
mov ecx, 0x410c38
call sub.rtl60.bpl__System__IntfCast_qqrr45System__DelphiInterface_t17System_IInterface_x45System__DelphiInterface_t17System_IInter
mov eax, dword [ebp - 0x7c]
mov edx, dword [sym.imp.coreide60.bpl__Debug_Debugger]
mov edx, dword [edx]
mov edx, dword [edx + 0x38]
mov edx, dword [edx + 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x88]
test al, al
jne 0x4104e4
xor esi, esi
test esi, esi
jne 0x410506
mov eax, dword [sym.imp.coreide60.bpl__Debug_Debugger]
mov eax, dword [eax]
cmp dword [eax + 0x38], 0
je 0x410b61
lea eax, [ebp - 0x18]
call sub.rtl60.bpl__System__LStrClr_qqrpv
jmp 0x410883
lea edx, [ebp - 0x90]
mov eax, dword [sym.imp.coreide60.bpl__Envoptions_EnvironmentOptions]
mov eax, dword [eax]
mov eax, dword [eax + 0x124]
call sub.vclide60.bpl__Idepropset_TPropField_GetValue_qqrv
lea eax, [ebp - 0x90]
call sub.rtl60.bpl__System__VarToBool_qqrrx14System_Variant
test al, al
je 0x41053a
call sub.coreide60.bpl__Modules_SaveModifiedModules_qqrv
test al, al
je 0x410b61
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl60.bpl__Forms_TApplication_CancelHint_qqrv
lea edx, [ebp - 0x94]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x20]
mov ecx, 0x410c48
call sub.rtl60.bpl__System__IntfCast_qqrr45System__DelphiInterface_t17System_IInterface_x45System__DelphiInterface_t17System_IInter
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xd4]
mov ebx, eax
test bl, 1
je 0x41058e
test bl, 8
jne 0x41058e
test bl, 2
je 0x41074c
test bl, 0x20
jne 0x41074c
test bl, 0x10
je 0x41065d
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
test al, al
je 0x410644
push 0x1388
lea edx, [ebp - 0x98]
mov eax, dword [sym.imp.coreide60.bpl__Appconst__sSourceModified]
call sub.rtl60.bpl__System_LoadResString_qqrp20System_TResStringRec
mov eax, dword [ebp - 0x98]
mov cx, word [0x410c58]
mov dl, 2
call sub.vcl60.bpl__Dialogs_MessageDlg_qqrx17System_AnsiString19Dialogs_TMsgDlgType47System__Set_t18Dialogs_TMsgDlgBtn_iuc_0_iuc_10
sub eax, 2
je 0x410b61
sub eax, 4
je 0x4105e6
dec eax
je 0x410623
jmp 0x41074c
mov eax, dword [sym.imp.coreide60.bpl__Debug_Debugger]
mov eax, dword [eax]
mov dl, 1
call sub.coreide60.bpl__Debug_TDebugger_ResetAll_qqro
cmp byte [ebp - 5], 5
jne 0x4105fe
mov byte [ebp - 5], 2
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 5]
mov byte [eax + 0x8a0], dl
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00410f00
test al, al
je 0x410b61
jmp 0x41074c
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xd4]
mov edx, eax
or dl, byte [0x410c5c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe4]
jmp 0x41074c
mov dl, byte [0x410c60]
not edx
and dl, bl
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0xe4]
jmp 0x41074c
mov eax, dword [sym.imp.coreide60.bpl__Debug_Debugger]
mov eax, dword [eax]
call sub.coreide60.bpl__Debug_TDebugger_GetProcessCount_qqrv
test eax, eax
jle 0x41072c
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x450]
mov edx, dword [edx + 0x30]
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
mov edx, dword [ebp - 0x24]
mov eax, 0x410c6c
call sub.rtl60.bpl__System__LStrPos_qqrv
mov edx, eax
lea eax, [ebp - 0x24]
mov ecx, 1
call sub.rtl60.bpl__System__LStrDelete_qqrv
push 0
lea eax, [ebp - 0x9c]
push eax
lea edx, [ebp - 0xa0]
mov eax, dword [sym.imp.coreide60.bpl__Appconst__sCantCompileWhileDebugging]
call sub.rtl60.bpl__System_LoadResString_qqrp20System_TResStringRec
mov eax, dword [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 0xa4], 0xb
lea edx, [ebp - 0xa8]
xor ecx, ecx
pop eax
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov eax, dword [ebp - 0x9c]
mov cx, word [0x410c70]
mov dl, 2
call sub.vcl60.bpl__Dialogs_MessageDlg_qqrx17System_AnsiString19Dialogs_TMsgDlgType47System__Set_t18Dialogs_TMsgDlgBtn_iuc_0_iuc_10
dec eax
jne 0x410b61
mov eax, dword [sym.imp.coreide60.bpl__Debug_Debugger]
mov eax, dword [eax]
mov dl, 1
call sub.coreide60.bpl__Debug_TDebugger_ResetAll_qqro
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl60.bpl__Forms_TApplication_ProcessMessages_qqrv
mov eax, dword [sym.imp.coreide60.bpl__Modules_Workspace]
cmp dword [eax], 0
je 0x41072c
mov eax, dword [sym.imp.coreide60.bpl__Modules_Workspace]
mov eax, dword [eax]
mov edx, esi
call sub.coreide60.bpl__Modules_TWorkspace_ActivateCustomProject_qqrp22Modules_TCustomProject
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 5]
mov byte [eax + 0x8a0], dl
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00410f00
test al, al
je 0x410b61
lea ecx, [ebp - 0xb8]
mov edx, 0x410c7c
mov eax, dword [esi + 0x6c]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
lea eax, [ebp - 0xb8]
call sub.rtl60.bpl__System__VarToBool_qqrrx14System_Variant
mov ebx, eax
lea ecx, [ebp - 0xc8]
mov edx, 0x410c90
mov eax, dword [esi + 0x6c]
mov edi, dword [eax]
call dword [edi + 0x3c]
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xd8]
mov edx, 0x410ca0
mov eax, dword [esi + 0x6c]
mov edi, dword [eax]
call dword [edi + 0x3c]
lea edx, [ebp - 0xd8]
pop eax
call sub.rtl60.bpl__System__VarOr_qqrr14System_Variantrx14System_Variant
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xf8]
mov edx, 0x410cb4
mov eax, dword [esi + 0x6c]
mov edi, dword [eax]
call dword [edi + 0x3c]
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x108]
xor edx, edx
call sub.rtl60.bpl__System__VarFromLStr_qqrr14System_Variantx17System_AnsiString
lea edx, [ebp - 0x108]
pop eax
call sub.rtl60.bpl__System__VarCmpEQ_qqrrx14System_Variantt1
jne 0x4107e5
test bl, bl
je 0x410823
lea ecx, [ebp - 0x118]
mov edx, 0x410ccc
mov eax, dword [esi + 0x6c]
mov edi, dword [eax]
call dword [edi + 0x3c]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x128]
xor edx, edx
call sub.rtl60.bpl__System__VarFromLStr_qqrr14System_Variantx17System_AnsiString
lea edx, [ebp - 0x128]
pop eax
call sub.rtl60.bpl__System__VarCmpEQ_qqrrx14System_Variantt1
sete al
test al, bl
jne 0x410823
xor edx, edx
jmp 0x410825
mov dl, 1
lea eax, [ebp - 0xe8]
call sub.rtl60.bpl__System__VarFromBool_qqrr14System_Variantxo
lea edx, [ebp - 0xe8]
pop eax
call sub.rtl60.bpl__System__VarAnd_qqrr14System_Variantrx14System_Variant
lea eax, [ebp - 0xc8]
call sub.rtl60.bpl__System__VarToBool_qqrrx14System_Variant
test al, al
je 0x410862
mov ecx, dword [sym.imp.coreide60.bpl__Appconst__sNoHostApplication]
mov dl, 1
mov eax, dword [sym.imp.rtl60.bpl__Sysutils_Exception_]
call sub.rtl60.bpl__Sysutils_Exception__bctr_qqrp20System_TResStringRec
call sub.rtl60.bpl__System__RaiseExcept_qqrv
lea ecx, [ebp - 0x138]
mov edx, 0x410ce0
mov eax, dword [esi + 0x6c]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
lea edx, [ebp - 0x138]
lea eax, [ebp - 0x18]
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
test esi, esi
je 0x410943
lea ecx, [ebp - 0x148]
mov edx, 0x410c90
mov eax, dword [esi + 0x6c]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x158]
mov edx, 0x410ca0
mov eax, dword [esi + 0x6c]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
lea edx, [ebp - 0x158]
pop eax
call sub.rtl60.bpl__System__VarOr_qqrr14System_Variantrx14System_Variant
lea eax, [ebp - 0x148]
call sub.rtl60.bpl__System__VarToBool_qqrrx14System_Variant
test al, al
je 0x41093b
lea ecx, [ebp - 0x168]
mov edx, 0x410c7c
mov eax, dword [esi + 0x6c]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
lea eax, [ebp - 0x168]
call sub.rtl60.bpl__System__VarToBool_qqrrx14System_Variant
test al, al
je 0x410918
lea ecx, [ebp - 0x178]
mov edx, 0x410ccc
mov eax, dword [esi + 0x6c]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
lea edx, [ebp - 0x178]
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
jmp 0x410943
lea ecx, [ebp - 0x188]
mov edx, 0x410cb4
mov eax, dword [esi + 0x6c]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
lea edx, [ebp - 0x188]
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
jmp 0x410943
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__System__LStrClr_qqrpv
mov eax, dword [sym.imp.coreide60.bpl__Debug_Debugger]
mov eax, dword [eax]
mov eax, dword [eax + 0xd0]
cmp byte [eax + 0x18], 0
jne 0x41096a
mov eax, dword [sym.imp.coreide60.bpl__Debug_Debugger]
mov eax, dword [eax]
call sub.coreide60.bpl__Debug_TDebugger_GetProcessCount_qqrv
test eax, eax
jle 0x4109f3
test esi, esi
je 0x41098e
lea edx, [ebp - 0x18c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov edx, dword [ebp - 0x18c]
lea eax, [ebp - 0x1c]
mov ecx, 0x410cec
call sub.rtl60.bpl__System__IntfCast_qqrr45System__DelphiInterface_t17System_IInterface_x45System__DelphiInterface_t17System_IInter
cmp byte [ebp - 5], 3
jne 0x4109d0
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call sub.coreide60.bpl__Editors_GetTopFilePos_qqrr17System_AnsiStringri
cmp dword [ebp - 0xc], 0
je 0x410b61
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [sym.imp.coreide60.bpl__Debug_Debugger]
mov eax, dword [eax]
mov cl, byte [ebp - 5]
mov edx, dword [ebp - 0x1c]
call sub.coreide60.bpl__Debug_TDebugger_Run_qqr44System__DelphiInterface_t16Codemgr_IProject_14Debug_TRunModex17System_AnsiStringt3
jmp 0x410b61
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0
push 0
mov eax, dword [sym.imp.coreide60.bpl__Debug_Debugger]
mov eax, dword [eax]
mov cl, byte [ebp - 5]
mov edx, dword [ebp - 0x1c]
call sub.coreide60.bpl__Debug_TDebugger_Run_qqr44System__DelphiInterface_t16Codemgr_IProject_14Debug_TRunModex17System_AnsiStringt3
jmp 0x410b61
lea edx, [ebp - 0x19c]
mov eax, dword [sym.imp.coreide60.bpl__Envoptions_EnvironmentOptions]
mov eax, dword [eax]
mov eax, dword [eax + 0x160]
call sub.vclide60.bpl__Idepropset_TPropField_GetValue_qqrv
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x1ac]
mov dl, byte [ebp - 5]
sub dl, 3
setb dl
call sub.rtl60.bpl__System__VarFromBool_qqrr14System_Variantxo
lea edx, [ebp - 0x1ac]
pop eax
call sub.rtl60.bpl__System__VarAnd_qqrr14System_Variantrx14System_Variant
lea eax, [ebp - 0x19c]
call sub.rtl60.bpl__System__VarToBool_qqrrx14System_Variant
test al, al
je 0x410a4d
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl60.bpl__Forms_TApplication_Minimize_qqrv
lea eax, [ebp - 0x78]
xor ecx, ecx
mov edx, 0x44
call sub.rtl60.bpl__System__FillChar_qqrpvic
mov dword [ebp - 0x78], 0x44
test esi, esi
je 0x410b61
mov eax, esi
call sub.coreide60.bpl__Modules_TProject_GetModuleTarget_qqrv
add al, 0xfd
sub al, 2
jae 0x410ae8
cmp dword [ebp - 0x14], 0
je 0x410ae8
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1b0]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c0], eax
mov byte [ebp - 0x1bc], 0xb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 0x1b4], 0xb
lea edx, [ebp - 0x1c0]
mov ecx, 1
mov eax, 0x410d04
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov eax, dword [ebp - 0x1b0]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0
call sub.kernel32.dll_CreateProcessA
call sub.rtl60.bpl__Sysutils_Win32Check_qqri
jmp 0x410b61
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c4]
push eax
lea edx, [ebp - 0x1c8]
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x1c8]
mov dword [ebp - 0x1c0], eax
mov byte [ebp - 0x1bc], 0xb
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 0x1b4], 0xb
lea edx, [ebp - 0x1c0]
mov ecx, 1
mov eax, 0x410d04
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov eax, dword [ebp - 0x1c4]
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0
call sub.kernel32.dll_CreateProcessA
call sub.rtl60.bpl__Sysutils_Win32Check_qqri
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410c2e
lea eax, [ebp - 0x1c8]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x1b0]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x1ac]
mov edx, dword [sym.imp.rtl60.bpl___xp_14System_Variant]
mov ecx, 2
call sub.rtl60.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 0x18c]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x188]
mov edx, dword [sym.imp.rtl60.bpl___xp_14System_Variant]
mov ecx, 0xe
call sub.rtl60.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 0xa0]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x94]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x90]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x80]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x7c]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x24]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x20]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x1c]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x18]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0xc]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret