Function at 0x1400f56b4
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 0x1400f59c6
mov al, byte [0x140451609]
test al, al
jne 0x1400f57cc
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 0x1400f5769
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 [0x140452060], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
lea rdx, str.GetThreadInformation
mov rcx, rbx
mov qword [0x140452068], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x140451618], rax
mov rbx, qword [0x140452060]
test rbx, rbx
je 0x1400f57b4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
movabs r10, 0x84f12f975e5b2370
mov r9d, 4
lea r8, [0x140451630]
mov rax, rbx
lea edx, [r9 - 2]
call qword [0x1403cf6e8]
test eax, eax
je 0x1400f57b4
mov eax, dword [0x140451630]
jmp 0x1400f57c3
mov eax, dword [0x140451630]
and eax, 0xfffffffe
mov dword [0x140451630], eax
mov byte [0x140451609], 1
jmp 0x1400f57d2
mov eax, dword [0x140451630]
test al, 1
je 0x1400f59c6
test al, 2
jne 0x1400f5927
mov al, byte [0x140451608]
test al, al
jne 0x1400f5927
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 0x1400f5834
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 0x1400f58ab
lea rdx, str.RegGetValueW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x1400f58ab
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 [0x1403cf6e8]
xor ecx, ecx
test eax, eax
cmove ecx, dword [rsp + 0x60]
sub ecx, 1
je 0x1400f59d2
cmp ecx, 1
je 0x1400f58bd
call fcn.1400f59f0
test al, al
je 0x1400f58bd
call fcn.1400f5c54
test al, al
jne 0x1400f5920
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 0x1400f58f2
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 0x1400f5927
lea rdx, str.CoCreateInstanceFromApp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x140451620], rax
test rax, rax
je 0x1400f5927
mov rcx, rdi
call fcn.1400f5af8
test al, al
je 0x1400f5927
mov byte [0x140451608], 1
cmp qword [0x140452068], 0
je 0x1400f59c6
mov rbx, qword [0x140451618]
test rbx, rbx
je 0x1400f59c6
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 [0x1403cf6e8]
test eax, eax
je 0x1400f5986
cmp dword [rsp + 0x68], 1
je 0x1400f59c6
mov rbx, qword [0x140452068]
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 [0x1403cf6e8]
mov byte [rdi + 0x10], 1
mov rax, rdi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
call fcn.1400f59f0
test al, al
je 0x1400f5927
call fcn.1400f5c54
jmp 0x1400f591c