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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7f0]
sub rsp, 0x8f0
mov rax, qword [0x14005a4a8]
xor rax, rsp
mov qword [rbp + 0x7e0], rax
movzx r13d, r8b
mov r14, rdx
mov r15, rcx
mov qword [rsp + 0x50], rcx
mov rcx, rdx
cmp qword [rdx + 0x18], 8
jb 0x140013b6c
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140013b7b
test al, 0x10
jne 0x140013bbd
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x140013b88
mov rcx, qword [r14]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140013bbd
xor esi, esi
mov qword [r15 + 0x10], rsi
mov qword [r15 + 0x18], 7
mov word [r15], si
xor r8d, r8d
lea rdx, [0x14004312c]
mov rcx, r15
call fcn.1400015f0
jmp 0x140013f34
xor esi, esi
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], si
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], si
mov r12d, esi
lea rbx, [0x1400433a8]
lea r10, str.Resource
mov r11d, 0x2d
lea r9, [rbp - 0x26]
test r12d, r12d
jns 0x140013c49
mov ecx, r12d
neg ecx
nop word [rax + rax]
sub r9, 2
mov eax, 0xcccccccd
mul ecx
shr edx, 3
movzx eax, dx
shl ax, 2
lea r8d, [rax + rdx]
add r8w, r8w
sub cx, r8w
add cx, 0x30
mov word [r9], cx
mov ecx, edx
test edx, edx
jne 0x140013c10
add r9, 0xfffffffffffffffe
mov word [r9], r11w
jmp 0x140013c80
mov r8d, r12d
nop dword [rax]
sub r9, 2
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dx
shl ax, 2
lea ecx, [rax + rdx]
add cx, cx
sub r8w, cx
add r8w, 0x30
mov word [r9], r8w
mov r8d, edx
test edx, edx
jne 0x140013c50
mov rcx, rsi
mov qword [rsp + 0x40], rcx
mov edx, 7
mov qword [rsp + 0x48], rdx
mov word [rsp + 0x30], si
lea rax, [rbp - 0x26]
cmp r9, rax
je 0x140013cc8
lea r8, [rbp - 0x26]
sub r8, r9
sar r8, 1
mov rdx, r9
lea rcx, [rsp + 0x30]
call fcn.1400015f0
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea r10, str.Resource
mov rax, rdx
sub rax, rcx
cmp rax, 8
jb 0x140013d6f
lea rax, [rcx + 8]
mov qword [rsp + 0x40], rax
lea rdi, [rsp + 0x30]
cmp rdx, 8
cmovae rdi, qword [rsp + 0x30]
lea r8, [rcx + rcx]
cmp rbx, rdi
jbe 0x140013d17
lea rax, [rdi + r8]
cmp r10, rax
ja 0x140013d17
cmp rdi, r10
ja 0x140013d0c
mov rbx, rsi
jmp 0x140013d1c
mov rbx, rdi
sub rbx, r10
sar rbx, 1
jmp 0x140013d1c
mov ebx, 8
lea rcx, [rdi + 0x10]
add r8, 2
mov rdx, rdi
call fcn.140024d40
add rbx, rbx
mov r8, rbx
lea rdx, str.Resource
mov rcx, rdi
call fcn.140024d40
lea rcx, [rbx + rdi]
mov r8d, 0x10
sub r8, rbx
lea rdx, str.Resource
add rdx, 0x10
add rdx, rbx
call fcn.140024d40
lea rax, [rsp + 0x30]
lea rbx, [0x1400433a8]
jmp 0x140013d91
mov qword [rsp + 0x28], 8
mov qword [rsp + 0x20], r10
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 8]
lea rcx, [rsp + 0x30]
call fcn.140011ef0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm0
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
lea rcx, [rsp + 0x70]
call fcn.14000a660
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x80], xmm1
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140013e11
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013e0b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013f61
call fcn.1400229fc
nop
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp - 0x20]
call fcn.1400253f0
lea r8, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae r8, qword [rsp + 0x70]
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x140013e3f
mov rdx, qword [r14]
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
lea rax, [rbp - 0x20]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140013e70
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x30]
call fcn.1400015f0
lea rcx, [rbp - 0x70]
call fcn.14000a660
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbp - 0x60], xmm1
lea eax, [r13 + 1]
add r12d, eax
lea rcx, [rbp - 0x70]
movq rdx, xmm0
psrldq xmm1, 8
movq rax, xmm1
cmp rax, 8
cmovae rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140013bea
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [r15], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [r15 + 0x10], xmm1
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], si
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140013f34
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013f2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013f67
call fcn.1400229fc
nop
mov rax, r15
mov rcx, qword [rbp + 0x7e0]
xor rcx, rsp
call fcn.140022dc0
mov rbx, qword [rsp + 0x940]
add rsp, 0x8f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400294dc
nop
call fcn.1400294dc
int3