Function at 0x663f24
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 9
push 0
push 0
dec ecx
jne 0x663f2d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x663f47
add esp, 0xfffffff0
call sub.rtl70.bpl__System__ClassCreate_qqrp17System_TMetaClasso
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x664268
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__Classes_TComponent__bctr_qqrp18Classes_TComponent
mov eax, dword [ebp - 4]
mov byte [eax + 0xb0], 0
mov dl, 1
mov eax, dword [sym.imp.rtl70.bpl__Classes_TStringList_]
call sub.rtl70.bpl__System_TObject__bctr_qqrv
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov dl, 1
mov eax, dword [sym.imp.rtl70.bpl__Classes_TStringList_]
call sub.rtl70.bpl__System_TObject__bctr_qqrv
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [sym.imp.adortl70.bpl__Adodb_TADOConnection_]
call sub.adortl70.bpl__Adodb_TADOConnection__bctr_qqrp18Classes_TComponent
mov edx, dword [ebp - 4]
mov dword [edx + 0x8c], eax
xor ecx, ecx
mov dl, 1
mov eax, dword [sym.imp.adortl70.bpl__Adodb_TADOConnection_]
call sub.adortl70.bpl__Adodb_TADOConnection__bctr_qqrp18Classes_TComponent
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], eax
mov dl, 1
mov eax, dword [sym.imp.rtl70.bpl__Classes_TStringList_]
call sub.rtl70.bpl__System_TObject__bctr_qqrv
mov edx, dword [sym.P_Interface.bpl__Publicutil_GL_TreeName]
mov dword [edx], eax
mov dl, 1
mov eax, dword [sym.imp.rtl70.bpl__Classes_TStringList_]
call sub.rtl70.bpl__System_TObject__bctr_qqrv
mov edx, dword [sym.P_Interface.bpl__Publicutil_GL_TreeValue]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
mov edx, dword [sym.P_Interface.bpl__Publicutil_ADOConn]
mov dword [edx], eax
mov eax, dword [sym.P_Interface.bpl__Publicutil_GL_ExeName]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x8c]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
mov dl, 1
mov eax, dword [sym.P_Interface.bpl__Unit_developtools_tdevelop_]
call sym.P_Interface.bpl__Unit_developtools_tdevelop__bctr_qqrp19Classes_TStringList17System_AnsiStringp20Adodb_TADOConnectionp14System
mov edx, dword [ebp - 4]
mov dword [edx + 0xa8], eax
mov eax, dword [ebp - 4]
add eax, 0x54
mov edx, dword [sym.P_Interface.bpl__Publicutil_GL_STRNSDJH]
mov edx, dword [edx]
call sub.rtl70.bpl__System__LStrAsg_qqrpvpxv
mov eax, dword [ebp - 4]
add eax, 0x58
mov edx, dword [sym.P_Interface.bpl__Publicutil_GL_SKJBH]
mov edx, dword [edx]
call sub.rtl70.bpl__System__LStrAsg_qqrpvpxv
push 0
lea edx, [ebp - 0x14]
mov eax, dword [sym.imp.vcl70.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl70.bpl__Forms_TApplication_GetExeName_qqrv
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call sub.rtl70.bpl__Sysutils_ExtractFilePath_qqrx17System_AnsiString
lea eax, [ebp - 0x10]
mov edx, 0x66429c
call sub.rtl70.bpl__System__LStrCat_qqrv
mov eax, dword [ebp - 0x10]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
call sub.kernel32.dll_CreateDirectoryA
call sub.rtl70.bpl__Sysutils_Now_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0xc]
mov eax, 0x6642a8
call sub.rtl70.bpl__Sysutils_FormatDateTime_qqrx17System_AnsiString16System_TDateTime
xor eax, eax
push ebp
push 0x664218
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, dword [sym.imp.vcl70.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl70.bpl__Forms_TApplication_GetExeName_qqrv
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call sub.rtl70.bpl__Sysutils_ExtractFilePath_qqrx17System_AnsiString
push dword [ebp - 0x1c]
push 0x6642c0
lea edx, [ebp - 0x28]
mov eax, dword [sym.imp.vcl70.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl70.bpl__Forms_TApplication_GetExeName_qqrv
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call sub.rtl70.bpl__Sysutils_ExtractFileName_qqrx17System_AnsiString
push dword [ebp - 0x24]
push 0x6642d0
push dword [ebp - 0xc]
push 0x6642dc
lea eax, [ebp - 0x18]
mov edx, 6
call sub.rtl70.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp - 0x18]
call sub.rtl70.bpl__Sysutils_FileExists_qqrx17System_AnsiString
test al, al
je 0x664186
push 2
lea edx, [ebp - 0x34]
mov eax, dword [sym.imp.vcl70.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl70.bpl__Forms_TApplication_GetExeName_qqrv
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call sub.rtl70.bpl__Sysutils_ExtractFilePath_qqrx17System_AnsiString
push dword [ebp - 0x30]
push 0x6642c0
lea edx, [ebp - 0x3c]
mov eax, dword [sym.imp.vcl70.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl70.bpl__Forms_TApplication_GetExeName_qqrv
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call sub.rtl70.bpl__Sysutils_ExtractFileName_qqrx17System_AnsiString
push dword [ebp - 0x38]
push 0x6642d0
push dword [ebp - 0xc]
push 0x6642dc
lea eax, [ebp - 0x2c]
mov edx, 6
call sub.rtl70.bpl__System__LStrCatN_qqrv
mov ecx, dword [ebp - 0x2c]
mov dl, 1
mov eax, dword [sym.imp.rtl70.bpl__Classes_TFileStream_]
call sub.rtl70.bpl__Classes_TFileStream__bctr_qqrx17System_AnsiStringus
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
jmp 0x6641f9
push 0xffff
lea edx, [ebp - 0x48]
mov eax, dword [sym.imp.vcl70.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl70.bpl__Forms_TApplication_GetExeName_qqrv
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call sub.rtl70.bpl__Sysutils_ExtractFilePath_qqrx17System_AnsiString
push dword [ebp - 0x44]
push 0x6642c0
lea edx, [ebp - 0x50]
mov eax, dword [sym.imp.vcl70.bpl__Forms_Application]
mov eax, dword [eax]
call sub.vcl70.bpl__Forms_TApplication_GetExeName_qqrv
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call sub.rtl70.bpl__Sysutils_ExtractFileName_qqrx17System_AnsiString
push dword [ebp - 0x4c]
push 0x6642d0
push dword [ebp - 0xc]
push 0x6642dc
lea eax, [ebp - 0x40]
mov edx, 6
call sub.rtl70.bpl__System__LStrCatN_qqrv
mov ecx, dword [ebp - 0x40]
mov dl, 1
mov eax, dword [sym.imp.rtl70.bpl__Classes_TFileStream_]
call sub.rtl70.bpl__Classes_TFileStream__bctr_qqrx17System_AnsiStringus
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x30]
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, ebx
call sub.rtl70.bpl__Classes_TStream_SetPosition_qqrxj
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x664222
push 0x6642ec
mov ecx, 0x664304
mov edx, 0x664314
mov eax, dword [ebp - 4]
call sym.P_Interface.bpl__Fpinterface_TFPINTERFACE_Of_InitSystem_qqr17System_AnsiStringt1t1
mov eax, dword [ebp - 4]
mov byte [eax + 0x89], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x88], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66426f
lea eax, [ebp - 0x50]
mov edx, 0x12
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
ret