Function at 0x1400024b0
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.140004aa0
sub rsp, rax
mov rax, qword [0x140028028]
xor rax, rsp
mov qword [rbp + 0x20c0], rax
xor ebx, ebx
mov rcx, qword [0x140029f28]
test rcx, rcx
jne 0x140002510
call fcn.140001c80
test al, al
je 0x140002f26
mov rcx, qword [0x140029f28]
xor dil, dil
mov dword [rsp + 0x40], edi
mov qword [rbp + 0x68], rbx
mov rax, qword [rcx]
lea rdx, [rbp + 0x68]
call qword [rax + 0x68]
test eax, eax
js 0x140002f12
mov qword [rbp + 0x60], rbx
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x140002f67
mov qword [rbp + 0x60], rbx
mov rax, qword [rcx]
lea r8, [rbp + 0x60]
lea rdx, [0x140024750]
call qword [rax]
test eax, eax
js 0x140002f02
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x78], xmm1
mov qword [rbp + 0x88], rbx
lea r8, [rbp + 0x78]
call fcn.140002060
mov rax, qword [rbp + 0x80]
mov r13, qword [rbp + 0x78]
sub rax, r13
mov qword [rbp + 0x70], rax
je 0x140002ec9
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0xc0]
call fcn.140006380
lea rdx, [rbp + 0xc0]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140002ec9
lea rdx, str.FLiNGTrainerApp.tmp
lea rcx, [rbp - 0x48]
call fcn.1400030b0
nop
mov r8, rax
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x20]
call fcn.1400034d0
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x14000261d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002618
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002f72
call fcn.14000475c
movdqa xmm0, xmmword [0x1400247b0]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], bx
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
mov esi, 1
mov qword [rbp + 0x50], rsi
mov r14d, 7
mov qword [rbp + 0x58], r14
mov dword [rbp + 0x40], 0x5c
lea rdx, [0x1400246fc]
lea rcx, [rbp - 0x28]
call fcn.1400030b0
nop
mov r12, qword [rbp - 0x10]
mov rdi, qword [rbp - 0x18]
mov r15, qword [rbp - 0x28]
nop dword [rax]
lea r9, [rbp - 0x28]
cmp r12, 8
cmovae r9, r15
lea r10, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae r10, qword [rbp + 0x20]
mov rax, qword [rbp + 0x30]
cmp rdi, rax
ja 0x1400026d3
sub rax, rdi
cmp rbx, rax
ja 0x1400026d3
test rdi, rdi
je 0x14000283d
lea r11, [rax + 1]
lea r11, [r10 + r11*2]
lea rbx, [r10 + rbx*2]
mov rax, r11
sub rax, rbx
sar rax, 1
je 0x1400026d3
movzx ecx, word [r9]
nop
cmp word [rbx], cx
je 0x140002809
add rbx, 2
sub rax, 1
jne 0x1400026c0
cmp r12, 8
jb 0x14000270f
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x140002706
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002f78
mov rcx, r15
call fcn.14000475c
nop
cmp r14, 8
jb 0x14000274b
lea rdx, [r14*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002746
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002f9c
call fcn.14000475c
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rcx, qword [rbp + 0x20]
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r12 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002dda
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x58], r12
lea rbx, [rbp + 0x20]
mov rax, qword [rbp + 0x38]
cmp rax, 8
cmovae rbx, qword [rbp + 0x20]
mov r14, qword [rbp + 0x30]
mov qword [rsp + 0x50], r14
movabs r15, 0x7ffffffffffffffe
mov qword [rsp + 0x48], r15
cmp r14, r15
ja 0x140002f7e
cmp r14, 8
jae 0x140002881
mov qword [rsp + 0x50], r14
mov qword [rbp + 0x50], r14
mov r15d, 7
mov qword [rsp + 0x48], r15
mov qword [rbp + 0x58], r15
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x40], xmm0
movq rsi, xmm0
mov qword [rbp + 0x18], rsi
jmp 0x140002949
test rbx, rbx
je 0x1400026d3
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x140002837
mov r8, rbx
sub r8, r9
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140002878
add rcx, 2
sub rdx, 1
jne 0x140002823
sub rbx, r10
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x1400026d3
lea r9, [rbp + 0x40]
cmp r14, 8
cmovae r9, qword [rbp + 0x40]
mov qword [rsp + 0x20], rsi
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp + 0x20]
call fcn.1400032f0
mov rsi, qword [rbp + 0x50]
add rbx, rsi
mov r14, qword [rbp + 0x58]
jmp 0x140002670
add rbx, 2
jmp 0x1400026b0
mov qword [rbp + 0x58], 7
mov rax, r14
or rax, 7
cmp rax, r15
jbe 0x1400028a5
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x1400028dc
mov r15, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r15, rcx
mov qword [rsp + 0x48], r15
lea rcx, [r15 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140002fa2
add rcx, rcx
cmp rcx, 0x1000
jb 0x14000290c
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002fa2
mov rcx, rax
call fcn.1400044d0
test rax, rax
je 0x140002f9c
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rbp + 0x18], rsi
mov qword [rsi - 8], rax
jmp 0x140002926
test rcx, rcx
je 0x14000291f
call fcn.1400044d0
mov rsi, rax
mov qword [rbp + 0x18], rax
jmp 0x140002926
mov rsi, r12
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x58], r15
lea r8, [r14*2 + 2]
mov rdx, rbx
mov rcx, rsi
call fcn.140006740
mov rax, qword [rbp + 0x38]
mov r13d, r12d
movabs rdi, 0x70006d0074002e
mov ebx, 0x2d
lea r9, [rbp + 0x40]
cmp r15, 8
cmovae r9, rsi
cmp r14, rax
ja 0x1400029a5
lea rdi, [rbp + 0x20]
cmp rax, 8
cmovae rdi, qword [rbp + 0x20]
mov qword [rbp + 0x30], r14
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call fcn.140006740
mov word [rdi + rbx], r12w
mov ebx, 0x2d
movabs rdi, 0x70006d0074002e
jmp 0x1400029cb
mov rdx, r14
lea rcx, [rbp + 0x20]
call fcn.140003900
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x18], rax
lea rdx, str..tmp
lea rcx, [rbp - 8]
call fcn.1400030b0
nop
lea r9, [rbp + 0xba]
mov r8d, r13d
test r13d, r13d
jns 0x140002a30
neg r8d
nop
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 0x1400029f0
add r9, 0xfffffffffffffffe
mov word [r9], bx
jmp 0x140002a60
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 0x140002a30
lea r8, [rbp + 0xba]
mov rdx, r9
lea rcx, [rsp + 0x78]
call fcn.140003a70
nop
lea r8, [rsp + 0x78]
lea rdx, [0x140024714]
lea rcx, [rbp - 0x68]
call fcn.1400034d0
mov rcx, rax
mov r8, qword [rax + 0x10]
mov r9, qword [rax + 0x18]
mov rax, r9
sub rax, r8
cmp rax, 4
jb 0x140002ac0
lea rdx, [r8 + 4]
mov qword [rcx + 0x10], rdx
mov rax, rcx
cmp r9, 8
jb 0x140002ab5
mov rax, qword [rcx]
mov qword [rax + r8*2], rdi
mov word [rax + rdx*2], r12w
jmp 0x140002add
mov qword [rsp + 0x20], 4
lea r9, str..tmp
mov edx, 4
call fcn.140003ed0
mov rcx, rax
movups xmm0, xmmword [rcx]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], 7
mov word [rcx], r12w
mov rbx, r12
mov r15, qword [rbp + 0x10]
cmp r15, 8
setae r12b
mov rdi, qword [rbp + 8]
mov r14, qword [rbp - 8]
mov rsi, qword [rsp + 0x68]
nop word [rax + rax]
lea r9, [rbp - 8]
cmp r15, 8
cmovae r9, r14
lea r11, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae r11, qword [rbp + 0x20]
mov rax, qword [rbp + 0x30]
cmp rdi, rax
ja 0x140002b83
sub rax, rdi
cmp rbx, rax
ja 0x140002b83
test rdi, rdi
je 0x140002d4a
lea r10, [rax + 1]
lea r10, [r11 + r10*2]
lea rbx, [r11 + rbx*2]
mov rax, r10
sub rax, rbx
sar rax, 1
je 0x140002b83
movzx ecx, word [r9]
nop
cmp word [rbx], cx
je 0x140002d0e
add rbx, 2
sub rax, 1
jne 0x140002b70
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140002bc6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002bc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002f84
call fcn.14000475c
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x140002c06
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c01
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002f8a
call fcn.14000475c
xor ebx, ebx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], bx
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x140002c59
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002f90
call fcn.14000475c
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], bx
test r12b, r12b
je 0x140002ca4
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140002c9c
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002f96
mov rcx, r14
call fcn.14000475c
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rcx, qword [rbp + 0x20]
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r12 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140002d8f
inc r13d
cmp r13d, 0x32
jge 0x140002d8f
mov rax, qword [rbp + 0x38]
mov rsi, qword [rbp + 0x18]
mov r14, qword [rsp + 0x50]
mov r15, qword [rsp + 0x48]
jmp 0x14000294c
test rbx, rbx
je 0x140002b83
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x140002d44
mov r8, rbx
sub r8, r9
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140002d86
add rcx, 2
sub rdx, 1
jne 0x140002d30
sub rbx, r11
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x140002b83
lea r9, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r9, qword [rsp + 0x58]
mov qword [rsp + 0x20], rsi
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp + 0x20]
call fcn.1400032f0
mov rsi, qword [rsp + 0x68]
add rbx, rsi
jmp 0x140002b20
add rbx, 2
jmp 0x140002b60
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140002dd0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002dcb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002f9c
call fcn.14000475c
mov r13, qword [rbp + 0x78]
cmp rbx, 0xffffffffffffffff
je 0x140002e00
mov dword [rbp + 0x18], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x18]
mov r8d, dword [rbp + 0x70]
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002e84
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
jb 0x140002e6c
mov rcx, qword [rbp + 0x20]
test rcx, rcx
jne 0x140002e6c
mov rbx, r12
mov qword [rbp + 0x70], rbx
mov dword [rbp + 0x18], r12d
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x140002fa8
mov rax, qword [rcx]
lea r9, [rbp + 0x18]
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 0x140002e88
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rbp + 0x70], rax
test rax, rax
je 0x140002f5c
jmp 0x140002e34
mov edi, dword [rsp + 0x40]
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x140002ec9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ec3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002fb3
call fcn.14000475c
nop
test r13, r13
je 0x140002f02
mov rdx, qword [rbp + 0x88]
sub rdx, r13
mov rax, r13
cmp rdx, 0x1000
jb 0x140002ef9
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002f56
mov rcx, r13
call fcn.14000475c
nop
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x140002f12
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x140002f22
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x20c0]
xor rcx, rsp
call fcn.1400044b0
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.14000b08c
nop
mov ecx, 0x8007000e
call fcn.140001210
nop
mov ecx, 0x80004003
call fcn.140004230
nop
call fcn.14000b08c
nop
call fcn.14000b08c
nop
call fcn.1400011e0
nop
call fcn.14000b08c
nop
call fcn.14000b08c
nop
call fcn.14000b08c
nop
call fcn.14000b08c
nop
call fcn.14000b08c
int3
call fcn.140001140
nop
mov ecx, 0x80004003
call fcn.140004230
nop
call fcn.14000b08c
int3