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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov eax, dword [0x13a6e004]
mov edi, 0x13a6e004
cmp eax, edi
je 0x13a6265d
test byte [eax + 0x1c], 2
je 0x13a6265d
cmp byte [eax + 0x19], 5
jb 0x13a6265d
push 0x13a024bc
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.13a58cc1
push dword [ebp + 8]
call fcn.13a624b9
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
jne 0x13a626b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x13a6e004]
cmp eax, edi
je 0x13a628b3
test byte [eax + 0x1c], 2
je 0x13a628b3
cmp byte [eax + 0x19], 2
jb 0x13a628b3
push dword [ebp - 4]
push 0x13a024bc
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.13a5a529
jmp 0x13a628b3
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x13a626cb
test al, 0x10
je 0x13a626cb
and dword [ebp - 4], 0
jmp 0x13a628b3
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x13a626d0
mov edi, dword [sym.imp.msvcrt.dll_wcsncmp]
push ebx
sub eax, edx
push 2
sar eax, 1
pop ebx
cmp eax, ebx
jbe 0x13a62723
push ebx
push 0x13a02554
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x13a62723
mov edi, dword [sym.imp.msvcrt.dll_wcschr]
push 0x5c
add esi, 4
push esi
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x13a62791
push 0x5c
add esi, ebx
push esi
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x13a62791
jmp 0x13a6274c
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x13a62728
sub eax, edx
sar eax, 1
cmp eax, 1
jbe 0x13a62750
push 1
push 0x13a01460
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x13a62750
add esi, ebx
jmp 0x13a6278d
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x13a62755
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x13a6278d
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswalpha]
pop ecx
test eax, eax
je 0x13a6278d
push ebx
lea eax, [esi + 2]
push 0x13a0254c
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x13a6278d
add esi, 6
test esi, esi
jne 0x13a627ef
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x13a627ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0xb7
je 0x13a627e6
mov eax, dword [0x13a6e004]
cmp eax, 0x13a6e004
je 0x13a628b2
test byte [eax + 0x1c], 2
je 0x13a628b2
cmp byte [eax + 0x19], 2
jb 0x13a628b2
push dword [ebp - 4]
push dword [ebp + 8]
push 0x13a024bc
push 0x14
jmp 0x13a628a7
and dword [ebp - 4], 0
jmp 0x13a628b2
add esi, ebx
cmp word [esi], 0
je 0x13a628b2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0xb7
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
mov esi, eax
push 0
push dword [ebp + 8]
test esi, esi
je 0x13a62841
xor eax, eax
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x13a62831
call edi
cmp eax, ebx
jne 0x13a6287d
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
cmp word [esi], 0
jne 0x13a62806
jmp 0x13a628b2
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x13a628b2
call edi
cmp eax, ebx
je 0x13a628b2
call edi
mov dword [ebp - 4], eax
mov eax, dword [0x13a6e004]
cmp eax, 0x13a6e004
je 0x13a628b2
test byte [eax + 0x1c], 2
je 0x13a628b2
cmp byte [eax + 0x19], 2
jb 0x13a628b2
push dword [ebp - 4]
push dword [ebp + 8]
push 0x13a024bc
push 0x15
jmp 0x13a628a7
call edi
mov dword [ebp - 4], eax
mov eax, dword [0x13a6e004]
cmp eax, 0x13a6e004
je 0x13a628b2
test byte [eax + 0x1c], 2
je 0x13a628b2
cmp byte [eax + 0x19], 2
jb 0x13a628b2
push dword [ebp - 4]
push dword [ebp + 8]
push 0x13a024bc
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.13a58ce7
pop ebx
push dword [ebp + 8]
call fcn.13a639b4
cmp dword [ebp - 4], 0
pop edi
pop esi
je 0x13a628cc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 4], eax
sete al
leave
ret 4