Function at 0x1400355d0
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 - 0x20b0]
mov eax, 0x21b0
call fcn.140083570
sub rsp, rax
mov rax, qword [0x1400e9588]
xor rax, rsp
mov qword [rbp + 0x20a0], rax
mov rdi, rdx
mov ebx, ecx
xor r15d, r15d
mov rcx, qword [0x1400ebc80]
test rcx, rcx
jne 0x14003562e
call fcn.140035fa0
test al, al
je 0x140035f00
mov rcx, qword [0x1400ebc80]
xor sil, sil
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x68], r15
mov rax, qword [rcx]
mov qword [rsp + 0x68], r15
lea rdx, [rsp + 0x68]
call qword [rax + 0x68]
test eax, eax
js 0x140035eeb
mov qword [rsp + 0x60], r15
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140035f3b
mov rax, qword [rcx]
mov qword [rsp + 0x60], r15
lea r8, [rsp + 0x60]
lea rdx, [0x1400b6058]
call qword [rax]
test eax, eax
js 0x140035eda
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r15
lea r8, [rsp + 0x70]
mov rdx, rdi
mov ecx, ebx
call fcn.140046310
mov rcx, qword [rsp + 0x70]
cmp qword [rsp + 0x78], rcx
je 0x140035ea7
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0xa0]
call fcn.140085a60
lea rdx, [rbp + 0xa0]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140035ea2
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x18], xmm1
mov r8d, 0x11
lea rdx, str.FLiNGTrainer.tmp
lea rcx, [rbp + 8]
call fcn.140003280
nop
lea r8, [rbp + 8]
lea rdx, [rbp + 0xa0]
lea rcx, [rbp - 0x78]
call fcn.140034f40
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x140035758
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035753
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035f46
call fcn.1400830b8
movdqa xmm0, xmmword [0x1400b2b90]
movdqu xmmword [rbp + 0x18], xmm0
mov word [rbp + 8], r15w
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
mov r8d, 1
lea rdx, [0x1400b2cdc]
lea rcx, [rbp - 0x38]
call fcn.140003280
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
mov r8d, 2
lea rdx, [0x1400b67ac]
lea rcx, [rbp - 0x58]
call fcn.140003280
nop
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x78]
call fcn.14004b580
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140035808
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035803
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035f4c
call fcn.1400830b8
movdqa xmm0, xmmword [0x1400b2b90]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], r15w
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x14003585a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035855
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035f52
call fcn.1400830b8
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rcx, qword [rbp - 0x78]
mov qword [rsp + 0x30], r15
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 0x140035db3
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r15
mov qword [rbp], r15
mov r12, qword [rbp - 0x68]
lea rbx, [rbp - 0x78]
mov r14, qword [rbp - 0x60]
cmp r14, 8
cmovae rbx, qword [rbp - 0x78]
movabs rdx, 0x7ffffffffffffffe
cmp r12, rdx
ja 0x140035f58
cmp r12, 8
jae 0x1400358fe
mov qword [rbp - 8], r12
mov edi, 7
mov qword [rsp + 0x48], rdi
mov qword [rbp], rdi
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x18], xmm0
movq rsi, xmm0
mov qword [rsp + 0x50], rsi
jmp 0x140035967
mov rdi, r12
or rdi, 7
cmp rdi, rdx
jbe 0x140035914
mov rdi, rdx
mov qword [rsp + 0x48], rdx
jmp 0x140035925
mov eax, 0xa
cmp rdi, rax
cmovb rdi, rax
mov qword [rsp + 0x48], rdi
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x18]
call fcn.1400277c0
mov rsi, rax
mov qword [rsp + 0x50], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 8], r12
mov qword [rbp], rdi
lea r8, [r12*2 + 2]
mov rdx, rbx
mov rcx, rax
call fcn.1400853c0
mov r14, qword [rbp - 0x60]
movabs rdx, 0x7ffffffffffffffe
mov r13d, r15d
movzx ebx, byte [rsp + 0x40]
nop
lea r15, [rbp - 0x18]
cmp rdi, 8
cmovae r15, rsi
cmp r12, r14
ja 0x1400359b1
lea rsi, [rbp - 0x78]
cmp r14, 8
cmovae rsi, qword [rbp - 0x78]
mov qword [rbp - 0x68], r12
lea rdi, [r12 + r12]
mov r8, rdi
mov rdx, r15
mov rcx, rsi
call fcn.1400853c0
xor r15d, r15d
mov word [rsi + rdi], r15w
jmp 0x140035a5e
cmp r12, rdx
ja 0x140035f82
mov rdi, r12
or rdi, 7
cmp rdi, rdx
jbe 0x1400359cb
mov rdi, rdx
jmp 0x1400359ec
mov rcx, r14
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp r14, rax
jbe 0x1400359e1
mov rdi, rdx
jmp 0x1400359ec
lea rax, [rcx + r14]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x78]
call fcn.1400277c0
mov rsi, rax
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], rdi
lea rdi, [r12 + r12]
mov r8, rdi
mov rdx, r15
mov rcx, rax
call fcn.1400853c0
xor r15d, r15d
mov word [rsi + rdi], r15w
cmp r14, 8
jb 0x140035a5a
lea rdx, [r14*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035a55
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035f5e
call fcn.1400830b8
mov qword [rbp - 0x78], rsi
lea r10, [rbp + 0x92]
mov r8d, r13d
test r13d, r13d
jns 0x140035ab0
neg r8d
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 0x140035a70
add r10, 0xfffffffffffffffe
mov word [r10], 0x2d
jmp 0x140035ae0
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 0x140035ab0
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x92]
mov rdx, r10
lea rcx, [rbp + 0x48]
call fcn.140034e40
nop
lea r8, [rbp + 0x48]
lea rdx, [0x1400b67c4]
lea rcx, [rbp + 0x28]
call fcn.140034f40
mov rcx, rax
mov r8, qword [rax + 0x10]
mov r9, qword [rax + 0x18]
mov rax, r9
sub rax, r8
cmp rax, 4
jb 0x140035b4d
lea rdx, [r8 + 4]
mov qword [rcx + 0x10], rdx
mov rax, rcx
cmp r9, 8
jb 0x140035b38
mov rax, qword [rcx]
movabs r9, 0x70006d0074002e
mov qword [rax + r8*2], r9
mov word [rax + rdx*2], r15w
jmp 0x140035b6e
mov qword [rsp + 0x20], 4
lea r9, str..tmp
movzx r8d, bl
mov edx, 4
call fcn.14002bb70
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], r15
movups xmm0, xmmword [rcx]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp - 0x58]
call fcn.140003280
nop
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x78]
call fcn.14004b580
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140035c14
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035c0f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035f64
call fcn.1400830b8
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r15w
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x140035c65
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035c60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035f6a
call fcn.1400830b8
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r15w
mov rdx, qword [rbp + 0x40]
cmp rdx, 8
jb 0x140035cb6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035cb1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035f70
call fcn.1400830b8
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], r15w
mov rdx, qword [rbp + 0x60]
cmp rdx, 8
jb 0x140035d07
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035d02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035f76
call fcn.1400830b8
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rcx, qword [rbp - 0x78]
mov qword [rsp + 0x30], r15
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 0x140035d6b
inc r13d
cmp r13d, 0x32
jge 0x140035d6b
mov r14, qword [rbp - 0x60]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movabs rdx, 0x7ffffffffffffffe
jmp 0x140035970
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140035dad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035da8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035f7c
call fcn.1400830b8
cmp rdi, 0xffffffffffffffff
je 0x140035de1
mov dword [rsp + 0x48], r15d
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
sub r8, rdx
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x78]
call fcn.140050000
test al, al
je 0x140035e5e
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
jb 0x140035e45
mov rcx, qword [rbp - 0x78]
test rcx, rcx
jne 0x140035e45
mov rbx, r15
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], r15d
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140035f88
mov rax, qword [rcx]
lea r9, [rsp + 0x48]
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 0x140035e62
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140035f30
jmp 0x140035e0a
mov esi, dword [rsp + 0x58]
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140035ea2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035e9d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035f93
call fcn.1400830b8
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140035eda
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035ed4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035f2a
call fcn.1400830b8
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140035eeb
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140035efc
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, sil
mov rcx, qword [rbp + 0x20a0]
xor rcx, rsp
call fcn.140083540
mov rbx, qword [rsp + 0x2200]
add rsp, 0x21b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140089bf4
nop
mov ecx, 0x8007000e
call fcn.140035290
nop
mov ecx, 0x80004003
call fcn.1400806d0
nop
call fcn.140089bf4
nop
call fcn.140089bf4
nop
call fcn.140089bf4
int3
call fcn.140027540
nop
call fcn.140089bf4
nop
call fcn.140089bf4
nop
call fcn.140089bf4
nop
call fcn.140089bf4
nop
call fcn.140089bf4
nop
call fcn.140089bf4
nop
call fcn.140027540
nop
mov ecx, 0x80004003
call fcn.1400806d0
nop
call fcn.140089bf4
int3