Function at 0x1400534f0
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 - 0x20e0]
mov eax, 0x21e0
call fcn.1400a4bc0
sub rsp, rax
mov rax, qword [0x14013a0c0]
xor rax, rsp
mov qword [rbp + 0x20d0], rax
xor ebx, ebx
mov rcx, qword [0x14014e500]
test rcx, rcx
jne 0x140053550
call fcn.1400530c0
test al, al
je 0x140053f56
mov rcx, qword [0x14014e500]
xor dil, dil
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x58], rbx
mov rax, qword [rcx]
mov qword [rsp + 0x58], rbx
lea rdx, [rsp + 0x58]
call qword [rax + 0x68]
test eax, eax
js 0x140053f41
mov qword [rsp + 0x50], rbx
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140053f97
mov rax, qword [rcx]
mov qword [rsp + 0x50], rbx
lea r8, [rsp + 0x50]
lea rdx, [0x14011a318]
call qword [rax]
test eax, eax
js 0x140053f30
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rbx
lea r8, [rbp - 0x78]
lea rdx, [0x140119c14]
mov ecx, 0x65
call fcn.1400653b0
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x78], rax
mov r13, qword [rbp - 0x78]
mov qword [rbp - 0x80], r13
cmp rax, r13
je 0x140053efa
xor edx, edx
mov r8d, 0x2000
lea rcx, [rbp + 0xd0]
call fcn.1400cf370
lea rdx, [rbp + 0xd0]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140053efa
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.140006540
nop
lea rax, [rbp + 0xd0]
mov r9, 0xffffffffffffffff
inc r9
cmp word [rax + r9*2], 0
jne 0x140053642
lea r8, [rbp + 0xd0]
lea rcx, [rbp]
call fcn.140054070
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov rdx, qword [rbp + 0x18]
cmp rdx, 7
jbe 0x1400536ca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400536c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053fa2
call fcn.1400a3ec0
movdqa xmm0, xmmword [0x140125b80]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], bx
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rbx
mov r8d, 1
lea rdx, [0x140119ba8]
lea rcx, [rbp - 0x40]
call fcn.140006540
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rbx
mov r8d, 2
lea rdx, [0x14011a2fc]
lea rcx, [rbp + 0x20]
call fcn.140006540
nop
mov r12, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x30]
mov r15, qword [rbp + 0x20]
mov r14, qword [rbp - 0x30]
nop word [rax + rax]
lea r10, [rbp + 0x20]
cmp r12, 7
cmova r10, r15
lea r11, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova r11, qword [rbp - 0x60]
mov rax, qword [rbp - 0x50]
cmp rdi, rax
ja 0x14005382c
sub rax, rdi
cmp rbx, rax
ja 0x14005382c
test rdi, rdi
je 0x1400537ef
lea rsi, [rax + 1]
lea rsi, [r11 + rsi*2]
lea rbx, [r11 + rbx*2]
movzx r9d, word [r10]
nop dword [rax + rax]
mov rax, rsi
sub rax, rbx
sar rax, 1
mov ecx, 0
je 0x1400537bc
cmp word [rbx], r9w
je 0x1400537b9
cmp rax, 1
je 0x1400537bc
dec rax
add rbx, 2
cmp word [rbx], r9w
jne 0x1400537a6
mov rcx, rbx
mov rbx, rcx
test rcx, rcx
je 0x14005382c
mov rdx, rdi
mov rcx, r10
test rdi, rdi
je 0x1400537e9
mov r8, rbx
sub r8, r10
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140053823
add rcx, 2
sub rdx, 1
jne 0x1400537d5
sub rbx, r11
sar rbx, 1
cmp rbx, 0xffffffffffffffff
je 0x14005382c
lea r9, [rbp - 0x40]
cmp qword [rbp - 0x28], 7
cmova r9, qword [rbp - 0x40]
mov qword [rsp + 0x20], r14
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.140069960
mov r14, qword [rbp - 0x30]
add rbx, r14
jmp 0x140053740
add rbx, 2
jmp 0x140053790
cmp r12, 7
jbe 0x140053868
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x14005385f
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053fa8
mov rcx, r15
call fcn.1400a3ec0
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x1400538a8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400538a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053fc6
call fcn.1400a3ec0
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rcx, qword [rbp - 0x60]
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 rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140053e02
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x40]
call fcn.14001f6b0
nop
mov r14d, esi
mov dword [rsp + 0x44], esi
movzx ebx, byte [rsp + 0x40]
mov r13, qword [rbp + 0x58]
mov qword [rsp + 0x60], r13
mov r15, qword [rbp + 0x50]
mov qword [rsp + 0x70], r15
mov r12, qword [rbp + 0x40]
mov qword [rsp + 0x68], r12
mov edi, 0x2d
lea r9, [rbp + 0x40]
cmp r13, 7
cmova r9, r12
mov rax, qword [rbp - 0x48]
cmp r15, rax
ja 0x14005396b
lea rsi, [rbp - 0x60]
cmp rax, 7
cmova rsi, qword [rbp - 0x60]
mov qword [rbp - 0x50], r15
lea rdi, [r15 + r15]
mov r8, rdi
mov rdx, r9
mov rcx, rsi
call fcn.1400cecd0
xor eax, eax
mov word [rdi + rsi], ax
xor esi, esi
lea edi, [rax + 0x2d]
jmp 0x140053992
mov rdx, r15
lea rcx, [rbp - 0x60]
call fcn.1400224a0
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x60], rax
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x70], rax
mov rax, qword [rbp + 0x40]
mov qword [rsp + 0x68], rax
lea r9, [rbp + 0xca]
mov r8d, r14d
test r14d, r14d
jns 0x1400539f0
neg r8d
nop dword [rax]
nop dword [rax + rax]
sub r9, 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 [r9], r8w
mov r8d, edx
test edx, edx
jne 0x1400539b0
add r9, 0xfffffffffffffffe
mov word [r9], di
jmp 0x140053a20
sub r9, 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 [r9], r8w
mov r8d, edx
test edx, edx
jne 0x1400539f0
lea r8, [rbp + 0xca]
mov rdx, r9
lea rcx, [rbp + 0x80]
call fcn.140054170
nop
mov r9d, 1
lea r8, [0x14011a314]
lea rcx, [rbp + 0x80]
call fcn.140054070
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], rsi
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 rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x140053abf
lea rax, [rcx + 4]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x40]
cmp rdx, 7
cmova rax, qword [rbp - 0x40]
movabs rdx, 0x70006d0074002e
mov qword [rax + rcx*2], rdx
mov word [rax + rcx*2 + 8], si
lea rax, [rbp - 0x40]
jmp 0x140053ae1
mov qword [rsp + 0x20], 4
lea r9, str..tmp
movzx r8d, bl
mov edx, 4
lea rcx, [rbp - 0x40]
call fcn.14004fa70
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], rsi
mov qword [rbp + 0x78], rsi
mov r8d, 4
lea rdx, str..tmp
lea rcx, [rbp + 0x60]
call fcn.140006540
nop
xor ecx, ecx
mov edi, ecx
mov r13, qword [rbp + 0x78]
cmp r13, 7
seta byte [rsp + 0x40]
mov rsi, qword [rbp + 0x70]
mov r15, qword [rbp + 0x60]
mov r12, qword [rbp - 0x10]
nop dword [rax]
nop word [rax + rax]
lea r10, [rbp + 0x60]
cmp r13, 7
cmova r10, r15
lea r14, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova r14, qword [rbp - 0x60]
mov rax, qword [rbp - 0x50]
cmp rsi, rax
ja 0x140053c3b
sub rax, rsi
cmp rdi, rax
ja 0x140053c3b
test rsi, rsi
je 0x140053bfa
lea r11, [rax + 1]
lea r11, [r14 + r11*2]
lea rdi, [r14 + rdi*2]
movzx r9d, word [r10]
nop dword [rax + rax]
mov rax, r11
sub rax, rdi
sar rax, 1
je 0x140053bc7
cmp word [rdi], r9w
je 0x140053bc4
cmp rax, 1
je 0x140053bc7
dec rax
add rdi, 2
cmp word [rdi], r9w
jne 0x140053bb1
mov rcx, rdi
mov rdi, rcx
test rcx, rcx
je 0x140053c3b
mov rdx, rsi
mov rcx, r10
test rsi, rsi
je 0x140053bf4
mov r8, rdi
sub r8, r10
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x140053c30
add rcx, 2
sub rdx, 1
jne 0x140053be0
sub rdi, r14
sar rdi, 1
cmp rdi, 0xffffffffffffffff
je 0x140053c3b
lea r9, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova r9, qword [rbp - 0x20]
mov qword [rsp + 0x20], r12
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140069960
mov r12, qword [rbp - 0x10]
add rdi, r12
xor ecx, ecx
jmp 0x140053b50
add rdi, 2
xor ecx, ecx
jmp 0x140053ba0
cmp byte [rsp + 0x40], 0
je 0x140053c78
lea rdx, [r13*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x140053c6f
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053fae
mov rcx, r15
call fcn.1400a3ec0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x140053cb9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053cb3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053fb4
call fcn.1400a3ec0
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x140053cf9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053cf4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053fba
call fcn.1400a3ec0
xor esi, esi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x28], 7
mov word [rbp - 0x40], si
mov rdx, qword [rbp + 0x98]
cmp rdx, 7
jbe 0x140053d51
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053d4c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053fc0
call fcn.1400a3ec0
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rcx, qword [rbp - 0x60]
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 0x140053db6
mov r14d, dword [rsp + 0x44]
inc r14d
mov dword [rsp + 0x44], r14d
cmp r14d, 0x32
jge 0x140053db6
mov r15, qword [rsp + 0x70]
mov r12, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
jmp 0x140053921
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140053df8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053df3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053fc6
call fcn.1400a3ec0
mov r13, qword [rbp - 0x80]
cmp rdi, 0xffffffffffffffff
je 0x140053e2d
mov dword [rsp + 0x44], esi
mov r8, qword [rsp + 0x78]
sub r8, r13
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x44]
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140053eb5
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
jbe 0x140053e9c
mov rcx, qword [rbp - 0x60]
test rcx, rcx
jne 0x140053e9c
mov rbx, rsi
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0x44], esi
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140053fcc
mov rax, qword [rcx]
lea r9, [rsp + 0x44]
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 0x140053eb9
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x78], rax
test rax, rax
je 0x140053f8c
jmp 0x140053e62
mov edi, dword [rsp + 0x48]
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140053efa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140053ef4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053fd7
call fcn.1400a3ec0
nop
test r13, r13
je 0x140053f30
mov rdx, qword [rbp - 0x68]
sub rdx, r13
mov rax, r13
cmp rdx, 0x1000
jb 0x140053f27
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053f86
mov rcx, r13
call fcn.1400a3ec0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140053f41
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140053f52
mov rdx, qword [rcx]
call qword [rdx + 0x10]
nop
movzx eax, dil
mov rcx, qword [rbp + 0x20d0]
xor rcx, rsp
call fcn.1400a3ea0
lea r11, [rsp + 0x21e0]
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.1400aafb0
nop
mov ecx, 0x8007000e
call fcn.140052a90
nop
mov ecx, 0x80004003
call fcn.1400a16d0
nop
call fcn.1400aafb0
nop
call fcn.1400aafb0
nop
call fcn.1400aafb0
nop
call fcn.1400aafb0
nop
call fcn.1400aafb0
nop
call fcn.1400aafb0
nop
call fcn.1400aafb0
nop
mov ecx, 0x80004003
call fcn.1400a16d0
nop
call fcn.1400aafb0
int3