Function at 0x140020e20
Capabilities:
Create thread
Link many functions at runtime
Print debug messages

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov rax, qword [0x14005f3e0]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0x38], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
call fcn.140022bf0
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x60], 0
cmp qword [0x140061da0], 0
jne 0x140020fb4
mov r8d, 0x800
xor edx, edx
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140020ed4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x140020ed4
xor r8d, r8d
xor edx, edx
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140020ee3
xor eax, eax
jmp 0x14002126f
lea rdx, str.MessageBoxW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140020f09
xor eax, eax
jmp 0x14002126f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140061da0], rax
lea rdx, str.GetActiveWindow
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140061da8], rax
lea rdx, str.GetLastActivePopup
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140061db0], rax
lea rdx, str.GetUserObjectInformationW
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140061dc0], rax
cmp qword [0x140061dc0], 0
je 0x140020fb4
lea rdx, str.GetProcessWindowStation
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140061db8], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140020fe8
cmp qword [rsp + 0xf0], 0
je 0x140020fd7
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [rsp + 0x50], 0
je 0x140020fe8
mov eax, 4
jmp 0x14002126f
cmp dword [rsp + 0x50], 0
je 0x1400210dd
mov rcx, qword [0x140061da0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x68], 0
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0xc0], eax
lea rax, [rsp + 0xc4]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
cmp qword [rsp + 0x98], 0
jne 0x140021075
xor eax, eax
jmp 0x14002126f
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
lea r8, [0x140021290]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x1400210b3
xor eax, eax
jmp 0x14002126f
xor r8d, r8d
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x1400210d6
mov eax, dword [rsp + 0xc4]
jmp 0x14002126f
xor eax, eax
jmp 0x14002126f
mov rax, qword [rsp + 0x58]
cmp qword [0x140061db8], rax
je 0x140021192
mov rax, qword [rsp + 0x58]
cmp qword [0x140061dc0], rax
je 0x140021192
mov rcx, qword [0x140061db8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov qword [rsp + 0x88], rax
mov rcx, qword [0x140061dc0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x88], 0
je 0x140021192
cmp qword [rsp + 0x70], 0
je 0x140021192
call qword [rsp + 0x88]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x14002118a
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, 0xc
lea r8, [rsp + 0xc8]
mov edx, 1
mov rcx, qword [rsp + 0x60]
call qword [rsp + 0x70]
test eax, eax
je 0x14002118a
mov eax, dword [rsp + 0xd0]
and eax, 1
test eax, eax
jne 0x140021192
mov dword [rsp + 0x40], 1
cmp dword [rsp + 0x40], 0
je 0x1400211ad
mov eax, dword [rsp + 0x100]
bts eax, 0x15
mov dword [rsp + 0x100], eax
jmp 0x140021225
mov rax, qword [rsp + 0x58]
cmp qword [0x140061da8], rax
je 0x1400211de
mov rcx, qword [0x140061da8]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x1400211de
call qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140021225
mov rax, qword [rsp + 0x58]
cmp qword [0x140061db0], rax
je 0x140021225
mov rcx, qword [0x140061db0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x140021225
mov rcx, qword [rsp + 0x48]
call qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rcx, qword [0x140061da0]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x14002126d
mov r9d, dword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x48]
call qword [rsp + 0x90]
jmp 0x14002126f
xor eax, eax
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140007ac0
add rsp, 0xe0
pop rdi
ret