Function at 0x1c44f40
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, dword [ebp + 8]
mov eax, dword [0x1cf3040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov esi, edi
jns 0x1c44f60
mov esi, dword [edi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1c44fb0
test al, 0x10
je 0x1c44f87
push esi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_exists___n
call fcn.01c38f20
add esp, 0xc
mov bl, 1
jmp 0x1c44f9c
push esi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_conflicts_with_an_existing_file.___n
call fcn.01c38f20
add esp, 0xc
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c98173
mov eax, ebx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
xorps xmm0, xmm0
movsd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
movzx eax, byte [edi + 0xb]
test al, al
jns 0x1c44fcc
mov eax, dword [edi + 4]
mov edi, dword [edi]
lea ebx, [eax + eax]
test ebx, ebx
je 0x1c44fee
movzx ecx, word [edi + ebx - 2]
add ebx, 0xfffffffe
cmp ecx, 0x5c
je 0x1c44fe5
cmp ecx, 0x2f
jne 0x1c44fcf
cmp ebx, 0xfffffffe
jne 0x1c450f6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x1c45010
cmp byte [ebp - 0x11], 0
jns 0x1c44f9c
push dword [ebp - 0x1c]
call fcn.01c95155
add esp, 4
jmp 0x1c44f9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0xb7
jne 0x1c450e0
push esi
call fcn.01c96aca
add esp, 4
cmp eax, 0x7ffffff8
jae 0x1c451a7
cmp eax, 5
mov dword [ebp - 0x30], edi
jae 0x1c4504b
lea ecx, [ebp - 0x28]
mov byte [ecx + 0xb], al
test eax, eax
jne 0x1c4507e
jmp 0x1c45095
mov dword [ebp - 0x2c], esi
mov esi, eax
or esi, 3
inc esi
js 0x1c451aa
mov edi, eax
lea eax, [esi + esi]
push eax
call fcn.01c9515a
add esp, 4
mov ecx, eax
mov dword [ebp - 0x28], eax
or esi, 0x80000000
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
mov esi, dword [ebp - 0x2c]
mov eax, edi
mov dword [ebp - 0x2c], ecx
mov edi, eax
add eax, eax
push eax
push esi
push ecx
call fcn.01c994a0
mov ecx, dword [ebp - 0x2c]
mov eax, edi
add esp, 0xc
mov word [ecx + eax*2], 0
cmp byte [ebp - 0x1d], 0
js 0x1c450a6
lea eax, [ebp - 0x28]
jmp 0x1c450a9
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne cl
and eax, 0x10
shr eax, 4
and al, cl
cmp byte [ebp - 0x1d], 0
jns 0x1c450d8
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
call fcn.01c95155
mov eax, dword [ebp - 0x2c]
add esp, 4
test al, al
jne 0x1c44ffd
push edi
push esi
push str.Failed_to_create_directory__ls__last_error_is__d_n
call fcn.01c38f20
add esp, 0xc
xor ebx, ebx
jmp 0x1c44ffd
sar ebx, 1
cmp eax, ebx
cmovb ebx, eax
cmp ebx, 0x7ffffff8
jae 0x1c451a1
cmp ebx, 5
jae 0x1c4511a
lea eax, [ebp - 0x28]
mov byte [eax + 0xb], bl
test ebx, ebx
jne 0x1c45143
jmp 0x1c45155
mov dword [ebp - 0x2c], esi
mov esi, ebx
or esi, 3
inc esi
js 0x1c451a4
lea eax, [esi + esi]
push eax
call fcn.01c9515a
add esp, 4
mov dword [ebp - 0x28], eax
or esi, 0x80000000
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov esi, dword [ebp - 0x2c]
lea ecx, [ebx + ebx]
push ecx
push edi
push eax
mov edi, eax
call fcn.01c994a0
mov eax, edi
add esp, 0xc
mov word [eax + ebx*2], 0
cmp byte [ebp - 0x11], 0
jns 0x1c4516c
push dword [ebp - 0x1c]
call fcn.01c95155
add esp, 4
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
mov dword [ecx + 8], eax
movsd xmm0, qword [ebp - 0x28]
movsd qword [ecx], xmm0
push ecx
call fcn.01c44f40
add esp, 4
test al, al
jne 0x1c44fee
push str.Failed_to_create_one_of_the_parent_directories
call fcn.01c38f20
add esp, 4
jmp 0x1c450ef
int3
int3
int3
int3