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

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov rax, rsp
sub rsp, 0x68
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rbx, rcx
lea rcx, [rax + 0x38]
call fcn.10001fee0
nop
lea rax, [rsp + 0x98]
mov qword [rsp + 0xa8], rax
mov rdx, rbx
lea rcx, [rsp + 0x98]
call fcn.10001ff10
nop
xor r8d, r8d
lea rdx, [rsp + 0xa0]
mov rcx, rax
call fcn.1000349f8
xor edi, edi
cmp eax, edi
je 0x100032b49
jmp 0x100032e58
mov rbx, qword [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100032b6e
shr eax, 4
and al, 1
je 0x100032b6e
mov dil, 1
jmp 0x100032e58
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], 0xa
mov esi, 3
cmp dword [rbx - 0x10], esi
jl 0x100032e4a
cmp dword [rbx - 0x10], edi
jge 0x100032bad
mov ecx, 0x80070057
call fcn.10001fd10
int3
movzx ecx, word [rbx]
call qword [sym.imp.msvcrt.dll_iswalpha]
cmp eax, edi
je 0x100032bee
cmp dword [rbx - 0x10], 1
jge 0x100032bcb
mov ecx, 0x80070057
call fcn.10001fd10
int3
cmp word [rbx + 2], 0x3a
jne 0x100032bee
cmp dword [rbx - 0x10], 2
jge 0x100032be3
mov ecx, 0x80070057
call fcn.10001fd10
int3
cmp word [rbx + 4], 0x5c
je 0x100032c9a
cmp dword [rbx - 0x10], edi
jge 0x100032bfe
mov ecx, 0x80070057
call fcn.10001fd10
int3
cmp word [rbx], 0x5c
jne 0x100032e4a
cmp dword [rbx - 0x10], 1
jge 0x100032c19
mov ecx, 0x80070057
call fcn.10001fd10
int3
cmp word [rbx + 2], 0x5c
jne 0x100032e4a
cmp dword [rbx - 0x10], 2
jle 0x100032e4a
lea rcx, [rbx + 4]
mov dx, 0x5c
call qword [sym.imp.msvcrt.dll_wcschr]
cmp rax, rdi
je 0x100032e4a
sub rax, rbx
sar rax, 1
cmp eax, edi
jl 0x100032e4a
lea ecx, [rax + 1]
cmp ecx, edi
jl 0x100032c84
cmp ecx, dword [rbx - 0x10]
jge 0x100032c84
movsxd rax, ecx
lea rcx, [rbx + rax*2]
mov dx, 0x5c
call qword [sym.imp.msvcrt.dll_wcschr]
mov rsi, rax
cmp rax, rdi
je 0x100032e4a
sub rsi, rbx
sar rsi, 1
jmp 0x100032c89
mov esi, 0xffffffff
cmp esi, edi
jl 0x100032e4a
add esi, 1
js 0x100032e4a
mov dx, 0x5c
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcsrchr]
mov rbp, rax
cmp rax, rdi
jne 0x100032cb6
mov ebp, 0xffffffff
jmp 0x100032cbc
sub rbp, rbx
sar rbp, 1
cmp ebp, esi
jg 0x100032cc4
mov ebp, esi
jmp 0x100032cc7
add ebp, 1
mov r8d, ebp
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0xa0]
call fcn.100035e10
nop
mov r9, qword [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rax]
lea rcx, [rsp + 0x30]
call fcn.10001f560
mov rcx, qword [rsp + 0x30]
cmp rcx, rdi
je 0x100032d05
mov qword [rcx + 8], rax
jmp 0x100032d0a
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0xa8]
call fcn.10001fba0
cmp ebp, esi
jle 0x100032d77
lea r8d, [rbp - 1]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0xa0]
call fcn.1000282f0
nop
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.10001ecdc
nop
lea rcx, [rsp + 0x20]
call fcn.10001fba0
mov rbx, qword [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100032c9a
shr eax, 4
and al, 1
je 0x100032c9a
cmp qword [rsp + 0x40], rdi
jne 0x100032d91
lea rcx, [rsp + 0x30]
call fcn.10001f4c0
nop
mov dil, 1
jmp 0x100032e58
mov rbx, qword [rsp + 0x30]
cmp rbx, rdi
je 0x100032e2e
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x98]
call fcn.10001ff10
nop
mov eax, edi
cmp rbx, rdi
setne al
cmp eax, edi
je 0x100032e23
mov rdx, rbx
mov rbx, qword [rbx]
add rdx, 0x10
lea r8, [rsp + 0xa0]
lea rcx, [rsp + 0x98]
call fcn.1000327cc
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, edi
je 0x100032e08
lea rcx, [rsp + 0x98]
call fcn.10001fba0
cmp rbx, rdi
jne 0x100032d9f
jmp 0x100032e2e
lea rcx, [rsp + 0x98]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x30]
call fcn.10001f4c0
nop
jmp 0x100032e58
mov ecx, 0x80004005
call fcn.10001fd10
nop
lea rcx, [rsp + 0x30]
call fcn.10001f4c0
nop
lea rcx, [rsp + 0xa0]
call fcn.10001fba0
mov al, 1
jmp 0x100032e68
lea rcx, [rsp + 0x30]
call fcn.10001f4c0
nop
mov dil, 1
lea rcx, [rsp + 0xa0]
call fcn.10001fba0
mov al, dil
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret