Function at 0x140001230
Capabilities:
Create process on windows
Query environment variable
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x140063040]
xor rax, rsp
mov qword [rbp + 0x150], rax
movzx ebx, cl
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x14], xmm0
movups xmmword [rbp + 0x24], xmm0
movups xmmword [rbp + 0x34], xmm0
movups xmmword [rbp + 0x44], xmm0
movups xmmword [rbp + 0x54], xmm0
movups xmmword [rbp + 0x64], xmm0
mov dword [rbp + 0x74], eax
mov dword [rbp + 0x10], 0x68
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
lea rcx, str.Localappdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.140001680
nop
lea rdx, [0x140051815]
lea rcx, [rbp + 0x80]
call fcn.140001680
nop
movsxd rax, dword [0x140064130]
cmp eax, 9
je 0x1400012d7
lea rdx, [0x1400518a0]
mov rdx, qword [rdx + rax*8]
jmp 0x1400012de
lea rdx, [0x140064140]
lea rcx, [rbp + 0x80]
call fcn.140001510
lea rcx, [rbp - 0x18]
call fcn.1400017a0
nop
cmp byte [0x140064240], 0
je 0x14000133d
lea rdx, [0x140064240]
lea rcx, [rbp - 0x70]
call fcn.140001680
nop
lea r8, str.osu_.exe
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.140001920
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.1400015f0
lea rcx, [rbp - 0x38]
call fcn.140001590
nop
lea rcx, [rbp - 0x70]
jmp 0x140001364
lea r8, str.osu_osu_.exe
lea rdx, [rbp + 0xa0]
lea rcx, [rbp - 0x38]
call fcn.1400017c0
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.1400015f0
lea rcx, [rbp - 0x38]
call fcn.140001590
lea r8, [rbp + 0x80]
lea rcx, [rbp + 0xc0]
call fcn.140001990
nop
lea rcx, [rbp + 0xc0]
call fcn.140001500
mov rdx, rax
mov r8d, 0x64
lea rcx, [rbp + 0xe0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea rcx, [rbp - 0x18]
call fcn.140001500
mov rcx, rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
xor edi, edi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0xe0]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test bl, bl
je 0x1400014d0
lea rcx, [rbp - 0x38]
call fcn.1400017a0
nop
lea rcx, [rsp + 0x50]
cmp byte [0x140064240], dil
je 0x14000143e
lea rdx, [0x140064240]
call fcn.140001680
nop
lea r8, str.Patcherosu_.patcher.exe
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140001920
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.1400015f0
lea rcx, [rsp + 0x70]
call fcn.140001590
nop
jmp 0x14000145d
lea r8, str.osu_Patcherosu_.patcher.exe
lea rdx, [rbp + 0xa0]
call fcn.1400017c0
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.1400015f0
lea rcx, [rsp + 0x50]
call fcn.140001590
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rax
lea rcx, [rbp - 0x38]
call fcn.140001500
mov rcx, rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x38]
call fcn.140001590
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.14003e380
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3