Function at 0x14001bac0
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2c0]
sub rsp, 0x3c0
mov rax, qword [0x1400b2020]
xor rax, rsp
mov qword [rbp + 0x2b0], rax
mov r13, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0xa0]
call fcn.14005d650
lea rdx, [rbp + 0xa0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14001bf0e
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], bx
lea rax, [rbp + 0xa0]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x14001bb50
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.1400024c0
nop
lea rbx, [rsp + 0x38]
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x50]
cmp r14, 8
cmovae rbx, r15
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x14001bc53
mov edi, pe_nt_image_headers64
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14005d650
lea rcx, [0x14009fd54]
lea rdx, [0x14009fd56]
movzx eax, word [rcx]
cmp ax, di
jae 0x14001bbfb
movzx eax, al
mov byte [rbp + rax - 0x60], 1
add rcx, 2
cmp rcx, rdx
jne 0x14001bbb2
lea rcx, [rsi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rbx + rax*2]
movzx eax, word [rcx]
cmp ax, di
jae 0x14001bbf0
cmp byte [rbp + rax - 0x60], 0
jne 0x14001bc4b
cmp rcx, rbx
je 0x14001bc53
sub rcx, 2
jmp 0x14001bbe1
lea rcx, [rsi - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rbx + rax*2]
nop dword [rax]
nop word [rax + rax]
mov edx, 1
lea rax, [0x14009fd54]
movzx r8d, word [rcx]
cmp word [rax], r8w
je 0x14001bc4b
add rax, 2
sub rdx, 1
jne 0x14001bc30
cmp rcx, rbx
je 0x14001bc53
sub rcx, 2
jmp 0x14001bc20
sub rcx, rbx
sar rcx, 1
jmp 0x14001bc5a
mov rcx, 0xffffffffffffffff
lea rax, [rsi - 1]
mov r12d, 0x5c
cmp rcx, rax
je 0x14001bcc6
mov rax, r14
sub rax, rsi
cmp rax, 1
jb 0x14001bc98
lea rcx, [rsi + 1]
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x38]
cmp r14, 8
cmovae rax, r15
mov word [rax + rsi*2], r12w
xor edx, edx
mov word [rax + rcx*2], dx
jmp 0x14001bcb7
mov qword [rsp + 0x20], 1
lea r9, [0x14009fd54]
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.1400014c0
mov r15, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov rax, r14
sub rax, rsi
cmp rax, 0x10
jb 0x14001bd06
lea rdi, [rsi + 0x10]
mov qword [rsp + 0x48], rdi
lea rbx, [rsp + 0x38]
cmp r14, 8
cmovae rbx, r15
lea rcx, [rbx + rsi*2]
mov r8d, 0x20
lea rdx, str.FLiNGTrainerTemp
call fcn.14005d240
xor esi, esi
mov word [rbx + rdi*2], si
jmp 0x14001bd27
mov qword [rsp + 0x20], 0x10
lea r9, str.FLiNGTrainerTemp
mov edx, 0x10
lea rcx, [rsp + 0x38]
call fcn.1400014c0
xor esi, esi
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14001bd5c
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001bed0
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], si
mov dword [rsp + 0x30], 1
mov rdx, qword [rsp + 0x48]
inc rdx
lea rcx, [rsp + 0x58]
call fcn.140001670
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.140001730
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov rax, r8
sub rax, rdx
cmp rax, 1
jb 0x14001bdf1
lea rcx, [rdx + 1]
mov qword [rsp + 0x68], rcx
lea rax, [rsp + 0x58]
cmp r8, 8
cmovae rax, qword [rsp + 0x58]
mov word [rax + rdx*2], r12w
mov word [rax + rcx*2], si
jmp 0x14001be10
mov qword [rsp + 0x20], 1
lea r9, [0x14009fd54]
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.1400014c0
lea rdx, [r13 + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140001730
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
lea rcx, [r13 + 0x50]
lea rdx, [rsp + 0x78]
call fcn.140002240
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x14001be8d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001be87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001bf44
call fcn.14003e884
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14001bed0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001beca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001bf4a
call fcn.14003e884
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14001bf0e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bf09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001bf3e
call fcn.14003e884
mov rcx, qword [rbp + 0x2b0]
xor rcx, rsp
call fcn.14003e860
lea r11, [rsp + 0x3c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140061cdc
nop
call fcn.140061cdc
nop
call fcn.140061cdc
int3