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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor eax, eax
mov esi, ecx
push edi
mov dword [ebp - 4], eax
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c6126
test byte [eax + 0x1c], 2
je 0x642c6126
cmp byte [eax + 0x19], 5
jb 0x642c6126
push dword [eax + 0x14]
mov edx, 0x642c1914
push dword [eax + 0x10]
push 0x12
pop ecx
call fcn.642c1faa
mov ecx, esi
call fcn.642c63a9
mov esi, eax
mov ebx, esi
test esi, esi
jne 0x642c617a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c638b
test byte [eax + 0x1c], 2
je 0x642c638b
cmp byte [eax + 0x19], 2
jb 0x642c638b
push edi
push dword [eax + 0x14]
mov edx, 0x642c1914
push dword [eax + 0x10]
push 0x13
pop ecx
call fcn.642c1fc8
jmp 0x642c638b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x642c6191
test al, 0x10
je 0x642c6191
xor eax, eax
jmp 0x642c638b
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x642c6196
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jbe 0x642c61f2
push 2
push 0x642c1900
push esi
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x642c61f2
lea eax, [esi + 4]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x642c6272
lea eax, [esi + 2]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x642c6272
jmp 0x642c6221
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x642c61f7
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x642c6226
push 1
push 0x642c11cc
push esi
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x642c6226
add esi, 2
jmp 0x642c626a
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x642c622b
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x642c626a
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswalpha]
pop ecx
test eax, eax
je 0x642c626a
push 2
lea eax, [esi + 2]
push 0x642c1908
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x642c626a
add esi, 6
test esi, esi
jne 0x642c6305
xor eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x642c6305
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
je 0x642c62c7
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c638b
test byte [eax + 0x1c], 2
je 0x642c638b
cmp byte [eax + 0x19], 2
jb 0x642c638b
push edi
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
jmp 0x642c6380
xor eax, eax
mov edi, eax
jmp 0x642c638b
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
mov esi, eax
xor eax, eax
pop ecx
pop ecx
test esi, esi
je 0x642c633d
push eax
push ebx
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x642c62ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x642c6311
push 0x5c
pop eax
mov word [esi], ax
add esi, 2
xor eax, eax
cmp word [esi], ax
jne 0x642c62d0
jmp 0x642c638b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c638b
test byte [eax + 0x1c], 2
je 0x642c638b
cmp byte [eax + 0x19], 2
jb 0x642c638b
push edi
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
jmp 0x642c6380
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x642c638b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x642c638b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x642c638b
test byte [eax + 0x1c], 2
je 0x642c638b
cmp byte [eax + 0x19], 2
jb 0x642c638b
push edi
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x15
mov edx, 0x642c1914
pop ecx
call fcn.642c1fec
mov ecx, ebx
call fcn.642c4f6b
test edi, edi
je 0x642c639d
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebx
leave
ret