Function at 0x140011b70
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.14003d800
sub rsp, rax
mov rax, qword [0x14008dfc0]
xor rax, rsp
mov qword [rbp + 0x2090], rax
mov rdi, rdx
mov ebx, ecx
xor esi, esi
mov rcx, qword [0x14008fc30]
test rcx, rcx
jne 0x140011bcd
call fcn.140012450
test al, al
je 0x1400123a1
mov rcx, qword [0x14008fc30]
xor r12b, r12b
mov qword [rsp + 0x50], rsi
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + 0x68]
test eax, eax
js 0x14001238c
mov qword [rsp + 0x48], rsi
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400123f5
mov qword [rsp + 0x48], rsi
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
lea rdx, [0x14006c080]
call qword [rax]
test eax, eax
js 0x14001237b
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rsi
lea r8, [rsp + 0x58]
mov rdx, rdi
mov ecx, ebx
call fcn.1400113a0
mov rcx, qword [rsp + 0x58]
cmp qword [rsp + 0x60], rcx
je 0x140012347
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x90]
call fcn.1400632e0
lea rdx, [rbp + 0x90]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140012342
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
mov r8d, 0x11
lea rdx, str.FLiNGTrainer.tmp
lea rcx, [rbp - 0x28]
call fcn.140001240
nop
lea r8, [rbp - 0x28]
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x78]
call fcn.140002d10
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 7
jbe 0x140011cf0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011ceb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012400
call fcn.14003d438
movdqa xmm0, xmmword [0x1400678d0]
movdqu xmmword [rbp - 0x18], xmm0
xor edi, edi
mov word [rbp - 0x28], di
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
lea r8d, [rdi + 1]
lea rdx, [0x14006c090]
lea rcx, [rbp - 0x48]
call fcn.140001240
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
lea r8d, [rdi + 2]
lea rdx, [0x14006c7dc]
lea rcx, [rbp - 0x68]
call fcn.140001240
nop
lea r8, [rbp - 0x48]
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x78]
call fcn.14001b5d0
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 7
jbe 0x140011d9e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011d99
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012406
call fcn.14003d438
movdqa xmm0, xmmword [0x1400678d0]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], di
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x140011def
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011dea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001240c
call fcn.14003d438
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rcx, qword [rsp + 0x78]
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 0x140012265
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], rdi
lea rbx, [rsp + 0x78]
mov rax, qword [rbp - 0x70]
cmp rax, 7
cmova rbx, qword [rsp + 0x78]
mov r14, qword [rbp - 0x78]
movabs r13, 0x7ffffffffffffffe
cmp r14, r13
ja 0x140012412
cmp r14, 7
ja 0x140011e91
mov qword [rbp - 0x58], r14
mov r13d, 7
mov qword [rbp - 0x50], r13
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x68], xmm0
movq r15, xmm0
jmp 0x140011f40
mov rax, r14
or rax, 7
cmp rax, r13
jbe 0x140011ead
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140011edf
mov r13, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r13, rcx
lea rcx, [r13 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14001243c
add rcx, rcx
cmp rcx, 0x1000
jb 0x140011f0b
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001243c
mov rcx, rax
call fcn.14003d3fc
test rax, rax
je 0x140012430
lea r15, [rax + 0x27]
and r15, 0xffffffffffffffe0
mov qword [r15 - 8], rax
jmp 0x140011f1d
test rcx, rcx
je 0x140011f1a
call fcn.14003d3fc
mov r15, rax
jmp 0x140011f1d
mov r15, rdi
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x58], r14
mov qword [rbp - 0x50], r13
lea r8, [r14*2 + 2]
mov rdx, rbx
mov rcx, r15
call fcn.140062c40
mov rax, qword [rbp - 0x70]
mov esi, edi
mov ebx, 0x2d
lea r9, [rbp - 0x68]
cmp r13, 7
cmova r9, r15
cmp r14, rax
ja 0x140011f8a
lea rdi, [rsp + 0x78]
cmp rax, 7
cmova rdi, qword [rsp + 0x78]
mov qword [rbp - 0x78], r14
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call fcn.140062c40
xor eax, eax
mov word [rdi + rbx], ax
xor edi, edi
lea ebx, [rax + 0x2d]
jmp 0x140011fa6
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140001370
mov r13, qword [rbp - 0x50]
mov r14, qword [rbp - 0x58]
mov r15, qword [rbp - 0x68]
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], rdi
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp - 0x48]
call fcn.140001240
nop
lea r10, [rbp + 0x82]
mov r8d, esi
test esi, esi
jns 0x140012020
neg r8d
nop dword [rax]
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 0x140011fe0
add r10, 0xfffffffffffffffe
mov word [r10], bx
jmp 0x140012050
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 0x140012020
lea r9, [rsp + 0x44]
lea r8, [rbp + 0x82]
mov rdx, r10
lea rcx, [rbp - 8]
call fcn.140011610
nop
lea r8, [rbp - 8]
lea rdx, [0x14006c7f4]
lea rcx, [rbp + 0x38]
call fcn.140002d10
nop
lea r8, str..tmp
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.140009130
nop
mov r8, rax
lea rdx, [rbp - 0x48]
lea rcx, [rsp + 0x78]
call fcn.14001b5d0
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 7
jbe 0x1400120e4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400120df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012418
call fcn.14003d438
mov qword [rbp + 0x28], rdi
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], di
mov rdx, qword [rbp + 0x50]
cmp rdx, 7
jbe 0x140012134
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001212f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001241e
call fcn.14003d438
mov qword [rbp + 0x48], rdi
mov qword [rbp + 0x50], 7
mov word [rbp + 0x38], di
mov rdx, qword [rbp + 0x10]
cmp rdx, 7
jbe 0x140012184
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001217f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012424
call fcn.14003d438
mov qword [rbp + 8], rdi
mov qword [rbp + 0x10], 7
mov word [rbp - 8], di
mov rdx, qword [rbp - 0x30]
cmp rdx, 7
jbe 0x1400121d4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400121cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001242a
call fcn.14003d438
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
cmova rcx, qword [rsp + 0x78]
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 0x140012224
inc esi
cmp esi, 0x32
jge 0x140012224
mov rax, qword [rbp - 0x70]
jmp 0x140011f42
cmp r13, 7
jbe 0x14001225f
lea rdx, [r13*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x140012257
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012430
mov rcx, r15
call fcn.14003d438
cmp rbx, 0xffffffffffffffff
je 0x140012292
mov dword [rsp + 0x40], edi
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
sub r8, rdx
mov qword [rsp + 0x20], rdi
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, [rsp + 0x78]
call fcn.140021410
test al, al
je 0x140012301
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 7
jbe 0x1400123cb
mov rcx, qword [rsp + 0x78]
test rcx, rcx
jne 0x1400123cb
mov rbx, rdi
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x40], edi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140012442
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x190]
mov r12d, eax
shr r12d, 0x1f
xor r12b, 1
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 7
jbe 0x140012342
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001233d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012436
call fcn.14003d438
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001237b
mov rdx, qword [rsp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012375
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400123e4
call fcn.14003d438
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001238c
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001239d
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, r12b
mov rcx, qword [rbp + 0x2090]
xor rcx, rsp
call fcn.14003d550
mov rbx, qword [rsp + 0x21f0]
add rsp, 0x21a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1400123ea
jmp 0x1400122c6
call fcn.14004442c
nop
mov ecx, 0x8007000e
call fcn.140011840
nop
mov ecx, 0x80004003
call fcn.14003b840
nop
call fcn.14004442c
nop
call fcn.14004442c
nop
call fcn.14004442c
int3
call fcn.140002850
nop
call fcn.14004442c
nop
call fcn.14004442c
nop
call fcn.14004442c
nop
call fcn.14004442c
nop
call fcn.14004442c
nop
call fcn.14004442c
nop
call fcn.140002780
nop
mov ecx, 0x80004003
call fcn.14003b840
int3