Function at 0x140011720
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20a0]
mov eax, 0x21a0
call fcn.14002e7d0
sub rsp, rax
mov rax, qword [0x14006f058]
xor rax, rsp
mov qword [rbp + 0x2090], rax
mov rdi, rdx
mov ebx, ecx
xor r14d, r14d
mov rcx, qword [0x140070c98]
test rcx, rcx
jne 0x14001177e
call fcn.140012090
test al, al
je 0x140011ff6
mov rcx, qword [0x140070c98]
xor sil, sil
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x60], r14
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
call qword [rax + 0x68]
test eax, eax
js 0x140011fe1
mov qword [rsp + 0x58], r14
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140012031
mov qword [rsp + 0x58], r14
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
lea rdx, [0x140057168]
call qword [rax]
test eax, eax
js 0x140011fd0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r14
lea r8, [rsp + 0x68]
mov rdx, rdi
mov ecx, ebx
call fcn.140010f00
mov rcx, qword [rsp + 0x68]
cmp qword [rsp + 0x70], rcx
je 0x140011f9c
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x90]
call fcn.140030d10
lea rdx, [rbp + 0x90]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140011f97
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
mov r8d, 0x11
lea rdx, str.FLiNGTrainer.tmp
lea rcx, [rbp]
call fcn.140002c90
nop
lea r8, [rbp]
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x80]
call fcn.140002b30
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x1400118a4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001189f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001203c
call fcn.14002e3f8
movdqa xmm0, xmmword [0x140053860]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], r14w
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
mov r8d, 1
lea rdx, [0x140057178]
lea rcx, [rbp - 0x40]
call fcn.140002c90
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov r8d, 2
lea rdx, [0x1400578bc]
lea rcx, [rbp - 0x60]
call fcn.140002c90
nop
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.140018950
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140011954
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001194f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012042
call fcn.14002e3f8
movdqa xmm0, xmmword [0x140053860]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], r14w
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x1400119a6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400119a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012048
call fcn.14002e3f8
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
mov qword [rsp + 0x30], r14
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 0x140011ea8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r14
lea rbx, [rbp - 0x80]
mov rsi, qword [rbp - 0x68]
cmp rsi, 8
cmovae rbx, qword [rbp - 0x80]
mov r15, qword [rbp - 0x70]
movabs rdx, 0x7ffffffffffffffe
cmp r15, rdx
ja 0x14001204e
cmp r15, 8
jae 0x140011a46
mov qword [rbp - 0x10], r15
mov r13d, 7
mov qword [rbp - 8], r13
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x20], xmm0
movq rdi, xmm0
mov qword [rsp + 0x40], rdi
jmp 0x140011aa5
mov r13, r15
or r13, 7
cmp r13, rdx
jbe 0x140011a57
mov r13, rdx
jmp 0x140011a63
mov eax, 0xa
cmp r13, rax
cmovb r13, rax
lea rdx, [r13 + 1]
lea rcx, [rbp - 0x20]
call fcn.1400024c0
mov rdi, rax
mov qword [rsp + 0x40], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x10], r15
mov qword [rbp - 8], r13
lea r8, [r15*2 + 2]
mov rdx, rbx
mov rcx, rax
call fcn.140030670
mov rsi, qword [rbp - 0x68]
movabs rdx, 0x7ffffffffffffffe
mov r12d, r14d
nop dword [rax + rax]
lea r14, [rbp - 0x20]
cmp r13, 8
cmovae r14, rdi
cmp r15, rsi
ja 0x140011af1
lea rdi, [rbp - 0x80]
cmp rsi, 8
cmovae rdi, qword [rbp - 0x80]
mov qword [rbp - 0x70], r15
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.140030670
xor r14d, r14d
mov word [rbx + rdi], r14w
jmp 0x140011b9e
cmp r15, rdx
ja 0x140012078
mov rbx, r15
or rbx, 7
cmp rbx, rdx
jbe 0x140011b0b
mov rbx, rdx
jmp 0x140011b2c
mov rcx, rsi
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp rsi, rax
jbe 0x140011b21
mov rbx, rdx
jmp 0x140011b2c
lea rax, [rsi + rcx]
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x80]
call fcn.1400024c0
mov rdi, rax
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r14
mov rcx, rax
call fcn.140030670
xor r14d, r14d
mov word [rbx + rdi], r14w
cmp rsi, 8
jb 0x140011b9a
lea rdx, [rsi*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011b95
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012054
call fcn.14002e3f8
mov qword [rbp - 0x80], rdi
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r14
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp - 0x40]
call fcn.140002c90
nop
lea r10, [rbp + 0x8a]
test r12d, r12d
jns 0x140011c1b
mov ecx, r12d
neg ecx
nop word [rax + rax]
sub r10, 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 [r10], cx
mov ecx, edx
test edx, edx
jne 0x140011be0
add r10, 0xfffffffffffffffe
mov word [r10], 0x2d
jmp 0x140011c50
mov r8d, r12d
nop
sub r10, 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 [r10], r8w
mov r8d, edx
test edx, edx
jne 0x140011c20
lea r9, [rsp + 0x48]
lea r8, [rbp + 0x8a]
mov rdx, r10
lea rcx, [rbp + 0x20]
call fcn.140011220
nop
lea r8, [rbp + 0x20]
lea rdx, [0x1400578d4]
lea rcx, [rbp + 0x40]
call fcn.140002b30
nop
mov r8d, 4
lea rdx, str..tmp
mov rcx, rax
call fcn.1400025c0
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.140018950
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140011d13
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011d0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001205a
call fcn.14002e3f8
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r14w
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x140011d64
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011d5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012060
call fcn.14002e3f8
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x58], 7
mov word [rbp + 0x40], r14w
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x140011db5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011db0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012066
call fcn.14002e3f8
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r14w
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140011e06
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011e01
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001206c
call fcn.14002e3f8
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
mov qword [rsp + 0x30], r14
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 0x140011e65
inc r12d
cmp r12d, 0x32
jge 0x140011e65
mov rsi, qword [rbp - 0x68]
mov rdi, qword [rsp + 0x40]
movabs rdx, 0x7ffffffffffffffe
jmp 0x140011ab0
cmp r13, 8
jb 0x140011ea2
lea rdx, [r13*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011e9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012072
call fcn.14002e3f8
cmp rbx, 0xffffffffffffffff
je 0x140011ed6
mov dword [rsp + 0x40], r14d
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
sub r8, rdx
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x80]
call fcn.14001e090
test al, al
je 0x140011f53
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
jb 0x140011f3a
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jne 0x140011f3a
mov rbx, r14
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x40], r14d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001207e
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x190]
mov esi, eax
shr esi, 0x1f
xor sil, 1
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x140011f57
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140012026
jmp 0x140011eff
mov esi, dword [rsp + 0x50]
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140011f97
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011f92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012089
call fcn.14002e3f8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140011fd0
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011fca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012020
call fcn.14002e3f8
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140011fe1
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140011ff2
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, sil
mov rcx, qword [rbp + 0x2090]
xor rcx, rsp
call fcn.14002e510
mov rbx, qword [rsp + 0x21f0]
add rsp, 0x21a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140034d4c
nop
mov ecx, 0x8007000e
call fcn.1400113f0
nop
mov ecx, 0x80004003
call fcn.14002c670
nop
call fcn.140034d4c
nop
call fcn.140034d4c
nop
call fcn.140034d4c
int3
call fcn.140002420
nop
call fcn.140034d4c
nop
call fcn.140034d4c
nop
call fcn.140034d4c
nop
call fcn.140034d4c
nop
call fcn.140034d4c
nop
call fcn.140034d4c
nop
call fcn.140002420
nop
mov ecx, 0x80004003
call fcn.14002c670
nop
call fcn.140034d4c
int3