Function at 0x14004e590
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
xor edi, edi
call fcn.1400156a0
mov dword [rbp - 0x59], edi
mov byte [rbp - 0x55], dil
xor eax, eax
mov word [rbp - 0x54], ax
xorps xmm0, xmm0
movups xmmword [rbp - 0x52], xmm0
movups xmmword [rbp - 0x42], xmm0
movups xmmword [rbp - 0x32], xmm0
movups xmmword [rbp - 0x22], xmm0
mov qword [rbp - 0x12], rax
mov qword [rbp - 0xa], rax
mov byte [rbp - 2], al
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
movups xmmword [rbp + 0x2f], xmm0
lea rax, [rbp - 0x59]
mov qword [0x140083e18], rax
call qword [sym.imp.ViGEmClient.dll_vigem_alloc]
mov qword [rbp + 0xf], rax
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
lea edx, [rdi + 1]
lea rcx, [fcn.14004e510]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rcx, qword [rbp + 0xf]
test rcx, rcx
jne 0x14004e637
lea rdx, str.Uh__not_enough_memory_to_do_that__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140015410
jmp 0x14004e674
call qword [sym.imp.ViGEmClient.dll_vigem_connect]
mov ebx, eax
cmp eax, 0x20000000
je 0x14004e69e
lea rdx, str.ViGEm_Bus_connection_failed_with_error_code:_0x
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140015410
lea rdx, [0x140015380]
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::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, ebx
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___int____ptr64]
lea rdx, [0x1400155e0]
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 eax, 0xffffffff
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.ViGEmClient.dll_vigem_target_x360_alloc]
mov qword [rbp + 0x17], rax
mov rdx, rax
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ViGEmClient.dll_vigem_target_add]
mov dword [rbp + 0x2f], eax
mov ecx, 0x10
call fcn.14004ea90
lea rcx, [rbp - 0x59]
mov qword [rax], rcx
lea rcx, [0x140001070]
mov qword [rax + 8], rcx
mov qword [rbp + 0x67], rax
lea rcx, [rbp - 0x61]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14004e860]
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 0x14004e830
cmp dword [rbp - 0x61], 0
je 0x14004e824
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x79], xmm0
lea rcx, [rbp - 0x79]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14004e824
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x69], xmm0
lea rax, [rbp - 0x69]
mov qword [0x140083e20], rax
mov ecx, 0x10
call fcn.14004ea90
lea rcx, [rbp - 0x59]
mov qword [rax], rcx
lea rcx, [0x1400080d0]
mov qword [rax + 8], rcx
mov qword [rbp + 0x67], rax
lea rcx, [rbp - 0x71]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14004e860]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x79], rax
test rax, rax
je 0x14004e815
cmp dword [rbp - 0x71], 0
je 0x14004e809
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rbp + 0x47], xmm0
lea rcx, [rbp + 0x47]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14004e809
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x79], xmm0
mov r9, qword [0x140083e18]
lea r8, [0x14004e170]
mov rdx, qword [rbp + 0x17]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ViGEmClient.dll_vigem_target_x360_register_notification]
nop dword [rax]
lea rdx, [rbp + 0x1f]
xor ecx, ecx
call qword [sym.imp.XINPUT1_4.dll_Ordinal_2]
lea rcx, [rbp - 0x59]
call fcn.140001960
movsd xmm0, qword [rbp + 0x23]
movsd qword [rbp - 0x79], xmm0
mov eax, dword [rbp + 0x2b]
mov dword [rbp - 0x71], eax
lea r8, [rbp - 0x79]
mov rdx, qword [rbp + 0x17]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.ViGEmClient.dll_vigem_target_x360_update]
jmp 0x14004e7d0
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x71], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x61], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3