Function at 0x14001d750
Capabilities:
Check if file exists
Get common file path
Get file attributes
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20d0]
mov eax, 0x21d0
call fcn.14003f340
sub rsp, rax
mov rax, qword [0x140089048]
xor rax, rsp
mov qword [rbp + 0x20c0], rax
xor esi, esi
mov rcx, qword [0x14008c3b8]
test rcx, rcx
jne 0x14001d7b0
call fcn.14001d330
test al, al
je 0x14001e24a
mov rcx, qword [0x14008c3b8]
xor dil, dil
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x68], rsi
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
call qword [rax + 0x68]
test eax, eax
js 0x14001e235
mov qword [rsp + 0x60], rsi
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001e28b
mov qword [rsp + 0x60], rsi
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
lea rdx, [0x140074d98]
call qword [rax]
test eax, eax
js 0x14001e224
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rsi
lea r8, [rsp + 0x78]
lea rdx, [0x14007468c]
mov ecx, 0x65
call fcn.14001ca00
mov rax, qword [rbp - 0x80]
mov r12, qword [rsp + 0x78]
sub rax, r12
mov qword [rsp + 0x70], rax
je 0x14001e1ed
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0xc0]
call fcn.140040e00
lea rdx, [rbp + 0xc0]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14001e1ed
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x20], xmm1
mov r8d, 0x11
lea rdx, str.FLiNGTrainer.tmp
lea rcx, [rbp + 0x10]
call fcn.1400080e0
nop
lea rax, [rbp + 0xc0]
mov r9, 0xffffffffffffffff
nop dword [rax]
inc r9
cmp word [rax + r9*2], 0
jne 0x14001d8a0
lea r8, [rbp + 0xc0]
lea rcx, [rbp + 0x10]
call fcn.1400109a0
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x14001d928
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001d923
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e296
call fcn.14003ec90
movdqa xmm0, xmmword [0x14007d9e0]
movdqu xmmword [rbp + 0x20], xmm0
mov word [rbp + 0x10], si
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
mov r8d, 1
lea rdx, [0x140070f44]
lea rcx, [rbp - 0x50]
call fcn.1400080e0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x48], rsi
mov r8d, 2
lea rdx, [0x140074d7c]
lea rcx, [rbp + 0x30]
call fcn.1400080e0
nop
mov rbx, rsi
mov r15, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x40]
mov r14, qword [rbp + 0x30]
mov rsi, qword [rbp - 0x40]
nop dword [rax + rax]
lea r9, [rbp + 0x30]
cmp r15, 8
cmovae r9, r14
lea r10, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r10, qword [rbp - 0x70]
mov rax, qword [rbp - 0x60]
cmp rdi, rax
ja 0x14001da03
sub rax, rdi
cmp rbx, rax
ja 0x14001da03
test rdi, rdi
je 0x14001db6a
lea r11, [rax + 1]
lea r11, [r10 + r11*2]
lea rbx, [r10 + rbx*2]
mov rax, r11
sub rax, rbx
sar rax, 1
je 0x14001da03
movzx ecx, word [r9]
nop
cmp word [rbx], cx
je 0x14001db32
add rbx, 2
sub rax, 1
jne 0x14001d9f0
cmp r15, 8
jb 0x14001da3f
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x14001da36
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e29c
mov rcx, r14
call fcn.14003ec90
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14001da7f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001da7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e2c0
call fcn.14003ec90
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
xor edi, edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rdi + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14001e0f8
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rdi
lea rbx, [rbp - 0x70]
mov rax, qword [rbp - 0x58]
cmp rax, 8
cmovae rbx, qword [rbp - 0x70]
mov r13, qword [rbp - 0x60]
movabs r14, 0x7ffffffffffffffe
mov qword [rsp + 0x58], r14
cmp r13, r14
ja 0x14001e2a2
cmp r13, 8
jae 0x14001dbab
mov qword [rbp - 0x40], r13
mov r14d, 7
mov qword [rsp + 0x58], r14
mov qword [rbp - 0x38], r14
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x50], xmm0
movq rsi, xmm0
mov qword [rsp + 0x48], rsi
jmp 0x14001dc76
test rbx, rbx
je 0x14001da03
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x14001db64
mov r8, rbx
sub r8, r9
nop dword [rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x14001dba2
add rcx, 2
sub rdx, 1
jne 0x14001db50
sub rbx, r10
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x14001da03
lea r9, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae r9, qword [rbp - 0x50]
mov qword [rsp + 0x20], rsi
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140021ef0
mov rsi, qword [rbp - 0x40]
add rbx, rsi
jmp 0x14001d9a0
add rbx, 2
jmp 0x14001d9e0
mov qword [rbp - 0x38], 7
mov rax, r13
or rax, 7
cmp rax, r14
jbe 0x14001dbcf
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14001dc06
mov r14, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r14, rcx
mov qword [rsp + 0x58], r14
lea rcx, [r14 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14001e2c6
add rcx, rcx
cmp rcx, 0x1000
jb 0x14001dc37
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001e2c6
mov rcx, rax
call fcn.14003ecc4
test rax, rax
je 0x14001e2c0
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsp + 0x48], rsi
mov qword [rsi - 8], rax
jmp 0x14001dc53
test rcx, rcx
je 0x14001dc4b
call fcn.14003ecc4
mov rsi, rax
mov qword [rsp + 0x48], rax
jmp 0x14001dc53
mov rsi, rdi
mov qword [rsp + 0x48], rdi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r14
lea r8, [r13*2 + 2]
mov rdx, rbx
mov rcx, rsi
call fcn.1400411c0
mov rax, qword [rbp - 0x58]
mov r12d, edi
mov ebx, 0x2d
lea r9, [rbp - 0x50]
cmp r14, 8
cmovae r9, rsi
cmp r13, rax
ja 0x14001dcc3
lea rdi, [rbp - 0x70]
cmp rax, 8
cmovae rdi, qword [rbp - 0x70]
mov qword [rbp - 0x60], r13
lea rbx, [r13*2]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call fcn.1400411c0
xor esi, esi
mov word [rdi + rbx], si
xor edi, edi
lea ebx, [rsi + 0x2d]
jmp 0x14001dce5
mov rdx, r13
lea rcx, [rbp - 0x70]
call fcn.140008730
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x58], rax
mov r13, qword [rbp - 0x40]
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rdi
mov qword [rbp + 0x68], rdi
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp + 0x50]
call fcn.1400080e0
nop
lea r9, [rbp + 0xba]
mov r8d, r12d
test r12d, r12d
jns 0x14001dd60
neg r8d
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 0x14001dd20
add r9, 0xfffffffffffffffe
mov word [r9], bx
jmp 0x14001dd90
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 0x14001dd60
lea r8, [rbp + 0xba]
mov rdx, r9
lea rcx, [rbp + 0x70]
call fcn.14001e300
nop
mov r9d, 1
lea r8, [0x140074d94]
lea rcx, [rbp + 0x70]
call fcn.1400109a0
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp - 0x30]
call fcn.140007d10
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rbx, rdi
mov r15, qword [rbp + 0x68]
cmp r15, 8
setae byte [rsp + 0x40]
mov rdi, qword [rbp + 0x60]
mov r14, qword [rbp + 0x50]
mov rsi, qword [rbp]
nop word [rax + rax]
lea r9, [rbp + 0x50]
cmp r15, 8
cmovae r9, r14
lea r11, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r11, qword [rbp - 0x70]
mov rax, qword [rbp - 0x60]
cmp rdi, rax
ja 0x14001dea3
sub rax, rdi
cmp rbx, rax
ja 0x14001dea3
test rdi, rdi
je 0x14001e06a
lea r10, [rax + 1]
lea r10, [r11 + r10*2]
lea rbx, [r11 + rbx*2]
mov rax, r10
sub rax, rbx
sar rax, 1
je 0x14001dea3
movzx ecx, word [r9]
nop
cmp word [rbx], cx
je 0x14001e02d
add rbx, 2
sub rax, 1
jne 0x14001de90
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x14001dee4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001dede
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e2a8
call fcn.14003ec90
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14001df24
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001df1f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e2ae
call fcn.14003ec90
xor edi, edi
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], di
mov rdx, qword [rbp + 0x88]
cmp rdx, 8
jb 0x14001df79
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001df74
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e2b4
call fcn.14003ec90
mov qword [rbp + 0x80], rdi
mov qword [rbp + 0x88], 7
mov word [rbp + 0x70], di
cmp byte [rsp + 0x40], 0
je 0x14001dfcb
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x14001dfc3
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e2ba
mov rcx, r14
call fcn.14003ec90
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14001e0ab
inc r12d
cmp r12d, 0x32
jge 0x14001e0ab
mov rax, qword [rbp - 0x58]
mov rsi, qword [rsp + 0x48]
mov r14, qword [rsp + 0x58]
jmp 0x14001dc79
test rbx, rbx
je 0x14001dea3
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x14001e064
mov r8, rbx
sub r8, r9
nop word [rax + rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x14001e0a2
add rcx, 2
sub rdx, 1
jne 0x14001e050
sub rbx, r11
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x14001dea3
lea r9, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae r9, qword [rbp - 0x10]
mov qword [rsp + 0x20], rsi
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140021ef0
mov rsi, qword [rbp]
add rbx, rsi
jmp 0x14001de40
add rbx, 2
jmp 0x14001de80
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x14001e0ed
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e0e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e2c0
call fcn.14003ec90
mov r12, qword [rsp + 0x78]
cmp rbx, 0xffffffffffffffff
je 0x14001e120
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x70]
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001e1a8
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
jb 0x14001e18f
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x14001e18f
mov rbx, rdi
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x48], edi
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001e2cc
mov rax, qword [rcx]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x190]
mov edi, eax
shr edi, 0x1f
xor dil, 1
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x14001e1ac
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14001e280
jmp 0x14001e155
mov edi, dword [rsp + 0x50]
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14001e1ed
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001e1e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e2d7
call fcn.14003ec90
nop
test r12, r12
je 0x14001e224
mov rdx, qword [rbp - 0x78]
sub rdx, r12
mov rax, r12
cmp rdx, 0x1000
jb 0x14001e21b
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001e27a
mov rcx, r12
call fcn.14003ec90
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14001e235
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001e246
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x20c0]
xor rcx, rsp
call fcn.14003ec70
lea r11, [rsp + 0x21d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400456e4
nop
mov ecx, 0x8007000e
call fcn.14001cdd0
nop
mov ecx, 0x80004003
call fcn.14003cf80
nop
call fcn.1400456e4
nop
call fcn.1400456e4
nop
call fcn.1400012c0
nop
call fcn.1400456e4
nop
call fcn.1400456e4
nop
call fcn.1400456e4
nop
call fcn.1400456e4
nop
call fcn.1400456e4
int3
call fcn.140001220
nop
mov ecx, 0x80004003
call fcn.14003cf80
nop
call fcn.1400456e4
int3