Function at 0x140021ef4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140044150]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r15, rcx
xor ecx, ecx
mov ebp, r8d
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_EncodePointer]
xor edi, edi
mov rsi, rax
call fcn.140012aa4
cmp qword [0x140046e50], rdi
mov r14d, eax
jne 0x140022035
lea rcx, str.USER32.DLL
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x140021f87
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x140022149
lea rcx, str.USER32.DLL
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x140022149
lea rdx, str.MessageBoxW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140022149
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rbx
mov qword [0x140046e50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rbx
mov qword [0x140046e58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rbx
mov qword [0x140046e60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140046e70], rax
test rax, rax
je 0x140022035
lea rdx, str.GetProcessWindowStation
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140046e68], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14002205c
test r15, r15
je 0x14002204d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test r14d, r14d
je 0x140022078
mov eax, 4
jmp 0x14002214b
test r14d, r14d
je 0x140022078
mov rcx, qword [0x140046e50]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov eax, 3
jmp 0x14002214b
mov rcx, qword [0x140046e68]
cmp rcx, rsi
je 0x1400220e7
cmp qword [0x140046e70], rsi
je 0x1400220e7
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140046e70]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r14, rax
test rbx, rbx
je 0x1400220e7
test rax, rax
je 0x1400220e7
call rbx
test rax, rax
je 0x1400220e1
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r14
test eax, eax
je 0x1400220e1
test byte [rsp + 0x40], 1
jne 0x1400220e7
bts ebp, 0x15
jmp 0x140022127
mov rcx, qword [0x140046e58]
cmp rcx, rsi
je 0x140022127
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140022127
call rax
mov rdi, rax
test rax, rax
je 0x140022127
mov rcx, qword [0x140046e60]
cmp rcx, rsi
je 0x140022127
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140022127
mov rcx, rdi
call rax
mov rdi, rax
mov rcx, qword [0x140046e50]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140022149
mov r9d, ebp
mov r8, r12
mov rdx, r15
mov rcx, rdi
call rax
jmp 0x14002214b
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007e50
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret