Function at 0x606418
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x606345
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x60635f
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 0x606596
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 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 ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x8c], ebx
mov eax, dword [sym.P_Interface.bpl__Publicutil_ADOConn]
mov dword [eax], ebx
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
push 0x6065c0
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, 0x6065d8
call sub.rtl70.bpl__Sysutils_FormatDateTime_qqrx17System_AnsiString16System_TDateTime
xor eax, eax
push ebp
push 0x60655d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x6065f0
lea edx, [ebp - 0x18]
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 - 0x18]
lea edx, [ebp - 0x14]
call sub.rtl70.bpl__Sysutils_ExtractFileName_qqrx17System_AnsiString
push dword [ebp - 0x14]
push 0x606608
push dword [ebp - 0xc]
push 0x60661c
lea eax, [ebp - 0x10]
mov edx, 5
call sub.rtl70.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp - 0x10]
call sub.rtl70.bpl__Sysutils_FileExists_qqrx17System_AnsiString
test al, al
je 0x6064e8
push 2
push 0x6065f0
lea edx, [ebp - 0x24]
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 - 0x24]
lea edx, [ebp - 0x20]
call sub.rtl70.bpl__Sysutils_ExtractFileName_qqrx17System_AnsiString
push dword [ebp - 0x20]
push 0x606608
push dword [ebp - 0xc]
push 0x60661c
lea eax, [ebp - 0x1c]
mov edx, 5
call sub.rtl70.bpl__System__LStrCatN_qqrv
mov ecx, dword [ebp - 0x1c]
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 0x60653e
push 0xffff
push 0x6065f0
lea edx, [ebp - 0x30]
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 - 0x30]
lea edx, [ebp - 0x2c]
call sub.rtl70.bpl__Sysutils_ExtractFileName_qqrx17System_AnsiString
push dword [ebp - 0x2c]
push 0x606608
push dword [ebp - 0xc]
push 0x60661c
lea eax, [ebp - 0x28]
mov edx, 5
call sub.rtl70.bpl__System__LStrCatN_qqrv
mov ecx, dword [ebp - 0x28]
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 0x606567
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 0x60659d
lea eax, [ebp - 0x30]
mov edx, 0xa
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
ret