Function at 0x140044fe0
Capabilities:
Create thread
Enumerate gui resources
Execute command
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov rax, qword [0x140056010]
xor rax, rsp
mov qword [rbp + 0x10], rax
xor edi, edi
lea rcx, str.CS2___External
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp qword [0x140059a48], rdi
jne 0x14004507b
nop dword [rax]
lea rcx, str.___Open_the_game_r
call fcn.140001290
mov eax, dword [0x140059be0]
mov dword [0x140059a20], eax
mov qword [rbp], rdi
mov dword [rbp + 8], eax
lea rdx, [rbp]
lea rcx, [0x140044730]
call qword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x14004510f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x14004510f
mov rax, qword [rbp]
test rax, rax
je 0x14004510f
mov qword [0x140059a48], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], 0xa
mov qword [rbp - 0x78], 0xf
movsd xmm0, qword [str.client.dll]
movsd qword [rsp + 0x70], xmm0
movzx eax, word [0x14004e870]
mov word [rsp + 0x78], ax
mov byte [rsp + 0x7a], dil
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.140045460
mov rdx, rax
call fcn.1400401b0
mov rbx, rax
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x140045120
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004511b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004511b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov qword [0x140059a48], rdi
jmp 0x140045020
call fcn.14004655c
mov qword [0x140059ad8], rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [0x14004e874]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x140044a80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140045170
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x50], 0x50
mov rax, qword [sym.imp.USER32.dll_DefWindowProcA]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rdi
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadIconA]
mov qword [rbp - 0x30], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x20], xmm0
lea rbx, str.infs
mov qword [rbp - 0x10], rbx
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadIconA]
mov qword [rbp - 8], rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [0x140059b38]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rcx, [rbp - 0x50]
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov qword [rsp + 0x58], rdi
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov eax, dword [0x140059b44]
mov dword [rsp + 0x38], eax
mov eax, dword [0x140059b40]
mov dword [rsp + 0x30], eax
mov eax, dword [0x140059b3c]
mov dword [rsp + 0x28], eax
mov eax, dword [0x140059b38]
mov dword [rsp + 0x20], eax
mov r9d, 0x80000000
mov r8, rbx
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov qword [0x140059a28], rax
mov edx, 0xffffffec
mov r8d, 0x800a0
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov r9d, 2
mov r8b, 0xff
xor edx, edx
mov rcx, qword [0x140059a28]
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
movdqa xmm0, xmmword [0x14004e9f0]
movdqu xmmword [rbp], xmm0
lea rdx, [rbp]
mov rcx, qword [0x140059a28]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov edx, 5
mov rcx, qword [0x140059a28]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x140059a28]
call qword [sym.imp.USER32.dll_UpdateWindow]
call fcn.140044470
mov ecx, 8
call fcn.1400467b4
lea rcx, [0x140043730]
mov qword [rax], rcx
mov qword [rbp], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1400462d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140045351
cmp dword [rsp + 0x68], 0
je 0x140045345
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp], xmm0
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140045345
call fcn.140044d60
xor eax, eax
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400463c0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x68], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3