Function at 0x1020317
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 [section..data]
mov edi, section..data
cmp eax, edi
je 0x102034f
test byte [eax + 0x1c], 2
je 0x102034f
cmp byte [eax + 0x19], 5
jb 0x102034f
push 0x100575c
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01006ff8
push dword [ebp + 8]
call fcn.010201ab
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
jne 0x10203a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, edi
je 0x10205a5
test byte [eax + 0x1c], 2
je 0x10205a5
cmp byte [eax + 0x19], 2
jb 0x10205a5
push dword [ebp - 4]
push 0x100575c
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100701e
jmp 0x10205a5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10203bd
test al, 0x10
je 0x10203bd
and dword [ebp - 4], 0
jmp 0x10205a5
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10203c2
mov edi, dword [sym.imp.msvcrt.dll_wcsncmp]
push ebx
sub eax, edx
push 2
sar eax, 1
pop ebx
cmp eax, ebx
jbe 0x1020415
push ebx
push 0x1005778
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x1020415
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 0x1020483
push 0x5c
add esi, ebx
push esi
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1020483
jmp 0x102043e
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x102041a
sub eax, edx
sar eax, 1
cmp eax, 1
jbe 0x1020442
push 1
push 0x1004fcc
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x1020442
add esi, ebx
jmp 0x102047f
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x1020447
sub eax, edx
sar eax, 1
cmp eax, 3
jbe 0x102047f
movzx eax, word [esi]
push eax
call dword [sym.imp.msvcrt.dll_iswalpha]
pop ecx
test eax, eax
je 0x102047f
push ebx
lea eax, [esi + 2]
push 0x1005770
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x102047f
add esi, 6
test esi, esi
jne 0x10204e1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10204e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0xb7
je 0x10204d8
mov eax, dword [section..data]
cmp eax, section..data
je 0x10205a4
test byte [eax + 0x1c], 2
je 0x10205a4
cmp byte [eax + 0x19], 2
jb 0x10205a4
push dword [ebp - 4]
push dword [ebp + 8]
push 0x100575c
push 0x14
jmp 0x1020599
and dword [ebp - 4], 0
jmp 0x10205a4
add esi, ebx
cmp word [esi], 0
je 0x10205a4
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 0x1020533
xor eax, eax
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1020523
call edi
cmp eax, ebx
jne 0x102056f
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
cmp word [esi], 0
jne 0x10204f8
jmp 0x10205a4
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10205a4
call edi
cmp eax, ebx
je 0x10205a4
call edi
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10205a4
test byte [eax + 0x1c], 2
je 0x10205a4
cmp byte [eax + 0x19], 2
jb 0x10205a4
push dword [ebp - 4]
push dword [ebp + 8]
push 0x100575c
push 0x15
jmp 0x1020599
call edi
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10205a4
test byte [eax + 0x1c], 2
je 0x10205a4
cmp byte [eax + 0x19], 2
jb 0x10205a4
push dword [ebp - 4]
push dword [ebp + 8]
push 0x100575c
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101e2ac
pop ebx
push dword [ebp + 8]
call fcn.010206a2
cmp dword [ebp - 4], 0
pop edi
pop esi
je 0x10205be
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 4], eax
sete al
leave
ret 4