Function at 0x4412f8
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x441300
push ecx
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x44147f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
call sub.rtl160.bpl__System__UStrEqual_qqrv
jne 0x441355
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, 3
mov eax, dword [ebp - 4]
call fcn.0044112c
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System_Sysutils_ExcludeTrailingPathDelimiter_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call sub.rtl160.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System_Sysutils_ExcludeTrailingPathDelimiter_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
call sub.rtl160.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrLen_qqrx20System_UnicodeString
cmp eax, 3
jl 0x441464
mov dl, 1
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System_Sysutils_DirectoryExists_qqrx20System_UnicodeStringo
test al, al
jne 0x441464
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System_Sysutils_ExtractFilePath_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrEqual_qqrv
je 0x441464
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System_Sysutils_ExtractFilePath_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System_Sysutils_ExtractFilePath_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x20]
pop edx
call fcn.004412f8
push 0
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System__UStrToPWChar_qqrx20System_UnicodeString
mov esi, eax
push esi
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x44141c
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
je 0x44141c
call sub.kernel32.dll_GetLastError_1
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, eax
mov eax, dword [ebp - 4]
call fcn.0044112c
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 8]
call sub.rtl160.bpl__System_Sysutils_ExcludeTrailingPathDelimiter_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0xc]
call sub.rtl160.bpl__System_Sysutils_ExtractFileName_qqrx20System_UnicodeString
xor edx, edx
mov eax, dword [ebp - 0xc]
call sub.rtl160.bpl__System_Sysutils_StrToIntDef_qqrx20System_UnicodeStringi
mov ebx, eax
test ebx, ebx
jle 0x441464
push ebx
push esi
call sub.kernel32.dll_SetFileAttributesW
test eax, eax
jne 0x441464
call sub.kernel32.dll_GetLastError_1
mov edx, dword [sym.imp.rtl160.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
mov ecx, eax
mov eax, dword [ebp - 4]
call fcn.0044112c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441486
lea eax, [ebp - 0x24]
mov edx, 9
call sub.rtl160.bpl__System__UStrArrayClr_qqrpvi
ret