Function at 0x140046c70
Capabilities:
Create thread
Enumerate gui resources
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140167040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
lea rcx, str.CS2___External
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp qword [0x1401b7ce0], rdi
jne 0x140046d53
lea rcx, str.__waiting_for_counter_strike..._r
call fcn.140001210
mov qword [rbp - 0x19], 7
mov qword [rbp - 0x11], 7
movsd xmm0, qword [str.cs2.exe]
movsd qword [rbp - 0x29], xmm0
mov eax, dword [0x140151258]
mov dword [rbp - 0x21], eax
movzx eax, word [0x14015125c]
mov word [rbp - 0x1d], ax
mov word [rbp - 0x1b], di
lea rcx, [rbp - 0x29]
call fcn.140046a20
mov dword [0x1401b7c50], eax
mov qword [rbp + 0x27], rdi
mov dword [rbp + 0x2f], eax
lea rdx, [rbp + 0x27]
lea rcx, [0x140045ec0]
call qword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x140046d31
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
jne 0x140046d31
mov rax, qword [rbp + 0x27]
test rax, rax
jne 0x140046d34
mov rax, rdi
mov qword [0x1401b7ce0], rax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [0x1401b7ce0], rdi
je 0x140046cb1
mov ebx, dword [0x1401b7c50]
lea rcx, str.win32u.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.NtUserGetPointerProprietaryId
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401b80a8], rax
test rax, rax
je 0x140046da0
mov rdx, rax
lea rcx, str.__NtUserGetPointerProprietaryId:__p_n
call fcn.140001210
mov dword [0x1401b80b0], ebx
mov rax, qword [0x1401b80a8]
jmp 0x140046da6
mov ebx, dword [0x1401b80b0]
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
mov dword [rbp - 9], 0x80000002
mov dword [rbp - 0x29], ebx
lea rcx, [rbp - 0x29]
call rax
mov rax, qword [rbp - 1]
mov qword [0x1401b80b8], rax
mov qword [0x1401b7cf0], rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140049d50
lea rdx, [0x14002d410]
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 rdx, qword [0x1401b7cf0]
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___unsigned_long_long_unsigned___int64_____ptr64]
lea rdx, [0x140049f00]
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]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
xor r9d, r9d
lea r8, [0x140046210]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140046e4f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x29], 0x50
mov rax, qword [sym.imp.USER32.dll_DefWindowProcA]
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], rdi
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rbp - 9], rax
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [rbp - 1], rax
xorps xmm0, xmm0
movdqa xmmword [rbp + 7], xmm0
lea rbx, str.infs
mov qword [rbp + 0x17], rbx
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rbp + 0x1f], rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
lea rdx, [0x1401b7d50]
call qword [sym.imp.USER32.dll_GetWindowRect]
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov qword [rsp + 0x58], rdi
mov rax, qword [rbp - 0x11]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov eax, dword [0x1401b7d5c]
mov dword [rsp + 0x38], eax
mov eax, dword [0x1401b7d58]
mov dword [rsp + 0x30], eax
mov eax, dword [0x1401b7d54]
mov dword [rsp + 0x28], eax
mov eax, dword [0x1401b7d50]
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 [0x1401b7c58], rax
mov edx, 0xffffffec
mov r8d, 0x800a0
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov r9d, 2
mov r8b, 0xff
xor edx, edx
mov rcx, qword [0x1401b7c58]
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
movdqa xmm0, xmmword [0x140154620]
movdqu xmmword [rbp + 0x27], xmm0
lea rdx, [rbp + 0x27]
mov rcx, qword [0x1401b7c58]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov edx, 5
mov rcx, qword [0x1401b7c58]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1401b7c58]
call qword [sym.imp.USER32.dll_UpdateWindow]
call fcn.140045ba0
mov ecx, 8
call fcn.1400d7534
lea rcx, [0x140042ec0]
mov qword [rax], rcx
mov qword [rbp + 0x37], rax
lea rcx, [rbp + 0x2f]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14004d0b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x27], rax
test rax, rax
je 0x14004702c
cmp dword [rbp + 0x2f], 0
je 0x140047020
movaps xmm0, xmmword [rbp + 0x27]
movdqa xmmword [rbp + 0x37], xmm0
lea rcx, [rbp + 0x37]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140047020
call fcn.140046790
xor eax, eax
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400d7150
lea r11, [rsp + 0xe0]
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 [rbp + 0x2f], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3