Function at 0x140038550
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x1400eb3c0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rcx
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], r14
lea r8d, [r14 + 0x16]
lea rdx, str.FLiNGTrainerNamedPipe_
lea rcx, [rbp - 0x29]
call fcn.1400043b0
mov r9d, 0x2710
mov r8d, ebx
lea rdx, [rbp - 0x29]
mov rcx, rdi
call fcn.140038260
test al, al
je 0x140038ac2
mov rcx, rdi
call fcn.14005b5c0
lea rdx, [0x1400edac0]
lea rcx, [0x1400ed6e0]
call fcn.140038bc0
lea rcx, [rbp + 0x17]
call fcn.140048b60
mov rdx, rax
lea rcx, [0x1400eda00]
call fcn.14002c690
mov rdx, qword [rbp + 0x2f]
cmp rdx, 7
jbe 0x14003863f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003863a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140038af6
call fcn.140080efc
lea r15, [0x1400edbe0]
mov qword [rbp + 0x17], r15
mov rcx, r15
call fcn.14007f2cc
test eax, eax
jne 0x140038aeb
cmp dword [0x1400edc2c], 0x7fffffff
je 0x140038afc
lea edx, [rax + 0xa]
mov rcx, rdi
call fcn.140043bc0
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], 0xa
mov qword [rbp - 0x31], reloc.OLEAUT32.dll_SafeArrayDestroy
movsd xmm0, qword [str.TRAINER_ID]
movsd qword [rbp - 0x49], xmm0
movzx eax, word [0x1400b5e18]
mov word [rbp - 0x41], ax
mov byte [rbp - 0x3f], 0
lea rdx, [rbp - 0x49]
mov rcx, rdi
call fcn.14003ee70
mov dword [rbp - 0x59], r14d
mov dword [rbp - 0x49], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x49]
mov r8d, 4
lea rdx, [rbp - 0x59]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp - 0x59], 1
jne 0x1400386fb
lea rdx, [0x1400edae0]
lea rcx, [rbp - 0x49]
call fcn.1400089f0
mov rdx, rax
mov rcx, rdi
call fcn.14003ee70
nop
mov rcx, r15
call fcn.14007f2d4
mov rcx, rdi
call fcn.14003d330
mov esi, dword [0x1400edb68]
test esi, esi
je 0x1400387a7
mov ebx, dword [0x1400edb6c]
test ebx, ebx
je 0x1400387a7
mov qword [rbp + 0x17], r15
mov rcx, r15
call fcn.14007f2cc
test eax, eax
jne 0x140038aeb
cmp dword [0x1400edc2c], 0x7fffffff
je 0x140038afc
lea edx, [rax + 9]
mov rcx, rdi
call fcn.140043bc0
mov dword [rbp - 0x59], esi
mov dword [rbp - 0x49], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x49]
mov r8d, 4
lea rdx, [rbp - 0x59]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp - 0x59], ebx
mov dword [rbp - 0x49], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x49]
mov r8d, 4
lea rdx, [rbp - 0x59]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, r15
call fcn.14007f2d4
mov rcx, rdi
call fcn.14003af50
lea rbx, [rdi + 0x670]
mov r8, rbx
lea rdx, str.Cover
mov ecx, 0x75
call fcn.140043a70
mov rax, qword [rbx + 8]
cmp rax, qword [rbx]
je 0x140038862
mov qword [rbp + 0x17], r15
mov rcx, r15
call fcn.14007f2cc
test eax, eax
jne 0x140038aeb
cmp dword [0x1400edc2c], 0x7fffffff
je 0x140038afc
lea edx, [rax + 3]
mov rcx, rdi
call fcn.140043bc0
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
mov dword [rbp - 0x59], eax
mov dword [rbp - 0x49], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x49]
mov r8d, 4
lea rdx, [rbp - 0x59]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbx]
mov qword [rbp - 0x59], rax
mov dword [rbp - 0x49], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x49]
mov r8d, 8
lea rdx, [rbp - 0x59]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, r15
call fcn.14007f2d4
mov qword [rbp + 0x17], r15
mov rcx, r15
call fcn.14007f2cc
test eax, eax
jne 0x140038aeb
cmp dword [0x1400edc2c], 0x7fffffff
je 0x140038afc
lea edx, [rax + 5]
mov rcx, rdi
call fcn.140043bc0
lea rax, [0x14003a9e0]
mov qword [rbp - 0x59], rax
mov dword [rbp - 0x49], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x49]
mov r8d, 8
lea rdx, [rbp - 0x59]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, r15
call fcn.14007f2d4
lea rcx, [rdi + 0x10]
lea r8, [rdi + 0x570]
lea rdx, [rdi + 0x550]
call fcn.140051500
mov qword [rbp + 0x17], r15
mov rcx, r15
call fcn.14007f2cc
test eax, eax
jne 0x140038aeb
cmp dword [0x1400edc2c], 0x7fffffff
je 0x140038afc
lea edx, [rax + 4]
mov rcx, rdi
call fcn.140043bc0
lea rdx, [rdi + 0x550]
lea rcx, [rbp - 9]
call fcn.140008c40
mov rdx, rax
mov rcx, rdi
call fcn.14003ef40
lea rdx, [rdi + 0x570]
lea rcx, [rbp - 9]
call fcn.140008c40
mov rdx, rax
mov rcx, rdi
call fcn.14003ef40
nop
mov rcx, r15
call fcn.14007f2d4
mov ecx, 8
call fcn.140080ec0
test rax, rax
je 0x14003895f
mov qword [rax], rdi
jmp 0x140038962
mov rax, r14
mov qword [rbp + 0x17], rax
lea rcx, [rbp - 0x41]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140033e40]
xor edx, edx
xor ecx, ecx
call fcn.140093b70
mov qword [rbp - 0x49], rax
test rax, rax
je 0x140038b56
cmp dword [rbp - 0x41], 0
je 0x140038b4b
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp + 0x17], xmm0
lea rcx, [rbp + 0x17]
call fcn.14008016c
test eax, eax
jne 0x140038b4b
lea ecx, [rax + 8]
call fcn.140080ec0
test rax, rax
je 0x1400389ca
mov qword [rax], rdi
jmp 0x1400389cd
mov rax, r14
mov qword [rbp + 0x17], rax
lea rcx, [rbp - 0x41]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140033ce0]
xor edx, edx
xor ecx, ecx
call fcn.140093b70
mov qword [rbp - 0x49], rax
test rax, rax
je 0x140038b3c
cmp dword [rbp - 0x41], 0
je 0x140038b31
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp + 0x17], xmm0
lea rcx, [rbp + 0x17]
call fcn.14008016c
test eax, eax
jne 0x140038b31
lea ecx, [rax + 8]
call fcn.140080ec0
test rax, rax
je 0x140038a35
mov qword [rax], rdi
jmp 0x140038a38
mov rax, r14
mov qword [rbp + 0x17], rax
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x140033e70]
xor edx, edx
xor ecx, ecx
call fcn.140093b70
mov qword [rbp - 0x29], rax
test rax, rax
je 0x140038b22
cmp dword [rbp - 0x21], 0
je 0x140038b17
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp + 0x17], xmm0
lea rcx, [rbp + 0x17]
call fcn.14008016c
test eax, eax
jne 0x140038b17
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x29], xmm0
cmp byte [rdi + 0x5b0], al
jne 0x140038abc
nop
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rdi
call fcn.140038090
cmp byte [rdi + 0x5b0], 0
je 0x140038aa0
cmp dword [rbp - 0x21], 0
jne 0x140038b11
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140081370
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 5
call fcn.14007f548
int3
call fcn.140087eec
int3
mov dword [0x1400edc2c], 0x7ffffffe
mov ecx, 6
call fcn.14007f548
int3
call fcn.140093a0c
nop
mov ecx, 1
call fcn.14007f548
nop
mov dword [rbp - 0x21], r14d
mov ecx, 6
call fcn.14007f548
nop
mov ecx, 1
call fcn.14007f548
nop
mov dword [rbp - 0x41], r14d
mov ecx, 6
call fcn.14007f548
nop
mov ecx, 1
call fcn.14007f548
nop
mov dword [rbp - 0x41], r14d
mov ecx, 6
call fcn.14007f548
int3