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

Disassembly:
push 0x6c
mov eax, 0x4b7e3b
call fcn.004701a5
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x4c], eax
call fcn.00426a1a
xor edi, edi
mov dword [ebp - 4], edi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 2
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
call fcn.0042f766
mov esi, dword [ebp - 0x48]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x5c
pop ebx
push 0x4c3bf8
push esi
mov dword [ebp - 0x3c], ebx
call fcn.0046c3f4
pop ecx
pop ecx
push esi
test eax, eax
je 0x42f118
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov ebx, eax
movzx eax, word [ebx]
mov dword [ebp - 0x3c], eax
jmp 0x42f13e
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
je 0x42f133
push esi
call dword [sym.imp.SHLWAPI.dll_PathSkipRootW]
push eax
push esi
call dword [sym.imp.USER32.dll_CharPrevW]
jmp 0x42f13c
push ebx
push esi
call fcn.0046e988
pop ecx
pop ecx
mov ebx, eax
xor eax, eax
inc eax
mov dword [ebp - 0x38], eax
test ebx, ebx
je 0x42f2be
test eax, eax
je 0x42f2be
xor eax, eax
push esi
mov word [ebx], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x42f255
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 2
je 0x42f1f6
cmp ecx, 3
je 0x42f1f6
cmp ecx, 5
jne 0x42f1c2
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x42f25a
test byte [eax + 0x1c], 1
je 0x42f25a
cmp byte [eax + 0x19], 3
jb 0x42f25a
push ecx
push esi
push 0x4c58e0
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041dfa9
add esp, 0x18
jmp 0x42f25a
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x42f1f1
test byte [eax + 0x1c], 1
je 0x42f1f1
cmp byte [eax + 0x19], 2
jb 0x42f1f1
push ecx
push esi
push 0x4c58e0
push 0x19
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041dfa9
add esp, 0x18
mov dword [ebp - 0x38], edi
jmp 0x42f25a
push dword [ebp - 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x42f25a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x50b594]
cmp ecx, 0x50b594
je 0x42f23e
test byte [ecx + 0x1c], 1
je 0x42f23e
cmp byte [ecx + 0x19], 2
jb 0x42f23e
push eax
push esi
push 0x4c58e0
push 0x17
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0041dfa9
add esp, 0x18
lea ecx, [ebp - 0x48]
call fcn.004014d7
lea ecx, [ebp - 0x70]
call fcn.00426a56
xor eax, eax
jmp 0x42f368
test cl, 0x10
je 0x42f282
mov eax, dword [ebp - 0x3c]
push ebx
mov word [ebx], ax
mov dword [ebp - 0x3c], 0x5c
call dword [sym.imp.USER32.dll_CharNextW]
push 0x5c
push eax
call fcn.0046e988
pop ecx
mov ebx, eax
mov eax, dword [ebp - 0x38]
pop ecx
jmp 0x42f144
mov eax, dword [0x50b594]
cmp eax, 0x50b594
je 0x42f2b1
test byte [eax + 0x1c], 1
je 0x42f2b1
cmp byte [eax + 0x19], 2
jb 0x42f2b1
push ecx
push esi
push 0x4c58e0
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0041dfa9
add esp, 0x18
lea ecx, [ebp - 0x48]
call fcn.004014d7
jmp 0x42f35e
lea ecx, [ebp - 0x48]
call fcn.004014d7
mov edi, dword [ebp - 0x38]
jmp 0x42f35e
lea ecx, [ebp - 0x70]
call fcn.00426a56
mov eax, edi
call fcn.004700f7
ret