Function at 0x1400125b0
Capabilities:
Check if file exists
Get common file path
Get file attributes
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.14002d800
sub rsp, rax
mov rax, qword [0x14006e040]
xor rax, rsp
mov qword [rbp + 0x2080], rax
xor r13d, r13d
mov rcx, qword [0x1400712e0]
test rcx, rcx
jne 0x140012611
call fcn.140012190
test al, al
je 0x140012f3b
mov rcx, qword [0x1400712e0]
xor dil, dil
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x58], r13
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [rax + 0x68]
test eax, eax
js 0x140012f26
mov qword [rsp + 0x50], r13
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140012f7c
mov qword [rsp + 0x50], r13
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
lea rdx, [0x140062cc8]
call qword [rax]
test eax, eax
js 0x140012f15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r13
lea r8, [rsp + 0x68]
lea rdx, [0x1400625c4]
mov ecx, 0x65
call fcn.140011840
mov rax, qword [rsp + 0x70]
mov r12, qword [rsp + 0x68]
sub rax, r12
mov qword [rsp + 0x60], rax
je 0x140012edd
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0x80]
call fcn.14004f4c0
lea rdx, [rbp + 0x80]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140012edd
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.140002560
nop
lea rax, [rbp + 0x80]
mov r9, 0xffffffffffffffff
nop
inc r9
cmp word [rax + r9*2], 0
jne 0x140012700
lea r8, [rbp + 0x80]
lea rcx, [rbp]
call fcn.140006290
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov rdx, qword [rbp + 0x18]
cmp rdx, 7
jbe 0x140012789
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012784
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012f87
call fcn.14002d160
movdqa xmm0, xmmword [0x140063fb0]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], r13w
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], r13
mov r8d, 1
lea rdx, [0x140062568]
lea rcx, [rbp - 0x60]
call fcn.140002560
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x38], r13
mov r8d, 2
lea rdx, [0x140062cac]
lea rcx, [rbp + 0x20]
call fcn.140002560
nop
mov rbx, r13
mov r15, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x30]
mov r14, qword [rbp + 0x20]
mov rsi, qword [rbp - 0x50]
nop word [rax + rax]
lea r9, [rbp + 0x20]
cmp r15, 7
cmova r9, r14
lea r10, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova r10, qword [rbp - 0x80]
mov rax, qword [rbp - 0x70]
cmp rdi, rax
ja 0x140012863
sub rax, rdi
cmp rbx, rax
ja 0x140012863
test rdi, rdi
je 0x1400129ba
lea r11, [rax + 1]
lea r11, [r10 + r11*2]
lea rbx, [r10 + rbx*2]
mov rax, r11
sub rax, rbx
sar rax, 1
je 0x140012863
movzx ecx, word [r9]
nop
cmp word [rbx], cx
je 0x14001297e
add rbx, 2
sub rax, 1
jne 0x140012850
cmp r15, 7
jbe 0x14001289f
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140012896
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012f8d
mov rcx, r14
call fcn.14002d160
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x1400128df
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400128da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012fb1
call fcn.14002d160
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rcx, qword [rbp - 0x80]
mov qword [rsp + 0x30], r13
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 0x140012de6
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], r13
lea r14, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova r14, qword [rbp - 0x80]
mov rdi, qword [rbp - 0x70]
movabs rbx, 0x7ffffffffffffffe
cmp rdi, rbx
ja 0x140012f93
cmp rdi, 7
ja 0x1400129fb
mov qword [rbp - 0x50], rdi
mov ebx, 7
mov qword [rbp - 0x48], rbx
movups xmm0, xmmword [r14]
movups xmmword [rbp - 0x60], xmm0
movq rsi, xmm0
jmp 0x140012a50
test rbx, rbx
je 0x140012863
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x1400129b4
mov r8, rbx
sub r8, r9
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x1400129f2
add rcx, 2
sub rdx, 1
jne 0x1400129a0
sub rbx, r10
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x140012863
lea r9, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova r9, qword [rbp - 0x60]
mov qword [rsp + 0x20], rsi
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140017520
mov rsi, qword [rbp - 0x50]
add rbx, rsi
jmp 0x140012800
add rbx, 2
jmp 0x140012840
mov rax, rdi
or rax, 7
cmp rax, rbx
ja 0x140012a16
mov rbx, rax
mov ecx, 0xa
cmp rax, rcx
cmovb rbx, rcx
lea rax, [rbx + 1]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.140002430
mov rsi, rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rbx
lea r8, [rdi*2 + 2]
mov rdx, r14
mov rcx, rax
call fcn.14004f880
nop
mov r12d, r13d
nop dword [rax]
nop word [rax + rax]
lea rdx, [rbp - 0x60]
cmp rbx, 7
cmova rdx, rsi
mov r8, rdi
lea rcx, [rbp - 0x80]
call fcn.1400020c0
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], r13
mov qword [rbp + 0x58], r13
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp + 0x40]
call fcn.140002560
nop
mov edx, r12d
lea rcx, [rbp + 0x60]
call fcn.140012ff0
nop
mov r9d, 1
lea r8, [0x140062cc4]
lea rcx, [rbp + 0x60]
call fcn.140006290
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], r13
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x30], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp - 0x40]
call fcn.140002cc0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 7
mov word [rax], r13w
mov rbx, r13
mov r15, qword [rbp + 0x58]
cmp r15, 7
seta r13b
mov rdi, qword [rbp + 0x50]
mov r14, qword [rbp + 0x40]
mov rsi, qword [rbp - 0x10]
nop
lea r9, [rbp + 0x40]
cmp r15, 7
cmova r9, r14
lea r10, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova r10, qword [rbp - 0x80]
mov rax, qword [rbp - 0x70]
cmp rdi, rax
ja 0x140012ba3
sub rax, rdi
cmp rbx, rax
ja 0x140012ba3
test rdi, rdi
je 0x140012d5a
lea r11, [rax + 1]
lea r11, [r10 + r11*2]
lea rbx, [r10 + rbx*2]
mov rax, r11
sub rax, rbx
sar rax, 1
je 0x140012ba3
movzx ecx, word [r9]
nop
cmp word [rbx], cx
je 0x140012d23
add rbx, 2
sub rax, 1
jne 0x140012b90
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x140012be4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012bde
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012f99
call fcn.14002d160
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x140012c24
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012c1f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012f9f
call fcn.14002d160
xor ebx, ebx
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], bx
mov rdx, qword [rbp + 0x78]
cmp rdx, 7
jbe 0x140012c76
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012c71
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012fa5
call fcn.14002d160
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], bx
test r13b, r13b
je 0x140012cc0
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140012cb8
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012fab
mov rcx, r14
call fcn.14002d160
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
cmova rcx, qword [rbp - 0x80]
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r13 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140012d9b
inc r12d
cmp r12d, 0x32
jge 0x140012d9b
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x50]
mov rsi, qword [rbp - 0x60]
jmp 0x140012a60
test rbx, rbx
je 0x140012ba3
mov rdx, rdi
mov rcx, r9
test rdi, rdi
je 0x140012d54
mov r8, rbx
sub r8, r9
nop dword [rax]
movzx eax, word [rcx]
cmp word [rcx + r8], ax
jne 0x140012d92
add rcx, 2
sub rdx, 1
jne 0x140012d40
sub rbx, r10
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x140012ba3
lea r9, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova r9, qword [rbp - 0x20]
mov qword [rsp + 0x20], rsi
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140017520
mov rsi, qword [rbp - 0x10]
add rbx, rsi
jmp 0x140012b40
add rbx, 2
jmp 0x140012b80
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140012ddb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012dd6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012fb1
call fcn.14002d160
mov r12, qword [rsp + 0x68]
cmp rbx, 0xffffffffffffffff
je 0x140012e0f
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
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], 7
cmova rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140012e98
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 7
jbe 0x140012e7f
mov rcx, qword [rbp - 0x80]
test rcx, rcx
jne 0x140012e7f
mov rbx, r13
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x40], r13d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140012fb7
mov rax, qword [rcx]
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x190]
mov edi, eax
shr edi, 0x1f
xor dil, 1
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x140012e9c
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140012f71
jmp 0x140012e44
mov edi, dword [rsp + 0x48]
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x140012edd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012ed7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012fc2
call fcn.14002d160
nop
test r12, r12
je 0x140012f15
mov rdx, qword [rsp + 0x78]
sub rdx, r12
mov rax, r12
cmp rdx, 0x1000
jb 0x140012f0c
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012f6b
mov rcx, r12
call fcn.14002d160
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140012f26
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140012f37
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x2080]
xor rcx, rsp
call fcn.14002d140
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.14003405c
nop
mov ecx, 0x8007000e
call fcn.140011c30
nop
mov ecx, 0x80004003
call fcn.14002b5e0
nop
call fcn.14003405c
nop
call fcn.14003405c
nop
call fcn.140001300
nop
call fcn.14003405c
nop
call fcn.14003405c
nop
call fcn.14003405c
nop
call fcn.14003405c
nop
call fcn.14003405c
nop
mov ecx, 0x80004003
call fcn.14002b5e0
nop
call fcn.14003405c
int3