Function at 0x41a670
Capabilities:
Link many functions at runtime

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x68], 0
call fcn.00415df0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x74], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x30], 0
cmp qword [0x004ec788], 0
jne 0x41a7f3
lea rcx, [0x0047bdf8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x41a6e9
xor eax, eax
jmp 0x41a957
lea rdx, str.MessageBoxW
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x41a70f
xor eax, eax
jmp 0x41a957
mov rcx, qword [rsp + 0x68]
call fcn.00415d50
mov qword [0x004ec788], rax
lea rdx, str.GetActiveWindow
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00415d50
mov qword [0x004ec790], rax
lea rdx, str.GetLastActivePopup
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00415d50
mov qword [0x004ec798], rax
lea rcx, [rsp + 0x50]
call fcn.004119d0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x58
lea r9, str.f:_rtm_vctoolscrt_bld_self_64_amd64crt_srccrtmbox.c
lea r8, str.__crtMessageBoxW
lea rdx, str._get_osplatform_osplatform_
mov ecx, eax
call fcn.00409690
cmp dword [rsp + 0x50], 2
jne 0x41a7f3
lea rdx, str.GetUserObjectInformationW
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.00415d50
mov qword [0x004ec7a8], rax
cmp qword [0x004ec7a8], 0
je 0x41a7f3
lea rdx, str.GetProcessWindowStation
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.00415d50
mov qword [0x004ec7a0], rax
mov rax, qword [rsp + 0x38]
cmp qword [0x004ec7a0], rax
je 0x41a86e
mov rax, qword [rsp + 0x38]
cmp qword [0x004ec7a8], rax
je 0x41a86e
mov rcx, qword [0x004ec7a0]
call fcn.00415e00
call rax
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x41a866
mov rcx, qword [0x004ec7a8]
call fcn.00415e00
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x20], rcx
mov r9d, 0xc
lea r8, [rsp + 0x40]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call rax
test eax, eax
je 0x41a866
mov eax, dword [rsp + 0x48]
and eax, 1
test eax, eax
jne 0x41a86e
mov dword [rsp + 0x74], 1
cmp dword [rsp + 0x74], 0
je 0x41a8dd
lea rcx, [rsp + 0x30]
call fcn.00411df0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x81
lea r9, str.f:_rtm_vctoolscrt_bld_self_64_amd64crt_srccrtmbox.c
lea r8, str.__crtMessageBoxW
lea rdx, str._get_winmajor_winmajor_
mov ecx, eax
call fcn.00409690
cmp dword [rsp + 0x30], 4
jb 0x41a8c8
mov eax, dword [rsp + 0xa0]
or eax, 0x200000
mov dword [rsp + 0xa0], eax
jmp 0x41a8db
mov eax, dword [rsp + 0xa0]
or eax, 0x40000
mov dword [rsp + 0xa0], eax
jmp 0x41a92c
mov rax, qword [rsp + 0x38]
cmp qword [0x004ec790], rax
je 0x41a8fe
mov rcx, qword [0x004ec790]
call fcn.00415e00
call rax
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x41a92c
mov rax, qword [rsp + 0x38]
cmp qword [0x004ec798], rax
je 0x41a92c
mov rcx, qword [0x004ec798]
call fcn.00415e00
mov rcx, qword [rsp + 0x60]
call rax
mov qword [rsp + 0x60], rax
mov rcx, qword [0x004ec788]
call fcn.00415e00
mov r9d, dword [rsp + 0xa0]
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
call rax
add rsp, 0x88
ret