Function at 0x140015740
Capabilities:
Check if file exists
Get common file path
Get file attributes
Load windows common language runtime
Write file on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2070]
mov eax, 0x2170
call fcn.140035ac0
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x21a0], rbx
mov qword [rsp + 0x21a8], rsi
mov qword [rsp + 0x21b0], rdi
mov rax, qword [0x1400a6088]
xor rax, rsp
mov qword [rbp + 0x2060], rax
xor esi, esi
mov rcx, qword [0x1400ab3f0]
test rcx, rcx
jne 0x140015888
mov qword [rsp + 0x48], rsi
lea r8, [rsp + 0x48]
lea rdx, [0x140090588]
lea rcx, [0x140090578]
call qword [sym.imp.mscoree.dll_CLRCreateInstance]
lea rdi, [0x1400ab3f0]
test eax, eax
js 0x14001583e
mov qword [rsp + 0x40], rsi
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
lea r8, [0x140090568]
lea rdx, [0x14008fe70]
call qword [rax + 0x18]
mov ebx, eax
test eax, eax
js 0x14001582f
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov r9, rdi
lea r8, [0x14008c8a0]
lea rdx, [0x14008c8b0]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x140015824
mov rcx, qword [0x1400ab3f0]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jns 0x140015881
mov rcx, qword [0x1400ab3f0]
test rcx, rcx
jne 0x140015888
mov qword [rsp + 0x20], rdi
lea r9, [0x14008c8a0]
lea r8, [0x14008c8b0]
xor edx, edx
lea rcx, str.v2.0.50727
call qword [sym.imp.mscoree.dll_CorBindToRuntime]
test eax, eax
js 0x140015abf
mov rcx, qword [0x1400ab3f0]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [0x1400ab3f0]
xor dil, dil
mov qword [rsp + 0x50], rsi
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + 0x68]
test eax, eax
js 0x140016027
mov qword [rsp + 0x40], rsi
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001607c
mov qword [rsp + 0x40], rsi
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x140090558]
call qword [rax]
test eax, eax
js 0x140016016
mov qword [rsp + 0x60], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
lea r8, [rsp + 0x60]
lea rdx, [0x14008fe68]
mov ecx, 0x65
call fcn.1400150e0
mov rax, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
sub rax, r13
mov qword [rsp + 0x58], rax
je 0x140015fdf
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x60]
call fcn.140053760
lea rdx, [rbp + 0x60]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140015fdf
movdqa xmm0, xmmword [0x140092c40]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], si
mov r8d, 0x11
lea rdx, str.FLiNGTrainer.tmp
lea rcx, [rbp - 0x20]
call fcn.140003f60
nop
lea rax, [rbp + 0x60]
mov r9, 0xffffffffffffffff
nop dword [rax + rax]
inc r9
cmp word [rax + r9*2], 0
jne 0x140015970
lea r8, [rbp + 0x60]
lea rcx, [rbp - 0x20]
call fcn.1400097e0
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x1400159ee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400159e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016087
call fcn.1400352b4
movdqa xmm0, xmmword [0x140092c40]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], si
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], si
mov r8d, 1
lea rdx, [0x14008c6f0]
lea rcx, [rbp - 0x60]
call fcn.140003f60
nop
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], si
mov r8d, 2
lea rdx, [0x14009052c]
lea rcx, [rbp - 0x40]
call fcn.140003f60
nop
mov rbx, rsi
mov r15, qword [rbp - 0x28]
mov r14, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x40]
mov rdi, qword [rbp - 0x50]
lea r9, [rbp - 0x40]
cmp r15, 8
cmovae r9, rsi
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
mov qword [rsp + 0x20], r14
mov r8, rbx
mov rdx, qword [rbp - 0x70]
call fcn.140006d80
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015adf
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae r9, qword [rbp - 0x60]
mov qword [rsp + 0x20], rdi
mov r8, r14
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14001a040
mov rdi, qword [rbp - 0x50]
add rbx, rdi
jmp 0x140015a60
xor r9d, r9d
lea r8, [0x14008fea0]
lea rdx, [0x14008fec0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x14001603b
cmp r15, 8
jb 0x140015b1b
lea rdx, [r15*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140015b12
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001608d
mov rcx, rsi
call fcn.1400352b4
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140015b5b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015b56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016093
call fcn.1400352b4
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
xor esi, esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140015eee
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x20]
call fcn.1400144b0
nop
mov r12d, esi
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rdx, qword [rbp + 0x20]
mov r8, qword [rbp + 0x30]
lea rcx, [rbp - 0x80]
call fcn.140003f60
mov qword [rbp + 0x10], rsi
mov qword [rbp + 0x18], 7
mov word [rbp], si
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp]
call fcn.140003f60
nop
mov edx, r12d
lea rcx, [rbp + 0x40]
call fcn.1400160e0
nop
mov r9d, 1
lea r8, [0x140090544]
mov rcx, rax
call fcn.1400097e0
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x140015c83
lea rdi, [rcx + 4]
mov qword [rbp - 0x50], rdi
lea rbx, [rbp - 0x60]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x60]
lea rcx, [rbx + rcx*2]
mov r8d, 8
lea rdx, str..tmp
call fcn.140053920
mov word [rbx + rdi*2], si
lea rax, [rbp - 0x60]
jmp 0x140015ca1
mov qword [rsp + 0x20], 4
lea r9, str..tmp
mov edx, 4
lea rcx, [rbp - 0x60]
call fcn.140005a70
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rbx, rsi
mov r15, qword [rbp + 0x18]
mov rsi, qword [rbp + 0x10]
mov r14, qword [rbp]
mov rdi, qword [rbp - 0x30]
nop dword [rax]
nop word [rax + rax]
lea r9, [rbp]
cmp r15, 8
cmovae r9, r14
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
mov qword [rsp + 0x20], rsi
mov r8, rbx
mov rdx, qword [rbp - 0x70]
call fcn.140006d80
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015d3f
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae r9, qword [rbp - 0x40]
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14001a040
mov rdi, qword [rbp - 0x30]
add rbx, rdi
jmp 0x140015ce0
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140015d80
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015d7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001609f
call fcn.1400352b4
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140015dc0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015dbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400160a5
call fcn.1400352b4
xor esi, esi
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], si
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x140015e12
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015e0d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400160ab
call fcn.1400352b4
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x58], 7
mov word [rbp + 0x40], si
cmp r15, 8
jb 0x140015e5d
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140015e55
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400160b1
mov rcx, r14
call fcn.1400352b4
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae 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 rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140015ea8
inc r12d
cmp r12d, 0x32
jl 0x140015bb0
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x140015ee8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015ee3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016099
call fcn.1400352b4
cmp rbx, 0xffffffffffffffff
je 0x140015f16
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x58]
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140015f9b
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
jb 0x140015f82
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jne 0x140015f82
mov rbx, rsi
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x48], esi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400160b7
mov rax, qword [rcx]
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x190]
test eax, eax
setns dil
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x140015f9e
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140016071
jmp 0x140015f4b
xor dil, dil
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140015fdf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140015fd9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400160c2
call fcn.1400352b4
nop
test r13, r13
je 0x140016016
mov rdx, qword [rsp + 0x70]
sub rdx, r13
mov rax, r13
cmp rdx, 0x1000
jb 0x14001600d
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001606b
mov rcx, r13
call fcn.1400352b4
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140016027
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140016037
mov rdx, qword [rcx]
call qword [rdx + 0x10]
movzx eax, dil
mov rcx, qword [rbp + 0x2060]
xor rcx, rsp
call fcn.140035290
lea r11, [rsp + 0x2170]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14005674c
nop
mov ecx, 0x8007000e
call fcn.1400154c0
nop
mov ecx, 0x80004003
call fcn.1400326c0
nop
call fcn.14005674c
nop
call fcn.14005674c
nop
call fcn.14005674c
int3
call fcn.14005674c
nop
call fcn.14005674c
nop
call fcn.14005674c
nop
call fcn.14005674c
nop
call fcn.14005674c
nop
mov ecx, 0x80004003
call fcn.1400326c0
nop
call fcn.14005674c
int3