Function at 0x140001290
Capabilities:
Create mailslot
Create process on windows
Create process suspended
Create thread
Inject thread
Read file on windows
Read from mailslot
Resume thread
Use process replacement

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0xc8]
sub rsp, 0x1c8
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rdi, rdx
cmp ecx, 3
jge 0x1400012ce
lea rcx, str.Usage:_Injector__exepath___dllpath__n
call fcn.140001010
xor eax, eax
jmp 0x1400016a8
lea rcx, str.Starting_injector..._n
mov qword [rsp + 0x1f0], rsi
call fcn.140001010
xor r9d, r9d
lea rcx, str..mailslotBalatroInjector
xor edx, edx
mov r8d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_CreateMailslotW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000131f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateMailslot_failed_with__d_n
call fcn.140001010
lea eax, [rsi + 2]
jmp 0x1400016a0
xorps xmm0, xmm0
mov qword [rsp + 0x1e0], rbx
mov rbx, qword [rdi + 8]
lea rcx, str.Launching_balatro..._n
mov rdi, qword [rdi + 0x10]
xor eax, eax
movups xmmword [rbp + 0x44], xmm0
mov dword [rbp + 0xa4], eax
movups xmmword [rbp + 0x54], xmm0
mov qword [rbp + 8], rax
movups xmmword [rbp + 0x64], xmm0
mov qword [rsp + 0x1c0], r15
movups xmmword [rbp + 0x74], xmm0
mov dword [rbp + 0x40], 0x68
movups xmmword [rbp + 0x84], xmm0
movups xmmword [rbp + 0x94], xmm0
movups xmmword [rbp - 8], xmm0
call fcn.140001010
xor r15d, r15d
lea rax, [rbp - 8]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor edx, edx
mov qword [rsp + 0x38], r15
mov rcx, rbx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400013d1
lea rcx, str.Error_launching_balatro_
call fcn.140001010
lea eax, [r15 + 1]
jmp 0x140001690
mov rbx, qword [rbp - 8]
test rbx, rbx
jne 0x1400013f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Error_opening_balatro___u__n
call fcn.140001010
lea eax, [rbx + 1]
jmp 0x140001690
lea rcx, str.Allocating_dll_memory..._n
mov qword [rsp + 0x1f8], r14
call fcn.140001010
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
jne 0x140001442
lea rcx, str.Error_allocating_memory__n
call fcn.140001010
jmp 0x140001683
lea rcx, str.Writing_dll_memory..._n
call fcn.140001010
mov r9, 0xffffffffffffffff
inc r9
cmp byte [rdi + r9], r15b
jne 0x140001455
inc r9
mov qword [rsp + 0x20], r15
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rcx, str.Creating_remote_thread..._n
call fcn.140001010
call fcn.140001070
lea rcx, [0x140005638]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x140005620]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov r9, rax
mov dword [rsp + 0x28], r15d
xor edx, edx
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
jne 0x1400014dc
lea rcx, str.Error_creating_thread__n
call fcn.140001010
jmp 0x140001683
lea rcx, str.Waiting_for_thread..._n
call fcn.140001010
mov edx, 0x1388
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140001506
lea rcx, str.Error_waiting_for_single_object__n
call fcn.140001010
lea rcx, str.Resuming_balatro..._n
call fcn.140001010
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop dword [rax]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, str.ExampleSlot
mov dword [rbp + 0x34], r15d
xor r8d, r8d
mov dword [rbp + 0x30], r15d
xor edx, edx
mov dword [rbp - 0x10], r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r14, rax
test rax, rax
je 0x140001520
lea r9, [rbp + 0x30]
mov qword [rbp + 0x20], r15
lea r8, [rbp - 0x10]
mov qword [rbp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
test eax, eax
je 0x14000166f
mov eax, dword [rbp - 0x10]
cmp eax, 0xffffffff
je 0x140001520
cmp dword [rbp + 0x30], r15d
je 0x140001628
lea rcx, [rsp + 0x50]
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rcx + rdi], r15b
jne 0x1400015a0
nop dword [rax]
mov edx, eax
mov ecx, 0x40
add rdx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x14000166b
mov byte [rax], r15b
lea r9, [rbp + 0x34]
mov r8d, dword [rbp - 0x10]
lea rax, [rbp + 0x10]
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000164e
mov rcx, rbx
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
lea r9, [rbp + 0x30]
mov qword [rsp + 0x20], r15
lea r8, [rbp - 0x10]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
test eax, eax
je 0x140001636
cmp dword [rbp + 0x30], r15d
je 0x140001628
mov eax, dword [rbp - 0x10]
jmp 0x1400015b0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001520
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetMailslotInfo_failed___d__n
call fcn.140001010
xor eax, eax
jmp 0x140001688
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ReadFile_failed_with__d._n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x140001688
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetMailslotInfo_failed_with__d._n
call fcn.140001010
mov eax, 1
mov r14, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1e0]
mov r15, qword [rsp + 0x1c0]
mov rsi, qword [rsp + 0x1f0]
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400016e0
add rsp, 0x1c8
pop rdi
pop rbp
ret