Function at 0x140001010
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Enumerate files on windows
Get common file path
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x7e0]
sub rsp, 0x8e0
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
lea r8, str.RoExec_AutoLauncher_Singleton
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000107a
xor r9d, r9d
lea r8, str.Error
lea rdx, str.Auto_launcher_already_running_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140001462
lea rdx, [rbp - 0x50]
mov qword [0x140007770], rbx
lea rcx, str..exe
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400010b6
xor r9d, r9d
lea r8, str.Error
lea rdx, str.Failed_to_find_loader_
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1400010ef
mov r8d, 0x104
lea rdx, [rbp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140001112
xor r9d, r9d
lea r8, str.Error
lea rdx, str.Failed_to_get_own_executable_name_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor r9d, r9d
lea r8, str.Error
lea rdx, str.Place_this_executable_into_the_folder_with_your_loader_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x140001462
mov qword [rsp + 0x8f0], rsi
nop word [rax + rax]
lea rdx, [rbp + 0x3b0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea r8, [0x140004744]
mov edx, 0x104
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, [rbp - 0x24]
mov edx, 0x104
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rbp + 0x5c0]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor esi, esi
test eax, eax
jne 0x140001191
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140001120
jmp 0x140001239
lea rax, [rbp + 0x3b0]
mov rdx, 0xffffffffffffffff
nop
inc rdx
cmp word [rax + rdx*2], si
jne 0x1400011a0
mov rax, qword [0x1400070d0]
cmp rdx, rax
ja 0x1400011fb
lea rbx, [rdx + rdx]
mov qword [rsp + 0x8f8], rdi
cmp rax, 7
mov qword [0x1400070c8], rdx
lea rdi, [0x1400070b8]
mov r8, rbx
cmova rdi, qword [0x1400070b8]
lea rdx, [rbp + 0x3b0]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], si
mov rdi, qword [rsp + 0x8f8]
jmp 0x140001207
lea r9, [rbp + 0x3b0]
call fcn.140001d60
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [0x140004748]
call fcn.140001b40
mov rcx, rax
lea rdx, [rbp + 0x3b0]
call fcn.140001b40
lea rdx, [0x140001d20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov qword [rsp + 0x28], rsi
lea r8, [0x140001870]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140001280
xor r9d, r9d
lea r8, str.Error
lea rdx, str.Failed_to_start_checking_loop_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.You_can_now_launch_roblox_as_normal._We_will_launch_ro_exec_for_you_
call fcn.140001490
lea rdx, [0x140001660]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.This_process_will_go_into_your_tray__to_stop_auto_launcher_click_on_the_icon_and_click_exit.
call fcn.140001490
lea rdx, [0x140001660]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x1770
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rsi
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x80], xmm0
lea rax, [0x140001fa0]
movdqa xmmword [rbp - 0x70], xmm1
xor ecx, ecx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rsi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rbx, str.RoExecAutoLauncher
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x60]
mov qword [rbp - 0x60], rbx
call qword [sym.imp.USER32.dll_RegisterClassW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x58], rsi
lea r8, str.Tray_App
mov qword [rsp + 0x50], rax
mov r9d, 0xcf0000
mov qword [rsp + 0x48], rsi
mov rdx, rbx
mov qword [rsp + 0x40], rsi
xor ecx, ecx
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rbx, rax
test rax, rax
jne 0x140001390
lea eax, [rbx + 1]
jmp 0x14000145a
xor eax, eax
lea rcx, [rbp - 0x28]
xor edx, edx
mov dword [rbp - 0x4c], eax
mov r8d, 0x3a8
mov dword [rbp - 0x34], eax
call sub.VCRUNTIME140.dll_memset
mov edx, 0x7f00
mov dword [rbp - 0x50], 0x3d0
xor ecx, ecx
mov qword [rbp - 0x48], rbx
mov dword [rbp - 0x40], 0xaa289
mov dword [rbp - 0x3c], 7
mov dword [rbp - 0x38], 0x401
call qword [sym.imp.USER32.dll_LoadIconW]
lea rdx, str.Ro_exec_AutoLauncher
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rbp - 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
xor r9d, r9d
lea rcx, [rbp + 0x380]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x140001443
lea rcx, [rbp + 0x380]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x380]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp + 0x380]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x140001410
mov rcx, rbx
call fcn.140001f20
mov rcx, qword [0x140007770]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rsi, qword [rsp + 0x8f0]
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1400020c0
mov rbx, qword [rsp + 0x900]
add rsp, 0x8e0
pop rbp
ret