Function at 0x1400140d0
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.140035fe0
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 [0x1400ab088]
xor rax, rsp
mov qword [rbp + 0x2060], rax
xor esi, esi
mov rcx, qword [0x1400b05f0]
test rcx, rcx
jne 0x140014218
mov qword [rsp + 0x48], rsi
lea r8, [rsp + 0x48]
lea rdx, [0x140091528]
lea rcx, [0x140091518]
call qword [sym.imp.mscoree.dll_CLRCreateInstance]
lea rdi, [0x1400b05f0]
test eax, eax
js 0x1400141ce
mov qword [rsp + 0x40], rsi
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
lea r8, [0x140091508]
lea rdx, str.v4.0.30319
call qword [rax + 0x18]
mov ebx, eax
test eax, eax
js 0x1400141bf
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
mov r9, rdi
lea r8, [0x14008d7c0]
lea rdx, [0x14008d7d0]
call qword [rax + 0x48]
mov ebx, eax
test eax, eax
js 0x1400141b4
mov rcx, qword [0x1400b05f0]
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 0x140014211
mov rcx, qword [0x1400b05f0]
test rcx, rcx
jne 0x140014218
mov qword [rsp + 0x20], rdi
lea r9, [0x14008d7c0]
lea r8, [0x14008d7d0]
xor edx, edx
lea rcx, str.v2.0.50727
call qword [sym.imp.mscoree.dll_CorBindToRuntime]
test eax, eax
js 0x14001444f
mov rcx, qword [0x1400b05f0]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [0x1400b05f0]
xor dil, dil
mov qword [rsp + 0x50], rsi
mov rax, qword [rcx]
lea rdx, [rsp + 0x50]
call qword [rax + 0x68]
test eax, eax
js 0x1400149b7
mov qword [rsp + 0x40], rsi
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140014a0c
mov qword [rsp + 0x40], rsi
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x1400914f8]
call qword [rax]
test eax, eax
js 0x1400149a6
mov qword [rsp + 0x60], rsi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
lea r8, [rsp + 0x60]
lea rdx, [0x140090e10]
mov ecx, 0x65
call fcn.140013a50
mov rax, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
sub rax, r13
mov qword [rsp + 0x58], rax
je 0x14001496f
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x60]
call fcn.140053c80
lea rdx, [rbp + 0x60]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14001496f
movdqa xmm0, xmmword [0x1400971c0]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], si
mov r8d, 0x11
lea rdx, str.FLiNGTrainer.tmp
lea rcx, [rbp - 0x20]
call fcn.140002170
nop
lea rax, [rbp + 0x60]
mov r9, 0xffffffffffffffff
nop dword [rax + rax]
inc r9
cmp word [rax + r9*2], 0
jne 0x140014300
lea r8, [rbp + 0x60]
lea rcx, [rbp - 0x20]
call fcn.140007b00
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 0x14001437e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014379
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014a17
call fcn.1400357d4
movdqa xmm0, xmmword [0x1400971c0]
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, [0x140090df8]
lea rcx, [rbp - 0x60]
call fcn.140002170
nop
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], si
mov r8d, 2
lea rdx, [0x1400914cc]
lea rcx, [rbp - 0x40]
call fcn.140002170
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.1400027a0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001446f
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.140018820
mov rdi, qword [rbp - 0x50]
add rbx, rdi
jmp 0x1400143f0
xor r9d, r9d
lea r8, [0x140090e48]
lea rdx, [0x140090e60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor al, al
jmp 0x1400149cb
cmp r15, 8
jb 0x1400144ab
lea rdx, [r15*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400144a2
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014a1d
mov rcx, rsi
call fcn.1400357d4
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x1400144eb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400144e6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014a23
call fcn.1400357d4
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 0x14001487e
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x20]
call fcn.140012e20
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.140002170
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.140002170
nop
mov edx, r12d
lea rcx, [rbp + 0x40]
call fcn.140014a70
nop
mov r9d, 1
lea r8, [0x1400914e4]
mov rcx, rax
call fcn.140007b00
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 0x140014613
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.140053e40
mov word [rbx + rdi*2], si
lea rax, [rbp - 0x60]
jmp 0x140014631
mov qword [rsp + 0x20], 4
lea r9, str..tmp
mov edx, 4
lea rcx, [rbp - 0x60]
call fcn.1400032f0
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.1400027a0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400146cf
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.140018820
mov rdi, qword [rbp - 0x30]
add rbx, rdi
jmp 0x140014670
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x140014710
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001470a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014a2f
call fcn.1400357d4
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140014750
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001474b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014a35
call fcn.1400357d4
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 0x1400147a2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001479d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014a3b
call fcn.1400357d4
mov qword [rbp + 0x50], rsi
mov qword [rbp + 0x58], 7
mov word [rbp + 0x40], si
cmp r15, 8
jb 0x1400147ed
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400147e5
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014a41
mov rcx, r14
call fcn.1400357d4
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 0x140014838
inc r12d
cmp r12d, 0x32
jl 0x140014540
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x140014878
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014873
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014a29
call fcn.1400357d4
cmp rbx, 0xffffffffffffffff
je 0x1400148a6
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 0x14001492b
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
jb 0x140014912
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jne 0x140014912
mov rbx, rsi
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x48], esi
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140014a47
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 0x14001492e
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140014a01
jmp 0x1400148db
xor dil, dil
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14001496f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014969
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014a52
call fcn.1400357d4
nop
test r13, r13
je 0x1400149a6
mov rdx, qword [rsp + 0x70]
sub rdx, r13
mov rax, r13
cmp rdx, 0x1000
jb 0x14001499d
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400149fb
mov rcx, r13
call fcn.1400357d4
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400149b7
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400149c7
mov rdx, qword [rcx]
call qword [rdx + 0x10]
movzx eax, dil
mov rcx, qword [rbp + 0x2060]
xor rcx, rsp
call fcn.1400357b0
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.140056d64
nop
mov ecx, 0x8007000e
call fcn.140013e50
nop
mov ecx, 0x80004003
call fcn.140032be0
nop
call fcn.140056d64
nop
call fcn.140056d64
nop
call fcn.140056d64
int3
call fcn.140056d64
nop
call fcn.140056d64
nop
call fcn.140056d64
nop
call fcn.140056d64
nop
call fcn.140056d64
nop
mov ecx, 0x80004003
call fcn.140032be0
nop
call fcn.140056d64
int3