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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xc8]
sub rsp, 0x1c0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x18019e008]
xor rax, rsp
mov qword [rbp + 0xb0], rax
xor edi, edi
mov dword [rsp + 0x30], edi
lea rax, [0x180103ee0]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x4c], edx
lea edx, [rdi + 2]
lea rcx, [rsp + 0x58]
call fcn.1800a1b60
nop
lea rcx, str.appdata
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1800a6510
mov rcx, rax
lea rdx, str._syslxfreeMenufiles_
call fcn.1800a6510
mov rcx, rax
lea rdx, str.syslx.ytd
call fcn.1800a6510
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.1800a07c0
nop
cmp qword [rax + 0x18], 0x10
jb 0x1800b02d7
mov rax, qword [rax]
mov qword [rbp + 0x58], 0xf
mov qword [rbp + 0x50], rdi
mov byte [rbp + 0x40], 0
cmp byte [rax], 0
jne 0x1800b02f1
mov r8, rdi
jmp 0x1800b02ff
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1800b02f5
mov rdx, rax
lea rcx, [rbp + 0x40]
call fcn.18005c3b0
lea rcx, [rbp + 0x40]
cmp qword [rbp + 0x58], 0x10
cmovae rcx, qword [rbp + 0x40]
lea rdx, [rbp + 0x80]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
sete bl
mov rax, qword [rbp + 0x58]
cmp rax, 0x10
jb 0x1800b0385
inc rax
mov rcx, qword [rbp + 0x40]
cmp rax, 0x1000
jb 0x1800b0380
test cl, 0x1f
je 0x1800b0350
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1800b0360
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800b0370
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1800b037d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1800e9988
mov qword [rbp + 0x58], 0xf
mov qword [rbp + 0x50], rdi
mov byte [rbp + 0x40], 0
mov rax, qword [rbp + 0x78]
cmp rax, 0x10
jb 0x1800b03ef
inc rax
mov rcx, qword [rbp + 0x60]
cmp rax, 0x1000
jb 0x1800b03ea
test cl, 0x1f
je 0x1800b03ba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1800b03ca
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800b03da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1800b03e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1800e9988
test bl, bl
je 0x1800b04e7
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.1800a07c0
nop
cmp qword [rax + 0x18], 0x10
jb 0x1800b0410
mov rax, qword [rax]
mov byte [rsp + 0x20], 0
lea r9, str.syslx.ytd
mov r8b, 1
mov rdx, rax
lea rcx, [rsp + 0x38]
call qword [0x1801ff990]
nop
mov rax, qword [rbp + 0x78]
cmp rax, 0x10
jb 0x1800b0488
inc rax
mov rcx, qword [rbp + 0x60]
cmp rax, 0x1000
jb 0x1800b0483
test cl, 0x1f
je 0x1800b0453
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x1800b0463
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x1800b0473
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x1800b0480
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1800e9988
mov dword [0x1801b79c0], edi
movabs rax, 0xdfa2ef8e04127dd5
mov qword [0x1802008b8], rax
lea rax, str.syslx
mov qword [0x1801b7a88], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x30], edi
mov rax, qword [rsp + 0x30]
mov qword [0x1801b7a90], rax
mov dword [0x1801b79b0], 2
call fcn.1800ba210
nop
lea rcx, [rbp - 0x28]
call fcn.1800a07f0
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
jmp 0x1800b052c
lea rcx, str.rError:_Needed_menu_textures_could_not_be_loaded__Make_sure_you_install_them_correctly.
call fcn.1800a85c0
call qword [sym.imp.WINMM.dll_timeGetTime]
add eax, 0x1388
mov dword [0x1801c5ce0], eax
mov rcx, qword [0x1801c5ce8]
call qword [sym.imp.KERNEL32.dll_SwitchToFiber]
xor edx, edx
lea rcx, str.Taskkill__F__IM_gta5.exe__F
call qword [sym.imp.KERNEL32.dll_WinExec]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1800e99a0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret