Function at 0x14004c430
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x14011a0b8]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea r8, [0x1401795a0]
lea rdx, [0x1401795c0]
mov rcx, qword [0x140179648]
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x14004c492
mov rdx, qword [0x1401795a0]
mov rcx, qword [0x140179648]
call qword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.USER32.dll_SetProcessDpiAwarenessContext]
mov edx, 0x80
mov rcx, qword [0x140179648]
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
xor edx, edx
lea rcx, str.grcWindow
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x1401795c8], rax
test rax, rax
jne 0x14004c52d
mov r9d, 0x40000
lea r8, [0x1400e7d78]
lea rdx, str.Waiting_FiveM...
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rax, qword [0x1401795c8]
test rax, rax
jne 0x14004c52d
nop dword [rax]
nop dword [rax + rax]
xor edx, edx
lea rcx, str.grcWindow
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x1401795c8], rax
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rax, qword [0x1401795c8]
test rax, rax
je 0x14004c500
lea rdx, [0x1401507c0]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [0x1401507c0]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x1401507c8], rax
xor r14d, r14d
test rax, rax
jne 0x14004c581
mov r9d, 0x40010
lea r8, str.ERROR
lea rdx, str.Failed_to_get_process_handle
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x14004c624
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rbp + 0x27], xmm0
movups xmmword [rbp + 0x37], xmm0
mov r9d, 0x80
lea r8, [rbp - 0x39]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameA]
lea rax, [rbp - 0x39]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], r14b
jne 0x14004c5c7
lea rdx, [rbp - 0x39]
lea rcx, [0x140150760]
call fcn.14004af40
mov qword [rbp - 0x69], r14
mov qword [rbp - 0x59], r14
mov qword [rbp - 0x51], reloc.WS2_32.dll_ntohs
lea rax, [rbp - 0x39]
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004c5f4
mov r8, rbx
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x69]
call fcn.14004af40
lea rdx, [rbp - 0x69]
lea rcx, [0x140150780]
call fcn.1400506b0
mov qword [0x1401507d0], rax
call fcn.14004b2e0
test al, al
je 0x14004c64f
call fcn.14004bfd0
test al, al
je 0x14004c64f
cmp qword [0x1401795d8], 0
je 0x14004c64f
cmp qword [0x1401795d0], 0
je 0x14004c64f
call fcn.140051f70
mov ecx, 1
call fcn.1400cbeb0
mov qword [rbp - 0x49], rax
lea rcx, [rbp - 0x61]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14004ff20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x69], rax
test rax, rax
je 0x14004c9a0
cmp dword [rbp - 0x61], 0
jne 0x14004c69e
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x49], xmm0
lea rcx, [rbp - 0x49]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x14004c6be
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov ecx, 1
call fcn.1400cbeb0
mov qword [rbp - 0x49], rax
lea rcx, [rbp - 0x61]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14004ff50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x69], rax
test rax, rax
je 0x14004c990
cmp dword [rbp - 0x61], 0
jne 0x14004c70d
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x49], xmm0
lea rcx, [rbp - 0x49]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x14004c72d
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov ecx, 1
call fcn.1400cbeb0
mov qword [rbp - 0x49], rax
lea rcx, [rbp - 0x61]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14004ff80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x69], rax
test rax, rax
je 0x14004c980
cmp dword [rbp - 0x61], 0
jne 0x14004c77c
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x49], xmm0
lea rcx, [rbp - 0x49]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x14004c79c
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov ecx, 1
call fcn.1400cbeb0
mov qword [rbp - 0x49], rax
lea rcx, [rbp - 0x61]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14004ffb0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x69], rax
test rax, rax
je 0x14004c970
cmp dword [rbp - 0x61], 0
jne 0x14004c7eb
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x49], xmm0
lea rcx, [rbp - 0x49]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x14004c80b
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
call fcn.14004ca20
mov rsi, qword [0x140179658]
mov rbx, qword [0x140179590]
test rbx, rbx
je 0x14004c82c
mov rdi, qword [rbx + 0x98]
jmp 0x14004c82f
mov rdi, r14
call fcn.140031540
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14004c843
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14004c851
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14004c860
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [rbx + 0x88], r14
mov qword [rbx + 0x98], r14
and dword [rbx + 0xc], 0xfffffff7
mov rcx, rdi
call fcn.140009d40
mov rbx, qword [0x140179590]
test rbx, rbx
je 0x14004c88f
mov rdi, qword [rbx + 0x90]
jmp 0x14004c892
mov rdi, r14
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14004c8a1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx + 0x80], r14
mov qword [rbx + 0x90], r14
and dword [rbx + 0xc], 0xfffffff8
mov rcx, rdi
call fcn.140009d40
mov rbx, qword [0x140179590]
call fcn.1400088f0
mov qword [0x140179590], r14
test rbx, rbx
je 0x14004c8e3
mov rcx, rbx
call fcn.140020340
mov rcx, rbx
call fcn.140009d40
call fcn.140052690
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov rdx, qword [rsi + 0x18]
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov rcx, qword [0x1401507c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140179650]
test rcx, rcx
je 0x14004c945
lea rbx, [rcx - 8]
lea r9, [0x14004c9b0]
mov r8, qword [rbx]
mov edx, 0x178
call fcn.1400cc684
imul rdx, qword [rbx], 0x178
add rdx, 8
mov rcx, rbx
call fcn.1400cc67c
nop
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400cbe90
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov dword [rbp - 0x61], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x61], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x61], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x61], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3