Function at 0x14002eb90
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 - 0x20e0]
mov eax, 0x21e0
call fcn.140075dd0
sub rsp, rax
mov rax, qword [0x1400d6090]
xor rax, rsp
mov qword [rbp + 0x20d0], rax
xor r13d, r13d
mov rcx, qword [0x1400d9d10]
test rcx, rcx
jne 0x14002ebf1
call fcn.14002e760
test al, al
je 0x14002f737
mov rcx, qword [0x1400d9d10]
xor dil, dil
mov dword [rsp + 0x4c], edi
mov qword [rsp + 0x58], r13
mov rax, qword [rcx]
mov qword [rsp + 0x58], r13
lea rdx, [rsp + 0x58]
call qword [rax + 0x68]
test eax, eax
js 0x14002f722
mov qword [rsp + 0x50], r13
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002f778
mov rax, qword [rcx]
mov qword [rsp + 0x50], r13
lea r8, [rsp + 0x50]
lea rdx, [0x1400c3e90]
call qword [rax]
test eax, eax
js 0x14002f711
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r13
lea r8, [rsp + 0x78]
lea rdx, [0x1400c3794]
mov ecx, 0x65
call fcn.1400402f0
mov r12, qword [rbp - 0x80]
mov qword [rsp + 0x68], r12
mov r15, qword [rsp + 0x78]
mov qword [rsp + 0x70], r15
cmp r12, r15
je 0x14002f6db
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0xd0]
call fcn.140077bc0
lea rdx, [rbp + 0xd0]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14002f6db
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], 7
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
lea rcx, [rbp + 0x10]
call fcn.14001f260
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x20], SafeArrayUnaccessData
mov qword [rbp + 0x28], reloc.OLEAUT32.dll_SafeArrayUnaccessData
movups xmm0, xmmword [str.FLiNGTrainer.tmp]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400c3e68]
movups xmmword [rax + 0x10], xmm1
movzx ecx, word [0x1400c3e78]
mov word [rax + 0x20], cx
mov word [rax + 0x22], r13w
lea rax, [rbp + 0xd0]
mov r9, 0xffffffffffffffff
nop dword [rax + rax]
inc r9
cmp word [rax + r9*2], 0
jne 0x14002ed20
lea r8, [rbp + 0xd0]
lea rcx, [rbp + 0x10]
call fcn.14002f860
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x14002eda9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002eda4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f783
call fcn.140075270
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], 7
mov word [rbp + 0x10], r13w
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov r11d, 1
mov qword [rbp - 0x40], r11
mov edi, 7
mov qword [rbp - 0x38], rdi
mov dword [rbp - 0x50], 0x5c
movups xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], 2
mov qword [rbp + 0x70], rdi
mov dword [rbp + 0x58], 0x5c005c
mov word [rbp + 0x5c], r13w
mov rcx, r13
nop word [rax + rax]
lea r9, [rbp - 0x70]
mov rsi, qword [rbp - 0x70]
mov r14, qword [rbp - 0x58]
cmp r14, 8
cmovae r9, rsi
mov rax, qword [rbp - 0x60]
cmp rax, 2
jb 0x14002eee1
add rax, 0xfffffffffffffffe
cmp rcx, rax
ja 0x14002eee1
lea r10, [rax + 1]
lea r10, [r9 + r10*2]
lea rbx, [r9 + rcx*2]
nop dword [rax + rax]
mov rax, r10
sub rax, rbx
sar rax, 1
mov rcx, r13
je 0x14002ee6a
cmp word [rbx], 0x5c
je 0x14002ee67
cmp rax, 1
je 0x14002ee6a
dec rax
add rbx, 2
cmp word [rbx], 0x5c
jne 0x14002ee54
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x14002eee1
mov edx, 2
lea rcx, [rbp + 0x58]
lea rax, [rbp + 0x58]
mov r8, rbx
sub r8, rax
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x14002eed8
add rcx, 2
sub rdx, 1
jne 0x14002ee85
sub rbx, r9
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x14002eee1
lea r9, [rbp - 0x50]
cmp rdi, 8
cmovae r9, qword [rbp - 0x50]
mov qword [rsp + 0x20], r11
lea r8d, [rdx + 2]
mov rdx, rbx
lea rcx, [rbp - 0x70]
call fcn.140044730
mov r11, qword [rbp - 0x40]
lea rcx, [r11 + rbx]
mov rdi, qword [rbp - 0x38]
jmp 0x14002ee00
add rbx, 2
jmp 0x14002ee40
cmp rdi, 8
jb 0x14002ef25
lea rdx, [rdi*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002ef18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f7a7
call fcn.140075270
mov r14, qword [rbp - 0x58]
mov rsi, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
cmp r14, 8
cmovae rcx, rsi
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002f5e5
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
mov r12, qword [rbp - 0x60]
lea rbx, [rbp - 0x70]
mov r14, qword [rbp - 0x58]
cmp r14, 8
cmovae rbx, qword [rbp - 0x70]
movabs rdx, 0x7ffffffffffffffe
cmp r12, rdx
ja 0x14002f789
lea eax, [rsi + 0xa]
cmp r12, 8
jae 0x14002efcc
mov qword [rbp - 0x40], r12
mov edi, 7
mov qword [rsp + 0x40], rdi
mov qword [rbp - 0x38], rdi
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x50], xmm0
movq rsi, xmm0
mov qword [rsp + 0x60], rsi
jmp 0x14002f030
mov rdi, r12
or rdi, 7
cmp rdi, rdx
jbe 0x14002efe2
mov rdi, rdx
mov qword [rsp + 0x40], rdx
jmp 0x14002efee
cmp rdi, rax
cmovb rdi, rax
mov qword [rsp + 0x40], rdi
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x50]
call fcn.14001f260
mov rsi, rax
mov qword [rsp + 0x60], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], rdi
lea r8, [r12*2 + 2]
mov rdx, rbx
mov rcx, rax
call fcn.140077520
mov r14, qword [rbp - 0x58]
movabs rdx, 0x7ffffffffffffffe
xor r13d, r13d
movzx ebx, byte [rsp + 0x48]
nop dword [rax + rax]
lea r15, [rbp - 0x50]
cmp rdi, 8
cmovae r15, rsi
cmp r12, r14
ja 0x14002f07f
lea rsi, [rbp - 0x70]
cmp r14, 8
cmovae rsi, qword [rbp - 0x70]
mov qword [rbp - 0x60], r12
lea rdi, [r12 + r12]
mov r8, rdi
mov rdx, r15
mov rcx, rsi
call fcn.140077520
xor eax, eax
mov word [rsi + rdi], ax
jmp 0x14002f12a
cmp r12, rdx
ja 0x14002f7b3
mov rdi, r12
or rdi, 7
cmp rdi, rdx
jbe 0x14002f099
mov rdi, rdx
jmp 0x14002f0ba
mov rcx, r14
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp r14, rax
jbe 0x14002f0af
mov rdi, rdx
jmp 0x14002f0ba
lea rax, [rcx + r14]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x70]
call fcn.14001f260
mov rsi, rax
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], rdi
lea rdi, [r12 + r12]
mov r8, rdi
mov rdx, r15
mov rcx, rax
call fcn.140077520
xor eax, eax
mov word [rsi + rdi], ax
cmp r14, 8
jb 0x14002f126
lea rdx, [r14*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f121
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f78f
call fcn.140075270
mov qword [rbp - 0x70], rsi
lea r14, [rbp + 0xc2]
mov r8d, r13d
test r13d, r13d
jns 0x14002f180
neg r8d
nop dword [rax]
sub r14, 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 [r14], r8w
mov r8d, edx
test edx, edx
jne 0x14002f140
add r14, 0xfffffffffffffffe
mov word [r14], 0x2d
jmp 0x14002f1b0
sub r14, 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 [r14], r8w
mov r8d, edx
test edx, edx
jne 0x14002f180
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xor esi, esi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
lea rax, [rbp + 0xc2]
cmp r14, rax
jne 0x14002f1e2
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], si
jmp 0x14002f280
lea rdi, [rbp + 0xc2]
sub rdi, r14
sar rdi, 1
movabs rax, 0x7ffffffffffffffe
cmp rdi, rax
ja 0x14002f7ad
mov qword [rbp - 0x18], 7
cmp rdi, 8
jae 0x14002f22d
mov qword [rbp - 0x20], rdi
add rdi, rdi
mov r8, rdi
mov rdx, r14
lea rcx, [rbp - 0x30]
call fcn.140077520
mov word [rbp + rdi - 0x30], si
jmp 0x14002f280
mov r15, rdi
or r15, 7
cmp r15, rax
jbe 0x14002f23e
mov r15, rax
jmp 0x14002f24b
cmp r15, 0xa
mov eax, 0xa
cmovb r15, rax
lea rdx, [r15 + 1]
lea rcx, [rbp - 0x30]
call fcn.14001f260
mov rsi, rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], r15
add rdi, rdi
mov r8, rdi
mov rdx, r14
mov rcx, rax
call fcn.140077520
xor eax, eax
mov word [rsi + rdi], ax
xor esi, esi
mov r9d, 1
lea r8, [0x1400c3e8c]
lea rcx, [rbp - 0x30]
call fcn.14002f860
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rsi
mov qword [rbp + 8], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rcx, qword [rbp]
mov rdx, qword [rbp + 8]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x14002f305
lea rax, [rcx + 4]
mov qword [rbp], rax
lea rax, [rbp - 0x10]
cmp rdx, 8
cmovae rax, qword [rbp - 0x10]
movabs rdx, 0x70006d0074002e
mov qword [rax + rcx*2], rdx
mov word [rax + rcx*2 + 8], si
lea rax, [rbp - 0x10]
jmp 0x14002f327
mov qword [rsp + 0x20], 4
lea r9, str..tmp
movzx r8d, bl
mov edx, 4
lea rcx, [rbp - 0x10]
call fcn.14002b4f0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x48], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
xorps xmm0, xmm0
movups xmmword [rbp + 0x78], xmm0
mov qword [rbp + 0x88], 4
mov qword [rbp + 0x90], 7
movabs rax, 0x70006d0074002e
mov qword [rbp + 0x78], rax
mov word [rbp + 0x80], si
mov rcx, rsi
mov r11, qword [rbp + 0x48]
nop
lea r9, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae r9, qword [rbp - 0x70]
mov rax, qword [rbp - 0x60]
cmp rax, 4
jb 0x14002f45e
add rax, 0xfffffffffffffffc
cmp rcx, rax
ja 0x14002f45e
lea r10, [rax + 1]
lea r10, [r9 + r10*2]
lea rdi, [r9 + rcx*2]
nop word [rax + rax]
mov rax, r10
sub rax, rdi
sar rax, 1
mov rcx, rsi
je 0x14002f3ea
cmp word [rdi], 0x2e
je 0x14002f3e7
cmp rax, 1
je 0x14002f3ea
dec rax
add rdi, 2
cmp word [rdi], 0x2e
jne 0x14002f3d4
mov rcx, rdi
mov rdi, rcx
test rcx, rcx
je 0x14002f45e
mov edx, 4
lea rcx, [rbp + 0x78]
lea rax, [rbp + 0x78]
mov r8, rdi
sub r8, rax
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x14002f455
add rcx, 2
sub rdx, 1
jne 0x14002f405
sub rdi, r9
sar rdi, 1
cmp rdi, 0xffffffffffffffff
je 0x14002f45e
lea r9, [rbp + 0x38]
cmp qword [rbp + 0x50], 8
cmovae r9, qword [rbp + 0x38]
mov qword [rsp + 0x20], r11
lea r8d, [rdx + 4]
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140044730
mov r11, qword [rbp + 0x48]
lea rcx, [rdi + r11]
jmp 0x14002f380
add rdi, 2
jmp 0x14002f3c0
mov rdx, qword [rbp + 0x50]
cmp rdx, 8
jb 0x14002f49f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f499
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f795
call fcn.140075270
nop
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x14002f4df
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f4da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f79b
call fcn.140075270
mov qword [rbp], rsi
mov qword [rbp + 8], 7
mov word [rbp - 0x10], si
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x14002f52f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f52a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f7a1
call fcn.140075270
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
mov qword [rsp + 0x30], rsi
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 rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14002f593
inc r13d
cmp r13d, 0x32
jge 0x14002f593
mov r14, qword [rbp - 0x58]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x60]
movabs rdx, 0x7ffffffffffffffe
jmp 0x14002f040
mov rdx, qword [rsp + 0x40]
cmp rdx, 8
jb 0x14002f5d5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f5d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f7a7
call fcn.140075270
mov r15, qword [rsp + 0x70]
cmp rdi, 0xffffffffffffffff
je 0x14002f60e
mov r12, qword [rsp + 0x68]
mov dword [rsp + 0x40], esi
sub r12, r15
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, r12d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
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 0x14002f696
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
jb 0x14002f67d
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x14002f67d
mov rbx, rsi
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x40], esi
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002f7b9
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
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 0x14002f69a
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14002f76d
jmp 0x14002f643
mov edi, dword [rsp + 0x4c]
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14002f6db
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f6d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f7c4
call fcn.140075270
nop
test r15, r15
je 0x14002f711
mov rdx, qword [rbp - 0x78]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x14002f708
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f767
mov rcx, r15
call fcn.140075270
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002f722
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002f733
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x20d0]
xor rcx, rsp
call fcn.140075250
lea r11, [rsp + 0x21e0]
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.14007bea4
nop
mov ecx, 0x8007000e
call fcn.14002e0b0
nop
mov ecx, 0x80004003
call fcn.140072a00
nop
call fcn.14007bea4
int3
call fcn.140001d70
nop
call fcn.14007bea4
nop
call fcn.14007bea4
nop
call fcn.14007bea4
nop
call fcn.14007bea4
nop
call fcn.14007bea4
nop
call fcn.140001d70
int3
call fcn.140001d70
nop
mov ecx, 0x80004003
call fcn.140072a00
nop
call fcn.14007bea4
int3