Function at 0x140030f10
Capabilities:
Create thread
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
xor r12d, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r12
lea r8d, [r12 + 0x16]
lea rdx, str.FLiNGTrainerNamedPipe_
lea rcx, [rbp - 0x20]
call fcn.14001d490
mov r8d, ebx
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.14002a870
test al, al
je 0x140031447
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
lea r8d, [r12 + 0x60]
lea rdx, [0x1400bea10]
lea rcx, [rbp - 0x40]
call fcn.14001d490
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.14002f260
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov qword [rbp - 8], 0xf
mov rax, qword [str.6401994]
mov dword [rbp - 0x20], eax
movzx eax, word [0x1400beadc]
mov word [rbp - 0x1c], ax
movzx eax, byte [0x1400beade]
mov byte [rbp - 0x1a], al
mov byte [rbp - 0x19], r12b
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.140030e60
lea r14, [rdi + 0x430]
cmp qword [r14 + 0x18], 0x5b0
jb 0x140031021
mov rbx, qword [r14]
mov qword [r14 + 0x10], 0x5b0
mov r8d, 0xb60
lea rdx, str._n_nhealth
mov rcx, rbx
call fcn.140074eb0
mov word [rbx + 0xb60], r12w
jmp 0x140031035
lea r9, str._n_nhealth
mov edx, 0x5b0
mov rcx, r14
call fcn.14001d760
lea rsi, [rdi + 0x450]
cmp qword [rsi + 0x18], 0x67b
jb 0x140031070
mov rbx, qword [rsi]
mov qword [rsi + 0x10], 0x67b
mov r8d, 0xcf6
lea rdx, str._n_nNum_1__
mov rcx, rbx
call fcn.140074eb0
mov word [rbx + 0xcf6], r12w
jmp 0x140031084
lea r9, str._n_nNum_1__
mov edx, 0x67b
mov rcx, rsi
call fcn.14001d760
call fcn.14002e320
mov rcx, rdi
call fcn.14002e4e0
lea r13, [0x1400d71c0]
mov r15d, dword [0x1400d6b8c]
test r15d, r15d
je 0x14003113d
mov ebx, dword [0x1400d6b88]
test ebx, ebx
je 0x14003113d
mov rcx, r13
call fcn.140071494
test eax, eax
jne 0x140031471
mov dword [rbp + 0x50], 9
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
lea r8d, [rax + 4]
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0x50], r15d
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
mov r8d, 4
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0x50], ebx
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
mov r8d, 4
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r13
call fcn.14007149c
mov rcx, rdi
call fcn.1400314f0
lea rbx, [rdi + 0x550]
mov r8, rbx
lea rdx, str.Cover
mov ecx, 0x75
call fcn.14003ae20
mov rax, qword [rbx + 8]
cmp rax, qword [rbx]
je 0x1400311fe
mov rcx, r13
call fcn.140071494
test eax, eax
jne 0x140031479
mov dword [rbp + 0x50], 3
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
lea r8d, [rax + 4]
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
mov dword [rbp + 0x50], eax
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
mov r8d, 4
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbx]
mov qword [rbp + 0x50], rax
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
mov r8d, 8
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r13
call fcn.14007149c
mov rcx, r13
call fcn.140071494
test eax, eax
jne 0x140031481
mov dword [rbp + 0x50], 5
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
lea r8d, [rax + 4]
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, [0x14002e040]
mov qword [rbp + 0x50], rax
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
mov r8d, 8
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r13
call fcn.14007149c
mov r8, rsi
mov rdx, r14
call fcn.140048ad0
mov qword [rbp + 0x58], r13
mov rcx, r13
call fcn.140071494
test eax, eax
jne 0x140031489
mov dword [rbp + 0x50], 4
mov dword [rbp + 0x48], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x48]
lea r8d, [rax + 4]
lea rdx, [rbp + 0x50]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, r14
lea rcx, [rbp - 0x20]
call fcn.14001b290
mov rdx, rax
mov rcx, rdi
call fcn.14002ac00
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.14001b290
mov rdx, rax
mov rcx, rdi
call fcn.14002ac00
nop
mov rcx, r13
call fcn.14007149c
mov ecx, 8
call fcn.140072724
mov qword [rax], rdi
mov qword [rbp + 0x48], rax
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x140035d60]
xor edx, edx
xor ecx, ecx
call fcn.1400820b0
mov qword [rbp - 0x40], rax
test rax, rax
je 0x140031462
cmp dword [rbp - 0x38], 0
je 0x140031491
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.1400716ac
test eax, eax
jne 0x14003149c
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x40], xmm0
lea ecx, [rax + 8]
call fcn.140072724
mov qword [rax], rdi
mov qword [rbp + 0x48], rax
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x140035d90]
xor edx, edx
xor ecx, ecx
call fcn.1400820b0
mov qword [rbp - 0x40], rax
test rax, rax
je 0x1400314df
cmp dword [rbp - 0x38], 0
je 0x1400314a4
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.1400716ac
test eax, eax
jne 0x1400314af
lea ecx, [rax + 8]
call fcn.140072724
mov qword [rax], rdi
mov qword [rbp + 0x48], rax
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x140035c00]
xor edx, edx
xor ecx, ecx
call fcn.1400820b0
mov qword [rbp - 0x50], rax
test rax, rax
je 0x1400314d0
cmp dword [rbp - 0x48], 0
je 0x1400314b7
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.1400716ac
test eax, eax
jne 0x1400314c2
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
cmp byte [rdi + 0x490], al
jne 0x14003143d
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.14002de50
cmp byte [rdi + 0x490], 0
je 0x140031421
cmp dword [rbp - 0x48], 0
jne 0x1400314ca
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rbp - 0x38], r12d
mov ecx, 6
call fcn.1400702b4
nop
mov ecx, eax
call fcn.140070278
int3
mov ecx, eax
call fcn.140070278
int3
mov ecx, eax
call fcn.140070278
int3
mov ecx, eax
call fcn.140070278
nop
mov ecx, 1
call fcn.1400702b4
int3
mov ecx, eax
call fcn.140070278
nop
mov ecx, 1
call fcn.1400702b4
int3
mov ecx, eax
call fcn.140070278
nop
mov ecx, 1
call fcn.1400702b4
int3
mov ecx, eax
call fcn.140070278
nop
call fcn.140081450
nop
mov dword [rbp - 0x48], r12d
mov ecx, 6
call fcn.1400702b4
nop
mov dword [rbp - 0x38], r12d
mov ecx, 6
call fcn.1400702b4
int3