Function at 0x140035340
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.140083c90
sub rsp, rax
mov rax, qword [0x1400e74e8]
xor rax, rsp
mov qword [rbp + 0x20a0], rax
mov rdi, rdx
mov ebx, ecx
xor r15d, r15d
mov rcx, qword [0x1400e9be0]
test rcx, rcx
jne 0x14003539e
call fcn.140035d10
test al, al
je 0x140035c70
mov rcx, qword [0x1400e9be0]
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 0x140035c5b
mov qword [rsp + 0x60], r15
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140035cab
mov rax, qword [rcx]
mov qword [rsp + 0x60], r15
lea r8, [rsp + 0x60]
lea rdx, [0x1400b6018]
call qword [rax]
test eax, eax
js 0x140035c4a
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.140046080
mov rcx, qword [rsp + 0x70]
cmp qword [rsp + 0x78], rcx
je 0x140035c17
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0xa0]
call fcn.140086180
lea rdx, [rbp + 0xa0]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140035c12
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.140002fb0
nop
lea r8, [rbp + 8]
lea rdx, [rbp + 0xa0]
lea rcx, [rbp - 0x78]
call fcn.140034cb0
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 8
jb 0x1400354c8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400354c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035cb6
call fcn.1400837d8
movdqa xmm0, xmmword [0x1400b2b70]
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, [0x1400b2cbc]
lea rcx, [rbp - 0x38]
call fcn.140002fb0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
mov r8d, 2
lea rdx, [0x1400b676c]
lea rcx, [rbp - 0x58]
call fcn.140002fb0
nop
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x78]
call fcn.14004b2f0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140035578
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035573
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035cbc
call fcn.1400837d8
movdqa xmm0, xmmword [0x1400b2b70]
movdqu xmmword [rbp - 0x48], xmm0
mov word [rbp - 0x58], r15w
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x1400355ca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400355c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035cc2
call fcn.1400837d8
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 0x140035b23
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 0x140035cc8
cmp r12, 8
jae 0x14003566e
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 0x1400356d7
mov rdi, r12
or rdi, 7
cmp rdi, rdx
jbe 0x140035684
mov rdi, rdx
mov qword [rsp + 0x48], rdx
jmp 0x140035695
mov eax, 0xa
cmp rdi, rax
cmovb rdi, rax
mov qword [rsp + 0x48], rdi
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x18]
call fcn.1400274f0
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.140085ae0
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 0x140035721
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.140085ae0
xor r15d, r15d
mov word [rsi + rdi], r15w
jmp 0x1400357ce
cmp r12, rdx
ja 0x140035cf2
mov rdi, r12
or rdi, 7
cmp rdi, rdx
jbe 0x14003573b
mov rdi, rdx
jmp 0x14003575c
mov rcx, r14
shr rcx, 1
mov rax, rdx
sub rax, rcx
cmp r14, rax
jbe 0x140035751
mov rdi, rdx
jmp 0x14003575c
lea rax, [rcx + r14]
cmp rdi, rax
cmovb rdi, rax
lea rdx, [rdi + 1]
lea rcx, [rbp - 0x78]
call fcn.1400274f0
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.140085ae0
xor r15d, r15d
mov word [rsi + rdi], r15w
cmp r14, 8
jb 0x1400357ca
lea rdx, [r14*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400357c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035cce
call fcn.1400837d8
mov qword [rbp - 0x78], rsi
lea r10, [rbp + 0x92]
mov r8d, r13d
test r13d, r13d
jns 0x140035820
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 0x1400357e0
add r10, 0xfffffffffffffffe
mov word [r10], 0x2d
jmp 0x140035850
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 0x140035820
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x92]
mov rdx, r10
lea rcx, [rbp + 0x48]
call fcn.140034bb0
nop
lea r8, [rbp + 0x48]
lea rdx, [0x1400b6784]
lea rcx, [rbp + 0x28]
call fcn.140034cb0
mov rcx, rax
mov r8, qword [rax + 0x10]
mov r9, qword [rax + 0x18]
mov rax, r9
sub rax, r8
cmp rax, 4
jb 0x1400358bd
lea rdx, [r8 + 4]
mov qword [rcx + 0x10], rdx
mov rax, rcx
cmp r9, 8
jb 0x1400358a8
mov rax, qword [rcx]
movabs r9, 0x70006d0074002e
mov qword [rax + r8*2], r9
mov word [rax + rdx*2], r15w
jmp 0x1400358de
mov qword [rsp + 0x20], 4
lea r9, str..tmp
movzx r8d, bl
mov edx, 4
call fcn.14002b8a0
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.140002fb0
nop
lea r8, [rbp - 0x38]
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x78]
call fcn.14004b2f0
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x140035984
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003597f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035cd4
call fcn.1400837d8
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r15w
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x1400359d5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400359d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035cda
call fcn.1400837d8
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r15w
mov rdx, qword [rbp + 0x40]
cmp rdx, 8
jb 0x140035a26
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035a21
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035ce0
call fcn.1400837d8
mov qword [rbp + 0x38], r15
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], r15w
mov rdx, qword [rbp + 0x60]
cmp rdx, 8
jb 0x140035a77
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035a72
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035ce6
call fcn.1400837d8
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 0x140035adb
inc r13d
cmp r13d, 0x32
jge 0x140035adb
mov r14, qword [rbp - 0x60]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
movabs rdx, 0x7ffffffffffffffe
jmp 0x1400356e0
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140035b1d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035b18
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035cec
call fcn.1400837d8
cmp rdi, 0xffffffffffffffff
je 0x140035b51
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.14004fd70
test al, al
je 0x140035bce
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
jb 0x140035bb5
mov rcx, qword [rbp - 0x78]
test rcx, rcx
jne 0x140035bb5
mov rbx, r15
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], r15d
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140035cf8
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 0x140035bd2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140035ca0
jmp 0x140035b7a
mov esi, dword [rsp + 0x58]
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140035c12
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035c0d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035d03
call fcn.1400837d8
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140035c4a
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035c44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140035c9a
call fcn.1400837d8
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140035c5b
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140035c6c
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, sil
mov rcx, qword [rbp + 0x20a0]
xor rcx, rsp
call fcn.140083c60
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.14008a314
nop
mov ecx, 0x8007000e
call fcn.140035000
nop
mov ecx, 0x80004003
call fcn.140080df0
nop
call fcn.14008a314
nop
call fcn.14008a314
nop
call fcn.14008a314
int3
call fcn.140027270
nop
call fcn.14008a314
nop
call fcn.14008a314
nop
call fcn.14008a314
nop
call fcn.14008a314
nop
call fcn.14008a314
nop
call fcn.14008a314
nop
call fcn.140027270
nop
mov ecx, 0x80004003
call fcn.140080df0
nop
call fcn.14008a314
int3