Function at 0x1400518f0
Capabilities:
Create thread
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.USER32.dll_SetProcessDpiAwarenessContext]
lea rdx, str.Battlefield_4
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x1401262b0], rax
test rax, rax
jne 0x14005197c
mov r9d, 0x40000
lea r8, str.Info
lea rdx, str.Waiting_BF4...
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rax, qword [0x1401262b0]
test rax, rax
jne 0x14005197c
mov qword [rbp - 0x20], 0xfa
lea rdx, str.Battlefield_4
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
lea rcx, [rbp - 0x20]
mov qword [0x1401262b0], rax
call fcn.1400081e0
mov rax, qword [0x1401262b0]
test rax, rax
je 0x140051951
lea rdx, [0x1401262b8]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [0x1401262b8]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x1401262c0], rax
test rax, rax
jne 0x1400519d3
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]
mov eax, 1
add rsp, 0x50
pop rbp
ret
call fcn.140051e40
test al, al
jne 0x1400519e7
mov eax, 2
add rsp, 0x50
pop rbp
ret
movss xmm3, dword [0x1401122bc]
lea rdx, [0x1400ee9a0]
mov qword [rsp + 0x60], rbx
mov rbx, qword [0x14012ff38]
mov qword [rsp + 0x68], rdi
xor edi, edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov rcx, qword [rbx + 0x38]
call fcn.14002c020
mov rcx, qword [rbx + 0x38]
call fcn.14002c4f0
mov rcx, qword [0x14012ff50]
lea rax, [0x140126f90]
mov qword [rsp + 0x28], rdi
lea rdx, [0x140126fa0]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x8f8e
call fcn.140063450
lea rdx, [0x1400ee500]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x1401260b0], rax
call fcn.140058580
mov rbx, qword [rsp + 0x60]
test al, al
jne 0x140051a83
lea rcx, str.mkdir_Config
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 1
mov byte [0x1401261f0], 1
call fcn.1400ce168
lea rcx, [rbp - 0x18]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x140051c20]
xor ecx, ecx
mov dword [rsp + 0x20], edi
xor edx, edx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x140051c04
cmp dword [rbp - 0x18], edi
je 0x140051bf8
movaps xmm0, xmmword [rbp - 0x20]
lea rcx, [rbp - 0x10]
movdqa xmmword [rbp - 0x10], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140051bf8
xorps xmm0, xmm0
lea ecx, [rax + 1]
movdqa xmmword [rbp - 0x20], xmm0
call fcn.1400ce168
lea rcx, [rbp - 0x18]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x140051c50]
xor ecx, ecx
mov dword [rsp + 0x20], edi
xor edx, edx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x140051be9
cmp dword [rbp - 0x18], edi
je 0x140051bdd
movaps xmm0, xmmword [rbp - 0x20]
lea rcx, [rbp - 0x10]
movdqa xmmword [rbp - 0x10], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140051bdd
xorps xmm0, xmm0
lea ecx, [rax + 1]
movdqa xmmword [rbp - 0x20], xmm0
call fcn.1400ce168
lea rcx, [rbp - 0x18]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea r8, [0x140051e10]
xor ecx, ecx
mov dword [rsp + 0x20], edi
xor edx, edx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x140051bce
cmp dword [rbp - 0x18], edi
je 0x140051bc2
movaps xmm0, xmmword [rbp - 0x20]
lea rcx, [rbp - 0x10]
movdqa xmmword [rbp - 0x10], xmm0
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140051bc2
call fcn.1400515f0
call fcn.1400521c0
mov rcx, qword [0x1401262c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x50
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 6
mov dword [rbp - 0x18], edi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 6
mov dword [rbp - 0x18], edi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 6
mov dword [rbp - 0x18], edi
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3