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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2090]
mov eax, 0x2190
call fcn.1400307b0
sub rsp, rax
mov rax, qword [0x140077048]
xor rax, rsp
mov qword [rbp + 0x2080], rax
xor esi, esi
mov rcx, qword [0x14007a3a0]
test rcx, rcx
jne 0x140012635
mov qword [rsp + 0x48], rsi
lea r8, [rsp + 0x48]
lea rdx, [0x14006af88]
lea rcx, [0x14006af78]
call qword [sym.imp.mscoree.dll_CLRCreateInstance]
lea rdi, [0x14007a3a0]
test eax, eax
js 0x1400125eb
mov qword [rsp + 0x50], rsi
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r9, [rsp + 0x50]
lea r8, [0x14006af68]
lea rdx, str.v4.0.30319
call qword [rax + 0x18]
mov ebx, eax
test eax, eax
js 0x1400125dc
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov r9, rdi
lea r8, [0x1400672e0]
lea rdx, [0x1400672f0]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x1400125d1
mov rcx, qword [0x14007a3a0]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x50]
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 0x14001262e
mov rcx, qword [0x14007a3a0]
test rcx, rcx
jne 0x140012635
mov qword [rsp + 0x20], rdi
lea r9, [0x1400672e0]
lea r8, [0x1400672f0]
xor edx, edx
lea rcx, str.v2.0.50727
call qword [sym.imp.mscoree.dll_CorBindToRuntime]
test eax, eax
js 0x1400129ad
mov rcx, qword [0x14007a3a0]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [0x14007a3a0]
xor dil, dil
mov qword [rsp + 0x58], rsi
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [rax + 0x68]
test eax, eax
js 0x140013014
mov qword [rsp + 0x50], rsi
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001306a
mov qword [rsp + 0x50], rsi
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
lea rdx, [0x14006af58]
call qword [rax]
test eax, eax
js 0x140013003
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rsi
lea r8, [rsp + 0x68]
lea rdx, [0x14006a87c]
mov ecx, 0x65
call fcn.140011f70
mov rax, qword [rsp + 0x70]
mov r12, qword [rsp + 0x68]
sub rax, r12
mov qword [rsp + 0x60], rax
je 0x140012fcb
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x80]
call fcn.140032250
lea rdx, [rbp + 0x80]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140012fcb
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
mov r8d, 0x11
lea rdx, str.FLiNGTrainer.tmp
lea rcx, [rbp]
call fcn.140002310
nop
lea rax, [rbp + 0x80]
mov r9, 0xffffffffffffffff
nop
inc r9
cmp word [rax + r9*2], 0
jne 0x140012720
lea r8, [rbp + 0x80]
lea rcx, [rbp]
call fcn.140006220
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
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 + 0x18]
cmp rdx, 8
jb 0x1400127a8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400127a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013075
call fcn.140030010
movdqa xmm0, xmmword [0x14006d340]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], si
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], rsi
mov r8d, 1
lea rdx, [0x14006a878]
lea rcx, [rbp - 0x60]
call fcn.140002310
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x38], rsi
mov r8d, 2
lea rdx, [0x14006af3c]
lea rcx, [rbp + 0x20]
call fcn.140002310
nop
mov rbx, rsi
mov r15, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x30]
mov r14, qword [rbp + 0x20]
mov rsi, qword [rbp - 0x50]
nop dword [rax + rax]
lea r9, [rbp + 0x20]
cmp r15, 8
cmovae r9, r14
lea r10, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae r10, qword [rbp - 0x80]
mov rax, qword [rbp - 0x70]
cmp rdi, rax
ja 0x140012883
sub rax, rdi
cmp rbx, rax
ja 0x140012883
test rdi, rdi
je 0x140012a0a
lea r11, [rax + 1]
lea r11, [r10 + r11*2]
lea rbx, [r10 + rbx*2]
mov rax, r11
sub rax, rbx
sar rax, 1
je 0x140012883
movzx ecx, word [r9]
nop
cmp word [rbx], cx
je 0x1400129cd
add rbx, 2
sub rax, 1
jne 0x140012870
cmp r15, 8
jb 0x1400128bf
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400128b6
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001307b
mov rcx, r14
call fcn.140030010
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x1400128ff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400128fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001309f
call fcn.140030010
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r14 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140012ed8
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r14
lea rbx, [rbp - 0x80]
mov rax, qword [rbp - 0x68]
cmp rax, 8
cmovae rbx, qword [rbp - 0x80]
mov r15, qword [rbp - 0x70]
movabs rdi, 0x7ffffffffffffffe
mov qword [rsp + 0x48], rdi
cmp r15, rdi
ja 0x140013081
cmp r15, 8
jae 0x140012a4b
mov qword [rbp - 0x50], r15
mov edi, 7
mov qword [rsp + 0x48], rdi
mov qword [rbp - 0x48], rdi
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x60], xmm0
movq r13, xmm0
jmp 0x140012b07
xor r9d, r9d
lea r8, [0x14006a8b8]
lea rdx, [0x14006a8d0]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x140013029
test rbx, rbx
je 0x140012883
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x140012a04
mov r8, rbx
sub r8, r9
nop word [rax + rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140012a42
add rcx, 2
sub rdx, 1
jne 0x1400129f0
sub rbx, r10
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x140012883
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae r9, qword [rbp - 0x60]
mov qword [rsp + 0x20], rsi
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140017140
mov rsi, qword [rbp - 0x50]
add rbx, rsi
jmp 0x140012820
add rbx, 2
jmp 0x140012860
mov qword [rbp - 0x48], 7
mov rax, r15
or rax, 7
cmp rax, rdi
jbe 0x140012a6f
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140012aa6
mov rdi, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rdi, rcx
mov qword [rsp + 0x48], rdi
lea rcx, [rdi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x1400130a5
add rcx, rcx
cmp rcx, 0x1000
jb 0x140012ad2
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400130a5
mov rcx, rax
call fcn.140030044
test rax, rax
je 0x14001309f
lea r13, [rax + 0x27]
and r13, 0xffffffffffffffe0
mov qword [r13 - 8], rax
jmp 0x140012ae4
test rcx, rcx
je 0x140012ae1
call fcn.140030044
mov r13, rax
jmp 0x140012ae4
mov r13, r14
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], rdi
lea r8, [r15*2 + 2]
mov rdx, rbx
mov rcx, r13
call fcn.140032610
mov rax, qword [rbp - 0x68]
mov esi, r14d
mov dword [rsp + 0x44], r14d
nop
lea r9, [rbp - 0x60]
cmp rdi, 8
cmovae r9, r13
cmp r15, rax
ja 0x140012b4b
lea rdi, [rbp - 0x80]
cmp rax, 8
cmovae rdi, qword [rbp - 0x80]
mov qword [rbp - 0x70], r15
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call fcn.140032610
mov word [rdi + rbx], r14w
jmp 0x140012b68
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140002960
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x48], rax
mov r15, qword [rbp - 0x50]
mov r13, qword [rbp - 0x60]
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x58], r14
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp + 0x40]
call fcn.140002310
nop
mov edx, esi
lea rcx, [rbp + 0x60]
call fcn.1400130e0
nop
mov r9d, 1
lea r8, [0x14006af54]
mov rcx, rax
call fcn.140006220
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp - 0x40]
call fcn.140002de0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rbx, r14
mov r12, qword [rbp + 0x58]
cmp r12, 8
setae byte [rsp + 0x40]
mov rdi, qword [rbp + 0x50]
mov r14, qword [rbp + 0x40]
mov rsi, qword [rbp - 0x10]
nop
lea r9, [rbp + 0x40]
cmp r12, 8
cmovae r9, r14
lea r11, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae r11, qword [rbp - 0x80]
mov rax, qword [rbp - 0x70]
cmp rdi, rax
ja 0x140012c93
sub rax, rdi
cmp rbx, rax
ja 0x140012c93
test rdi, rdi
je 0x140012e4c
lea r10, [rax + 1]
lea r10, [r11 + r10*2]
lea rbx, [r11 + rbx*2]
mov rax, r10
sub rax, rbx
sar rax, 1
je 0x140012c93
movzx ecx, word [r9]
nop
cmp word [rbx], cx
je 0x140012e18
add rbx, 2
sub rax, 1
jne 0x140012c80
mov rdx, qword [rbp - 8]
cmp rdx, 8
jb 0x140012cd4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012cce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013087
call fcn.140030010
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140012d14
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012d0f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001308d
call fcn.140030010
xor esi, esi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], si
mov rdx, qword [rbp + 0x78]
cmp rdx, 8
jb 0x140012d66
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012d61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013093
call fcn.140030010
mov qword [rbp + 0x70], rsi
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], si
cmp byte [rsp + 0x40], 0
je 0x140012db2
lea rdx, [r12*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140012daa
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013099
mov rcx, r14
call fcn.140030010
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r14 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140012e8d
mov esi, dword [rsp + 0x44]
inc esi
mov dword [rsp + 0x44], esi
cmp esi, 0x32
jge 0x140012e8d
mov rax, qword [rbp - 0x68]
mov rdi, qword [rsp + 0x48]
jmp 0x140012b10
test rbx, rbx
je 0x140012c93
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x140012e46
mov r8, rbx
sub r8, r9
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140012e84
add rcx, 2
sub rdx, 1
jne 0x140012e32
sub rbx, r11
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x140012c93
lea r9, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae r9, qword [rbp - 0x20]
mov qword [rsp + 0x20], rsi
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140017140
mov rsi, qword [rbp - 0x10]
add rbx, rsi
jmp 0x140012c30
add rbx, 2
jmp 0x140012c70
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140012ecd
lea rdx, [rdx*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x140012ec5
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001309f
mov rcx, r13
call fcn.140030010
mov r12, qword [rsp + 0x68]
cmp rbx, 0xffffffffffffffff
je 0x140012f01
mov dword [rsp + 0x44], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x60]
mov rdx, r12
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 0x140012f87
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
jb 0x140012f6e
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jne 0x140012f6e
mov rbx, r14
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x44], r14d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400130ab
mov rax, qword [rcx]
lea r9, [rsp + 0x44]
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 0x140012f8a
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14001305f
jmp 0x140012f36
xor dil, dil
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140012fcb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012fc5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400130b6
call fcn.140030010
nop
test r12, r12
je 0x140013003
mov rdx, qword [rsp + 0x78]
sub rdx, r12
mov rax, r12
cmp rdx, 0x1000
jb 0x140012ffa
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013059
mov rcx, r12
call fcn.140030010
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140013014
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140013025
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x2080]
xor rcx, rsp
call fcn.14002fff0
lea r11, [rsp + 0x2190]
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.140036a68
nop
mov ecx, 0x8007000e
call fcn.140012360
nop
mov ecx, 0x80004003
call fcn.14002e2d0
nop
call fcn.140036a68
nop
call fcn.140036a68
nop
call fcn.1400012c0
nop
call fcn.140036a68
nop
call fcn.140036a68
nop
call fcn.140036a68
nop
call fcn.140036a68
nop
call fcn.140036a68
int3
call fcn.140001220
nop
mov ecx, 0x80004003
call fcn.14002e2d0
nop
call fcn.140036a68
int3