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

Disassembly:
push ebp
sub esp, 0x6c
push 0x38
mov eax, 0x461430
call fcn.0044a6d8
mov esi, dword [ebp + 0x78]
mov eax, dword [esi + 4]
mov ebx, dword [esi]
cmp eax, 3
jbe 0x41d3b0
cmp word [ebx + 2], 0x3a
jne 0x41d3b0
add ebx, 6
xor edi, edi
jmp 0x41d413
movzx eax, word [ebx]
cmp ax, 0x5c
je 0x41d3c3
cmp ax, 0x2f
jne 0x41d411
xor eax, eax
mov word [ebx], ax
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41d3d9
test al, 0x10
jne 0x41d40b
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x41d40b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [esi]
mov dword [ebp + 0x78], eax
cmp eax, 0xb7
jne 0x41d4b9
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
je 0x41d53d
push 0x5c
pop eax
mov word [ebx], ax
inc ebx
inc ebx
cmp word [ebx], di
jne 0x41d3b4
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x41d5d6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [esi]
mov ebx, eax
cmp ebx, 0xb7
je 0x41d583
lea eax, [ebp]
push eax
call fcn.0041bc26
mov esi, eax
lea eax, [ebp + 0x1c]
push ebx
push eax
mov dword [ebp - 4], 6
call fcn.0041d10b
push 0x467e38
push eax
lea eax, [ebp + 0x54]
push eax
mov byte [ebp - 4], 7
call fcn.00408aee
push esi
push eax
lea eax, [ebp + 0x38]
push eax
mov byte [ebp - 4], 8
call fcn.00408b35
add esp, 0x28
push 0xffffffffffffffff
push edi
push eax
mov ecx, 0x47c7f0
mov byte [ebp - 4], 9
call fcn.00408577
push edi
push 1
lea ecx, [ebp + 0x38]
call fcn.00407efb
push edi
push 1
lea ecx, [ebp + 0x54]
call fcn.00407efb
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.00407efb
lea ecx, [ebp]
jmp 0x41d52e
lea eax, [ebp + 0x38]
push eax
call fcn.0041bc26
mov esi, eax
push dword [ebp + 0x78]
lea eax, [ebp + 0x54]
push eax
mov dword [ebp - 4], edi
call fcn.0041d10b
push 0x467e38
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 1
call fcn.00408aee
push esi
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 2
call fcn.00408b35
add esp, 0x28
push 0xffffffffffffffff
push edi
push eax
mov ecx, 0x47c7f0
mov byte [ebp - 4], 3
call fcn.00408577
push edi
push 1
lea ecx, [ebp]
call fcn.00407efb
push edi
push 1
lea ecx, [ebp + 0x1c]
call fcn.00407efb
push edi
push 1
lea ecx, [ebp + 0x54]
call fcn.00407efb
lea ecx, [ebp + 0x38]
push edi
push 1
call fcn.00407efb
xor al, al
jmp 0x41d5d8
push dword [esi]
lea eax, [ebp + 0x54]
push eax
call fcn.0041bc26
push str._exists_and_is_not_a_directory
push eax
lea eax, [ebp + 0x38]
push eax
mov dword [ebp - 4], 4
call fcn.00408aee
add esp, 0x14
push 0xffffffffffffffff
push edi
push eax
mov ecx, 0x47c7f0
mov byte [ebp - 4], 5
call fcn.00408577
push edi
push 1
lea ecx, [ebp + 0x38]
call fcn.00407efb
lea ecx, [ebp + 0x54]
jmp 0x41d52e
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test al, 0x10
jne 0x41d5d6
push dword [esi]
lea eax, [ebp - 0x44]
push eax
call fcn.0041bc26
push str._exists_and_is_not_a_directory
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 0xa
call fcn.00408aee
add esp, 0x14
push 0xffffffffffffffff
push edi
push eax
mov ecx, 0x47c7f0
mov byte [ebp - 4], 0xb
call fcn.00408577
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00407efb
lea ecx, [ebp - 0x44]
jmp 0x41d52e
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret