Function at 0x140030df0
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 - 0x2070]
mov eax, 0x2170
call fcn.140078f60
sub rsp, rax
mov rax, qword [0x1400db380]
xor rax, rsp
mov qword [rbp + 0x2060], rax
mov rdi, rdx
mov ebx, ecx
xor r15d, r15d
mov rcx, qword [0x1400ddcf0]
test rcx, rcx
jne 0x140030e4e
call fcn.140031490
test al, al
je 0x140031408
mov rcx, qword [0x1400ddcf0]
mov sil, r15b
mov qword [rsp + 0x50], r15
mov rax, qword [rcx]
mov qword [rsp + 0x50], r15
lea rdx, [rsp + 0x50]
call qword [rax + 0x68]
test eax, eax
js 0x1400313f4
mov qword [rsp + 0x48], r15
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140031461
mov rax, qword [rcx]
mov qword [rsp + 0x48], r15
lea r8, [rsp + 0x48]
lea rdx, [0x1400aa3f8]
call qword [rax]
test eax, eax
js 0x1400313e3
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r15
lea r8, [rsp + 0x58]
mov rdx, rdi
mov ecx, ebx
call fcn.14003fc04
mov r13d, 0x1000
mov rcx, qword [rsp + 0x58]
cmp qword [rsp + 0x60], rcx
je 0x1400313af
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x60]
call fcn.1400a0b30
lea rdx, [rbp + 0x60]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400313aa
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x28], xmm1
mov r8d, 0x11
lea rdx, str.FLiNGTrainer.tmp
lea rcx, [rbp + 0x18]
call fcn.140003434
nop
lea rax, [rbp + 0x60]
or r9, 0xffffffffffffffff
inc r9
cmp word [rax + r9*2], r15w
jne 0x140030f26
lea r8, [rbp + 0x60]
xor edx, edx
lea rcx, [rbp + 0x18]
call fcn.1400315e4
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x78], xmm1
mov qword [rax + 0x10], r15
mov r12d, 7
mov qword [rax + 0x18], r12
mov word [rax], r15w
mov rdx, qword [rbp + 0x30]
cmp rdx, r12
jbe 0x140030fac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, r13
jb 0x140030fa7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003146c
call fcn.140078ab8
movdqa xmm0, xmmword [0x1400a6e70]
movdqu xmmword [rbp + 0x28], xmm0
mov word [rbp + 0x18], r15w
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
mov r8d, 1
lea rdx, [0x1400a707c]
lea rcx, [rbp - 0x68]
call fcn.140003434
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
mov ebx, 2
mov r8d, ebx
lea rdx, [0x1400aab4c]
lea rcx, [rbp - 0x28]
call fcn.140003434
nop
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x78]
call fcn.140044740
nop
lea rcx, [rbp - 0x28]
call fcn.140024228
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, r12
jbe 0x140031064
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, r13
jb 0x14003105f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031472
call fcn.140078ab8
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], r12
cmova rcx, qword [rsp + 0x78]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], ebx
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140031305
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 8], xmm1
mov rdi, qword [rbp - 0x78]
lea r14, [rsp + 0x78]
cmp qword [rbp - 0x70], r12
cmova r14, qword [rsp + 0x78]
movabs rbx, 0x7ffffffffffffffe
cmp rdi, rbx
ja 0x140031478
cmp rdi, r12
ja 0x1400310f0
mov qword [rbp + 8], rdi
mov qword [rbp + 0x10], r12
movups xmm0, xmmword [r14]
movdqu xmmword [rbp - 8], xmm0
jmp 0x14003116f
mov rax, rdi
or rax, r12
cmp rax, rbx
jbe 0x14003110b
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140031139
mov rbx, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x14003147e
add rcx, rcx
cmp rcx, r13
jb 0x140031140
call fcn.140002d24
jmp 0x14003114f
test rcx, rcx
je 0x14003114c
call fcn.140078a7c
jmp 0x14003114f
mov rax, r15
mov qword [rbp - 8], rax
mov qword [rbp + 8], rdi
mov qword [rbp + 0x10], rbx
lea r8, [rdi*2 + 2]
mov rdx, r14
mov rcx, rax
call fcn.1400a0490
nop
mov edi, r15d
mov r14d, 4
lea rdx, [rbp - 8]
lea rcx, [rsp + 0x78]
call fcn.14000aa6c
mov edx, edi
lea rcx, [rbp + 0x38]
call fcn.1400307e0
nop
mov r9d, 1
lea r8, [0x1400aab64]
xor edx, edx
lea rcx, [rbp + 0x38]
call fcn.1400315e4
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x38], xmm1
mov qword [rax + 0x18], r12
mov qword [rax + 0x10], r15
mov word [rax], r15w
mov r8, r14
lea rdx, str..tmp
lea rcx, [rbp - 0x48]
call fcn.1400245bc
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], r15
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x58], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r12
mov word [rax], r15w
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x10], r15
mov r8, r14
lea rdx, str..tmp
lea rcx, [rbp - 0x28]
call fcn.140003434
nop
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x78]
call fcn.140044740
nop
lea rcx, [rbp - 0x28]
call fcn.140024228
nop
lea rcx, [rbp - 0x68]
call fcn.140024228
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, r12
jbe 0x140031296
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, r13
jb 0x140031291
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003148a
call fcn.140078ab8
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], r12
mov word [rbp - 0x48], r15w
lea rcx, [rbp + 0x38]
call fcn.140024228
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], r12
cmova rcx, qword [rsp + 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 rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400312f6
inc edi
cmp edi, 0x32
jl 0x140031178
lea rcx, [rbp - 8]
call fcn.140024228
cmp rbx, 0xffffffffffffffff
je 0x140031333
mov dword [rsp + 0x40], r15d
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
sub r8, rdx
mov qword [rsp + 0x20], r15
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.140044280
test al, al
je 0x1400313a0
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], r12
jbe 0x140031432
mov rcx, qword [rsp + 0x78]
test rcx, rcx
jne 0x140031432
mov rbx, r15
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x40], r15d
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14003144b
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]
nop
lea rcx, [rsp + 0x78]
call fcn.140024228
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400313e3
mov rdx, qword [rsp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, r13
jb 0x1400313dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031484
call fcn.140078ab8
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400313f4
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140031405
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov al, sil
mov rcx, qword [rbp + 0x2060]
xor rcx, rsp
call fcn.140078f30
mov rbx, qword [rsp + 0x21c0]
add rsp, 0x2170
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 0x140031456
jmp 0x140031366
mov ecx, 0x80004003
call fcn.140075c70
nop
mov ecx, 0x8007000e
call fcn.140030acc
nop
mov ecx, 0x80004003
call fcn.140075c70
nop
call fcn.14007faac
int3
call fcn.14007faac
int3
call fcn.14002448c
int3
call fcn.140023c90
nop
call fcn.14007faac
nop
call fcn.14007faac
int3