Function at 0x4174f0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
sub esp, 0x21c
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
mov ebp, dword [esp + 0x224]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebp
call esi
cmp eax, 0xffffffff
je 0x417538
test al, 0x10
je 0x417538
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0041f826
add esp, 0x21c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push ebp
call edi
test eax, eax
jne 0x41775f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x41775f
lea edx, [esp + 0x11c]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x417568
lea eax, [esp + 0x11c]
push 0x2f
push eax
call fcn.00420dc0
add esp, 8
test eax, eax
je 0x41758d
mov byte [eax], 0x5c
jmp 0x417572
mov al, byte [esp + 0x11c]
mov cl, byte [esp + 0x11d]
mov byte [esp + 0x14], 0
cmp al, 0x5c
jne 0x417632
cmp cl, 0x5c
jne 0x417632
lea ecx, [esp + 0x11e]
push 0x5c
push ecx
mov byte [esp + 0x17], 1
call fcn.00420dc0
add esp, 8
test eax, eax
je 0x41765b
inc eax
push 0x5c
push eax
call fcn.00420dc0
add esp, 8
test eax, eax
je 0x41765b
mov byte [eax], 0
inc eax
xor ecx, ecx
jmp 0x4175f0
mov dl, byte [esp + ecx + 0x11c]
mov byte [esp + ecx + 0x14], dl
inc ecx
test dl, dl
jne 0x4175f0
lea edi, [esp + 0x14]
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417605
mov dx, word [0x43b288]
mov word [edi], dx
lea edx, [esp + 0x11c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x417620
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x41765b
mov byte [esp + 0xf], 0
cmp cl, 0x3a
jne 0x417646
cmp byte [esp + 0x11e], 0x5c
je 0x417684
push 0x105
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov byte [esp + 0x17], 0
cmp byte [esp + 0x14], 0
jne 0x4176ac
push 3
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0041f826
add esp, 0x21c
ret
mov byte [esp + 0x14], al
mov byte [esp + 0x15], 0x3a
mov byte [esp + 0x16], 0x5c
mov byte [esp + 0x17], 0
lea eax, [esp + 0x11f]
mov edi, edi
mov cl, byte [eax]
mov byte [eax - 3], cl
inc eax
test cl, cl
jne 0x4176a0
jmp 0x41765b
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [esp + 0xf], 0
jne 0x4176c7
lea ecx, [esp + 0x14]
push ecx
call esi
cmp eax, 0xffffffff
je 0x41766a
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4176d6
sub eax, edx
lea edx, [esp + 0x10]
push edx
mov esi, eax
lea eax, [esp + 0x120]
push 0x43b288
push eax
call fcn.00420cb5
add esp, 0xc
test eax, eax
je 0x41774b
nop
push eax
lea ecx, [esp + esi + 0x18]
push 0x440c64
push ecx
call fcn.0041fa79
add esp, 0xc
push 0
lea edx, [esp + 0x18]
push edx
add esi, eax
call edi
test eax, eax
jne 0x417733
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41766a
lea eax, [esp + 0x10]
push eax
push 0x43b288
push 0
call fcn.00420cb5
add esp, 0xc
test eax, eax
jne 0x417700
lea eax, [esp + 0x14]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x417755
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
mov al, 1
call fcn.0041f826
add esp, 0x21c
ret