Function at 0x140030c98
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.140077cc0
sub rsp, rax
mov rax, qword [0x1400d5380]
xor rax, rsp
mov qword [rbp + 0x2060], rax
mov rdi, rdx
mov ebx, ecx
xor r15d, r15d
mov rcx, qword [0x1400d7cf0]
test rcx, rcx
jne 0x140030cf6
call fcn.140031338
test al, al
je 0x1400312b0
mov rcx, qword [0x1400d7cf0]
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 0x14003129c
mov qword [rsp + 0x48], r15
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140031309
mov rax, qword [rcx]
mov qword [rsp + 0x48], r15
lea r8, [rsp + 0x48]
lea rdx, [0x1400a6388]
call qword [rax]
test eax, eax
js 0x14003128b
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.14003faac
mov r13d, 0x1000
mov rcx, qword [rsp + 0x58]
cmp qword [rsp + 0x60], rcx
je 0x140031257
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x60]
call fcn.14009c4a0
lea rdx, [rbp + 0x60]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140031252
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.140003318
nop
lea rax, [rbp + 0x60]
or r9, 0xffffffffffffffff
inc r9
cmp word [rax + r9*2], r15w
jne 0x140030dce
lea r8, [rbp + 0x60]
xor edx, edx
lea rcx, [rbp + 0x18]
call fcn.14003148c
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 0x140030e54
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, r13
jb 0x140030e4f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031314
call fcn.140077818
movdqa xmm0, xmmword [0x1400a2e10]
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, [0x1400a301c]
lea rcx, [rbp - 0x68]
call fcn.140003318
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, [0x1400a6adc]
lea rcx, [rbp - 0x28]
call fcn.140003318
nop
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x78]
call fcn.1400445e8
nop
lea rcx, [rbp - 0x28]
call fcn.140024110
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, r12
jbe 0x140030f0c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, r13
jb 0x140030f07
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003131a
call fcn.140077818
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 0x1400311ad
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 0x140031320
cmp rdi, r12
ja 0x140030f98
mov qword [rbp + 8], rdi
mov qword [rbp + 0x10], r12
movups xmm0, xmmword [r14]
movdqu xmmword [rbp - 8], xmm0
jmp 0x140031017
mov rax, rdi
or rax, r12
cmp rax, rbx
jbe 0x140030fb3
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140030fe1
mov rbx, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140031326
add rcx, rcx
cmp rcx, r13
jb 0x140030fe8
call fcn.140002c08
jmp 0x140030ff7
test rcx, rcx
je 0x140030ff4
call fcn.1400777dc
jmp 0x140030ff7
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.14009be00
nop
mov edi, r15d
mov r14d, 4
lea rdx, [rbp - 8]
lea rcx, [rsp + 0x78]
call fcn.14000a950
mov edx, edi
lea rcx, [rbp + 0x38]
call fcn.140030688
nop
mov r9d, 1
lea r8, [0x1400a6af4]
xor edx, edx
lea rcx, [rbp + 0x38]
call fcn.14003148c
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.1400244a4
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.140003318
nop
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x78]
call fcn.1400445e8
nop
lea rcx, [rbp - 0x28]
call fcn.140024110
nop
lea rcx, [rbp - 0x68]
call fcn.140024110
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, r12
jbe 0x14003113e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, r13
jb 0x140031139
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140031332
call fcn.140077818
mov qword [rbp - 0x38], r15
mov qword [rbp - 0x30], r12
mov word [rbp - 0x48], r15w
lea rcx, [rbp + 0x38]
call fcn.140024110
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 0x14003119e
inc edi
cmp edi, 0x32
jl 0x140031020
lea rcx, [rbp - 8]
call fcn.140024110
cmp rbx, 0xffffffffffffffff
je 0x1400311db
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.140044128
test al, al
je 0x140031248
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], r12
jbe 0x1400312da
mov rcx, qword [rsp + 0x78]
test rcx, rcx
jne 0x1400312da
mov rbx, r15
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x40], r15d
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400312f3
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.140024110
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14003128b
mov rdx, qword [rsp + 0x68]
sub rdx, rcx
mov rax, rcx
cmp rdx, r13
jb 0x140031285
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003132c
call fcn.140077818
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14003129c
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400312ad
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov al, sil
mov rcx, qword [rbp + 0x2060]
xor rcx, rsp
call fcn.140077c90
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 0x1400312fe
jmp 0x14003120e
mov ecx, 0x80004003
call fcn.1400749d0
nop
mov ecx, 0x8007000e
call fcn.140030974
nop
mov ecx, 0x80004003
call fcn.1400749d0
nop
call fcn.14007e634
int3
call fcn.14007e634
int3
call fcn.140024374
int3
call fcn.140023b78
nop
call fcn.14007e634
nop
call fcn.14007e634
int3