Function at 0x140035fd0
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.140085ff0
sub rsp, rax
mov rax, qword [0x1400ea5c8]
xor rax, rsp
mov qword [rbp + 0x20a0], rax
mov rdi, rdx
mov ebx, ecx
xor r15d, r15d
mov rcx, qword [0x1400ecc90]
test rcx, rcx
jne 0x14003602e
call fcn.1400369a0
test al, al
je 0x140036900
mov rcx, qword [0x1400ecc90]
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 0x1400368eb
mov qword [rsp + 0x60], r15
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003693b
mov rax, qword [rcx]
mov qword [rsp + 0x60], r15
lea r8, [rsp + 0x60]
lea rdx, [0x1400b8078]
call qword [rax]
test eax, eax
js 0x1400368da
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.140046d20
mov rcx, qword [rsp + 0x70]
cmp qword [rsp + 0x78], rcx
je 0x1400368a7
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0xa0]
call fcn.1400884e0
lea rdx, [rbp + 0xa0]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400368a2
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.140003550
nop
lea r8, [rbp + 8]
lea rdx, [rbp + 0xa0]
lea rcx, [rbp - 0x78]
call fcn.140035940
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x140036158
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036153
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036946
call fcn.140085b38
movdqa xmm0, xmmword [0x1400b4bd0]
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, [0x1400b4d1c]
lea rcx, [rbp - 0x38]
call fcn.140003550
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
mov r8d, 2
lea rdx, [0x1400b87cc]
lea rcx, [rbp - 0x58]
call fcn.140003550
nop
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x78]
call fcn.14004bf90
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140036208
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036203
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003694c
call fcn.140085b38
movdqa xmm0, xmmword [0x1400b4bd0]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], r15w
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x14003625a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036255
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036952
call fcn.140085b38
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 0x1400367b3
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 0x140036958
cmp r12, 8
jae 0x1400362fe
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 0x140036367
mov rdi, r12
or rdi, 7
cmp rdi, rdx
jbe 0x140036314
mov rdi, rdx
mov qword [rsp + 0x48], rdx
jmp 0x140036325
mov eax, 0xa
cmp rdi, rax
cmovb rdi, rax
mov qword [rsp + 0x48], rdi
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x18]
call fcn.1400281c0
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.140087e40
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 0x1400363b1
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.140087e40
xor r15d, r15d
mov word [rsi + rdi], r15w
jmp 0x14003645e
cmp r12, rdx
ja 0x140036982
mov rdi, r12
or rdi, 7
cmp rdi, rdx
jbe 0x1400363cb
mov rdi, rdx
jmp 0x1400363ec
mov rcx, r14
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp r14, rax
jbe 0x1400363e1
mov rdi, rdx
jmp 0x1400363ec
lea rax, [rcx + r14]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x78]
call fcn.1400281c0
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.140087e40
xor r15d, r15d
mov word [rsi + rdi], r15w
cmp r14, 8
jb 0x14003645a
lea rdx, [r14*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036455
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003695e
call fcn.140085b38
mov qword [rbp - 0x78], rsi
lea r10, [rbp + 0x92]
mov r8d, r13d
test r13d, r13d
jns 0x1400364b0
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 0x140036470
add r10, 0xfffffffffffffffe
mov word [r10], 0x2d
jmp 0x1400364e0
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 0x1400364b0
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x92]
mov rdx, r10
lea rcx, [rbp + 0x48]
call fcn.140035840
nop
lea r8, [rbp + 0x48]
lea rdx, [0x1400b87e4]
lea rcx, [rbp + 0x28]
call fcn.140035940
mov rcx, rax
mov r8, qword [rax + 0x10]
mov r9, qword [rax + 0x18]
mov rax, r9
sub rax, r8
cmp rax, 4
jb 0x14003654d
lea rdx, [r8 + 4]
mov qword [rcx + 0x10], rdx
mov rax, rcx
cmp r9, 8
jb 0x140036538
mov rax, qword [rcx]
movabs r9, 0x70006d0074002e
mov qword [rax + r8*2], r9
mov word [rax + rdx*2], r15w
jmp 0x14003656e
mov qword [rsp + 0x20], 4
lea r9, str..tmp
movzx r8d, bl
mov edx, 4
call fcn.14002c570
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.140003550
nop
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x78]
call fcn.14004bf90
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140036614
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003660f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036964
call fcn.140085b38
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r15w
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x140036665
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036660
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003696a
call fcn.140085b38
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r15w
mov rdx, qword [rbp + 0x40]
cmp rdx, 8
jb 0x1400366b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400366b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036970
call fcn.140085b38
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], r15w
mov rdx, qword [rbp + 0x60]
cmp rdx, 8
jb 0x140036707
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140036702
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036976
call fcn.140085b38
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 0x14003676b
inc r13d
cmp r13d, 0x32
jge 0x14003676b
mov r14, qword [rbp - 0x60]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movabs rdx, 0x7ffffffffffffffe
jmp 0x140036370
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400367ad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400367a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003697c
call fcn.140085b38
cmp rdi, 0xffffffffffffffff
je 0x1400367e1
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.140050a10
test al, al
je 0x14003685e
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
jb 0x140036845
mov rcx, qword [rbp - 0x78]
test rcx, rcx
jne 0x140036845
mov rbx, r15
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], r15d
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140036988
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 0x140036862
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140036930
jmp 0x14003680a
mov esi, dword [rsp + 0x58]
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x1400368a2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003689d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140036993
call fcn.140085b38
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400368da
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400368d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003692a
call fcn.140085b38
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400368eb
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400368fc
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, sil
mov rcx, qword [rbp + 0x20a0]
xor rcx, rsp
call fcn.140085fc0
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.14008c674
nop
mov ecx, 0x8007000e
call fcn.140035c90
nop
mov ecx, 0x80004003
call fcn.140083150
nop
call fcn.14008c674
nop
call fcn.14008c674
nop
call fcn.14008c674
int3
call fcn.140027f40
nop
call fcn.14008c674
nop
call fcn.14008c674
nop
call fcn.14008c674
nop
call fcn.14008c674
nop
call fcn.14008c674
nop
call fcn.14008c674
nop
call fcn.140027f40
nop
mov ecx, 0x80004003
call fcn.140083150
nop
call fcn.14008c674
int3