Function at 0x1400ec274
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
movzx esi, dl
mov rbx, rcx
mov dword [rcx], 0x1776df3
mov dword [rcx + 4], 0x4e50b9af
mov dword [rcx + 8], 0xe9561c9b
mov dword [rcx + 0xc], 0x4d71631
mov byte [rcx + 0x10], 0
test dl, dl
je 0x1400ec567
mov al, byte [0x14043f3b9]
test al, al
jne 0x1400ec384
lea rcx, str.api_ms_win_core_processthreads_l1_1_3.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x1400ec329
lea rdx, str.GetProcessMitigationPolicy
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
lea rdx, str.SetThreadInformation
mov rcx, rdi
mov qword [0x14043fe10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
lea rdx, str.GetThreadInformation
mov rcx, rdi
mov qword [0x14043fe18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x14043f3c8], rax
cmp qword [0x14043fe10], 0
je 0x1400ec36c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
mov r9d, 4
lea r8, [0x14043f3e0]
mov rcx, rax
mov rax, qword [0x14043fe10]
lea edx, [r9 - 2]
call qword [0x1403c1618]
test eax, eax
je 0x1400ec36c
mov eax, dword [0x14043f3e0]
jmp 0x1400ec37b
mov eax, dword [0x14043f3e0]
and eax, 0xfffffffe
mov dword [0x14043f3e0], eax
mov byte [0x14043f3b9], 1
jmp 0x1400ec38a
mov eax, dword [0x14043f3e0]
test al, 1
je 0x1400ec567
test al, 2
jne 0x1400ec4e5
mov al, byte [0x14043f3b8]
test al, al
jne 0x1400ec4e5
lea rcx, str.api_ms_win_core_localregistry_l1_1_0.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
and dword [rsp + 0x70], 0
mov edi, 0x800
and dword [rsp + 0x60], 0
test rax, rax
jne 0x1400ec3f0
mov r8d, edi
lea rcx, str.api_ms_win_core_localregistry_l1_1_0.dll
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
test rax, rax
jne 0x1400ec3f0
xor ecx, ecx
jmp 0x1400ec44f
lea rdx, str.RegGetValueW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x1400ec3ec
lea rcx, [rsp + 0x70]
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x30], rcx
lea r8, str.AcgApi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionSoftwareProtectionPlatform
and qword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
call qword [0x1403c1618]
xor ecx, ecx
test eax, eax
cmove ecx, dword [rsp + 0x60]
sub ecx, 1
je 0x1400ec4cc
cmp ecx, 1
je 0x1400ec46b
call fcn.1400ec57c
test al, al
je 0x1400ec46b
call fcn.1400ec7c4
test al, al
jne 0x1400ec4de
lea rcx, str.api_ms_win_core_com_l1_1_1.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
test rax, rax
jne 0x1400ec4a0
mov r8d, edi
lea rcx, str.api_ms_win_core_com_l1_1_1.dll
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
test rax, rax
je 0x1400ec4e5
lea rdx, str.CoCreateInstanceFromApp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x14043f3d0], rax
test rax, rax
je 0x1400ec4e5
mov rcx, rbx
call fcn.1400ec684
jmp 0x1400ec4da
call fcn.1400ec57c
test al, al
je 0x1400ec4e5
call fcn.1400ec7c4
test al, al
je 0x1400ec4e5
mov byte [0x14043f3b8], 1
cmp qword [0x14043fe18], 0
je 0x1400ec567
cmp qword [0x14043f3c8], 0
je 0x1400ec567
and dword [rsp + 0x68], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
mov r9d, 4
lea r8, [rsp + 0x68]
mov rcx, rax
mov rax, qword [0x14043f3c8]
lea edx, [r9 - 2]
call qword [0x1403c1618]
test eax, eax
je 0x1400ec534
cmp dword [rsp + 0x68], 1
je 0x1400ec567
mov dword [rsp + 0x68], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
mov r9d, 4
lea r8, [rsp + 0x68]
mov rcx, rax
mov rax, qword [0x14043fe18]
lea edx, [r9 - 2]
call qword [0x1403c1618]
mov byte [rbx + 0x10], 1
mov rax, rbx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret