Function at 0x1400f2254
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
movzx esi, dl
mov rdi, 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 0x1400f2566
mov al, byte [0x14045c819]
test al, al
jne 0x1400f236c
lea rcx, str.api_ms_win_core_processthreads_l1_1_3.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400f2309
lea rdx, str.GetProcessMitigationPolicy
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
lea rdx, str.SetThreadInformation
mov rcx, rbx
mov qword [0x14045d270], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
lea rdx, str.GetThreadInformation
mov rcx, rbx
mov qword [0x14045d278], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x14045c828], rax
mov rbx, qword [0x14045d270]
test rbx, rbx
je 0x1400f2354
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
movabs r10, 0x84f12f975e5b2370
mov r9d, 4
lea r8, [0x14045c840]
mov rax, rbx
lea edx, [r9 - 2]
call qword [0x1403d25d0]
test eax, eax
je 0x1400f2354
mov eax, dword [0x14045c840]
jmp 0x1400f2363
mov eax, dword [0x14045c840]
and eax, 0xfffffffe
mov dword [0x14045c840], eax
mov byte [0x14045c819], 1
jmp 0x1400f2372
mov eax, dword [0x14045c840]
test al, 1
je 0x1400f2566
test al, 2
jne 0x1400f24c7
mov al, byte [0x14045c818]
test al, al
jne 0x1400f24c7
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 ebx, 0x800
and dword [rsp + 0x60], 0
test rax, rax
jne 0x1400f23d4
mov r8d, ebx
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
je 0x1400f244b
lea rdx, str.RegGetValueW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x1400f244b
movabs r10, 0xd0741e295ed2d370
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 [0x1403d25d0]
xor ecx, ecx
test eax, eax
cmove ecx, dword [rsp + 0x60]
sub ecx, 1
je 0x1400f2572
cmp ecx, 1
je 0x1400f245d
call fcn.1400f2590
test al, al
je 0x1400f245d
call fcn.1400f27f4
test al, al
jne 0x1400f24c0
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 0x1400f2492
mov r8d, ebx
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 0x1400f24c7
lea rdx, str.CoCreateInstanceFromApp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x14045c830], rax
test rax, rax
je 0x1400f24c7
mov rcx, rdi
call fcn.1400f2698
test al, al
je 0x1400f24c7
mov byte [0x14045c818], 1
cmp qword [0x14045d278], 0
je 0x1400f2566
mov rbx, qword [0x14045c828]
test rbx, rbx
je 0x1400f2566
and dword [rsp + 0x68], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
mov rcx, rax
movabs r10, 0xc425275434da0370
mov r9d, 4
lea r8, [rsp + 0x68]
mov rax, rbx
lea edx, [r9 - 2]
call qword [0x1403d25d0]
test eax, eax
je 0x1400f2526
cmp dword [rsp + 0x68], 1
je 0x1400f2566
mov rbx, qword [0x14045d278]
mov dword [rsp + 0x68], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
mov rcx, rax
movabs r10, 0xc425275434da0370
mov r9d, 4
lea r8, [rsp + 0x68]
mov rax, rbx
lea edx, [r9 - 2]
call qword [0x1403d25d0]
mov byte [rdi + 0x10], 1
mov rax, rdi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
call fcn.1400f2590
test al, al
je 0x1400f24c7
call fcn.1400f27f4
jmp 0x1400f24bc