Function at 0x6460e7fa
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 [0x64617004]
cmp eax, 0x64617004
je 0x6460e837
test byte [eax + 0x1c], 2
je 0x6460e837
cmp byte [eax + 0x19], 5
jb 0x6460e837
push dword [eax + 0x14]
mov edx, 0x64602660
push dword [eax + 0x10]
push 0x12
pop ecx
call fcn.64604423
mov ecx, esi
call fcn.6460eabc
mov esi, eax
mov ebx, esi
test esi, esi
jne 0x6460e88b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460ea9c
test byte [eax + 0x1c], 2
je 0x6460ea9c
cmp byte [eax + 0x19], 2
jb 0x6460ea9c
push edi
push dword [eax + 0x14]
mov edx, 0x64602660
push dword [eax + 0x10]
push 0x13
pop ecx
call fcn.64604441
jmp 0x6460ea9c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6460e8a2
test al, 0x10
je 0x6460e8a2
xor eax, eax
jmp 0x6460ea9c
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x6460e8a7
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jbe 0x6460e903
push 2
push 0x646025d0
push esi
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x6460e903
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 0x6460e983
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 0x6460e983
jmp 0x6460e932
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x6460e908
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jbe 0x6460e937
push 1
push 0x64601318
push esi
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x6460e937
add esi, 2
jmp 0x6460e97b
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x6460e93c
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x6460e97b
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswalpha]
pop ecx
test eax, eax
je 0x6460e97b
push 2
lea eax, [esi + 2]
push 0x646025d8
push eax
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x6460e97b
add esi, 6
test esi, esi
jne 0x6460ea16
xor eax, eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x6460ea16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
je 0x6460e9d8
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460ea9c
test byte [eax + 0x1c], 2
je 0x6460ea9c
cmp byte [eax + 0x19], 2
jb 0x6460ea9c
push edi
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x14
jmp 0x6460ea91
xor eax, eax
mov edi, eax
jmp 0x6460ea9c
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 0x6460ea4e
push eax
push ebx
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x6460ea10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x6460ea22
push 0x5c
pop eax
mov word [esi], ax
add esi, 2
xor eax, eax
cmp word [esi], ax
jne 0x6460e9e1
jmp 0x6460ea9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460ea9c
test byte [eax + 0x1c], 2
je 0x6460ea9c
cmp byte [eax + 0x19], 2
jb 0x6460ea9c
push edi
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x16
jmp 0x6460ea91
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x6460ea9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x6460ea9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x64617004]
cmp eax, 0x64617004
je 0x6460ea9c
test byte [eax + 0x1c], 2
je 0x6460ea9c
cmp byte [eax + 0x19], 2
jb 0x6460ea9c
push edi
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x15
mov edx, 0x64602660
pop ecx
call fcn.64604465
mov ecx, ebx
call fcn.6460ce5b
test edi, edi
je 0x6460eaae
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret