Function at 0x1400549c0
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 - 0x20a0]
mov eax, 0x21a0
call fcn.1400a7a50
sub rsp, rax
mov rax, qword [0x14013a540]
xor rax, rsp
mov qword [rbp + 0x2090], rax
mov rdi, rdx
mov ebx, ecx
xor r14d, r14d
mov rcx, qword [0x14014dab8]
test rcx, rcx
jne 0x140054a1e
call fcn.1400551a0
test al, al
je 0x140055114
mov rcx, qword [0x14014dab8]
xor sil, sil
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x60], r14
mov rax, qword [rcx]
mov qword [rsp + 0x60], r14
lea rdx, [rsp + 0x60]
call qword [rax + 0x68]
test eax, eax
js 0x1400550ff
mov qword [rsp + 0x58], r14
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14005514f
mov rax, qword [rcx]
mov qword [rsp + 0x58], r14
lea r8, [rsp + 0x58]
lea rdx, [0x1400e26d8]
call qword [rax]
test eax, eax
js 0x1400550ee
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r14
lea r8, [rsp + 0x68]
mov rdx, rdi
mov ecx, ebx
call fcn.1400676d0
mov rcx, qword [rsp + 0x68]
cmp qword [rsp + 0x70], rcx
je 0x1400550ba
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x90]
call fcn.1400d09d0
lea rdx, [rbp + 0x90]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400550b5
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov r8d, 0x11
lea rdx, str.FLiNGTrainer.tmp
lea rcx, [rbp - 0x20]
call fcn.140003e00
nop
lea r8, [rbp - 0x20]
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x80]
call fcn.1400542b0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x140054b49
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054b44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005515a
call fcn.1400a75a8
movdqa xmm0, xmmword [0x1400dae70]
movdqu xmmword [rbp - 0x10], xmm0
xor esi, esi
mov word [rbp - 0x20], si
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
lea r8d, [rsi + 1]
lea rdx, [0x1400e26e8]
lea rcx, [rbp - 0x40]
call fcn.140003e00
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
lea r8d, [rsi + 2]
lea rdx, [0x1400e2e2c]
lea rcx, [rbp - 0x60]
call fcn.140003e00
nop
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.14006cfb0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140054bf6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054bf1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140055160
call fcn.1400a75a8
movdqa xmm0, xmmword [0x1400dae70]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], si
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x140054c47
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054c42
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140055166
call fcn.1400a75a8
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rcx, qword [rbp - 0x80]
mov qword [rsp + 0x30], rsi
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 0x140054fc8
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call fcn.1400099a0
nop
mov r14d, esi
movzx ebx, byte [rsp + 0x40]
mov r13, qword [rbp - 0x28]
mov r15, qword [rbp - 0x30]
mov r12, qword [rbp - 0x40]
mov edi, 0x2d
lea r9, [rbp - 0x40]
cmp r13, 7
cmova r9, r12
mov rax, qword [rbp - 0x68]
cmp r15, rax
ja 0x140054cf5
lea rsi, [rbp - 0x80]
cmp rax, 7
cmova rsi, qword [rbp - 0x80]
mov qword [rbp - 0x70], r15
lea rdi, [r15 + r15]
mov r8, rdi
mov rdx, r9
mov rcx, rsi
call fcn.1400d0330
xor eax, eax
mov word [rsi + rdi], ax
xor esi, esi
lea edi, [rax + 0x2d]
jmp 0x140054d11
movzx r8d, bl
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140005cc0
mov r13, qword [rbp - 0x28]
mov r15, qword [rbp - 0x30]
mov r12, qword [rbp - 0x40]
lea r10, [rbp + 0x8a]
test r14d, r14d
jns 0x140054d5b
mov ecx, r14d
neg ecx
sub r10, 2
mov eax, 0xcccccccd
mul ecx
shr edx, 3
movzx eax, dx
shl ax, 2
lea r8d, [rax + rdx]
add r8w, r8w
sub cx, r8w
add cx, 0x30
mov word [r10], cx
mov ecx, edx
test edx, edx
jne 0x140054d22
add r10, 0xfffffffffffffffe
mov word [r10], di
jmp 0x140054d90
mov r8d, r14d
nop
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 0x140054d60
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x8a]
mov rdx, r10
lea rcx, [rbp + 0x40]
call fcn.140003060
nop
lea r8, [rbp + 0x40]
lea rdx, [0x1400e2e44]
lea rcx, [rbp + 0x20]
call fcn.1400542b0
nop
lea r8, str..tmp
mov rdx, rax
lea rcx, [rbp]
call fcn.1400541e0
mov rdi, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rsi
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp - 0x60]
call fcn.140003e00
nop
mov r8, rdi
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.14006cfb0
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140054e4b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054e46
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140055172
call fcn.1400a75a8
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], si
mov rdx, qword [rbp + 0x18]
cmp rdx, 7
jbe 0x140054e9b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054e96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140055178
call fcn.1400a75a8
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], 7
mov word [rbp], si
mov rdx, qword [rbp + 0x38]
cmp rdx, 7
jbe 0x140054eeb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054ee6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005517e
call fcn.1400a75a8
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], si
mov rdx, qword [rbp + 0x58]
cmp rdx, 7
jbe 0x140054f3b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054f36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140055184
call fcn.1400a75a8
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rcx, qword [rbp - 0x80]
mov qword [rsp + 0x30], rsi
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 0x140054f86
inc r14d
cmp r14d, 0x32
jl 0x140054cab
cmp r13, 7
jbe 0x140054fc2
lea rdx, [r13*2 + 2]
mov rax, r12
cmp rdx, 0x1000
jb 0x140054fba
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005516c
mov rcx, r12
call fcn.1400a75a8
cmp rdi, 0xffffffffffffffff
je 0x140054ff5
mov dword [rsp + 0x48], esi
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
sub r8, rdx
mov qword [rsp + 0x20], rsi
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 - 0x80]
call fcn.14006c450
test al, al
je 0x140055071
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
jbe 0x140055058
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jne 0x140055058
mov rbx, rsi
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x48], esi
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14005518a
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 0x140055075
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140055144
jmp 0x14005501e
mov esi, dword [rsp + 0x50]
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x1400550b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400550b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140055195
call fcn.1400a75a8
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400550ee
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400550e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005513e
call fcn.1400a75a8
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400550ff
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140055110
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, sil
mov rcx, qword [rbp + 0x2090]
xor rcx, rsp
call fcn.1400a7a20
mov rbx, qword [rsp + 0x21f0]
add rsp, 0x21a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400ae5a0
nop
mov ecx, 0x8007000e
call fcn.140054680
nop
mov ecx, 0x80004003
call fcn.1400a4690
nop
call fcn.1400ae5a0
nop
call fcn.1400ae5a0
nop
call fcn.1400ae5a0
int3
call fcn.1400ae5a0
nop
call fcn.1400ae5a0
nop
call fcn.1400ae5a0
nop
call fcn.1400ae5a0
nop
call fcn.1400ae5a0
nop
mov ecx, 0x80004003
call fcn.1400a4690
nop
call fcn.1400ae5a0
int3