Function at 0x14004a094
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [rsp + 0x70]
xor r13d, r13d
mov r12d, dword [rcx + 4]
mov rsi, 0xffffffffffffff5f
mov rbp, rcx
mov ebx, r13d
mov r14d, r13d
mov edi, r13d
mov qword [rax], r13
test qword [rcx + 8], rsi
je 0x14004a115
mov rcx, qword gs:[0x60]
lea r8d, [r13 + 8]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r15, rax
test rax, rax
jne 0x14004a109
mov ebx, 0xc0000017
jmp 0x14004a3f8
mov rax, qword [rbp + 8]
and rax, rsi
mov qword [r15], rax
jmp 0x14004a118
mov r15, r13
mov esi, 1
test r12d, r12d
je 0x14004a1a6
mov rax, r12
mov ecx, 0xffffffff
shl rax, 4
mov rsi, r12
cmp rax, rcx
ja 0x14004a277
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, eax
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14004a16e
mov ebx, 0xc0000017
jmp 0x14004a38f
test r12d, r12d
je 0x14004a1a1
mov rdx, rax
lea rcx, [rbp + 0x18]
sub rdx, rbp
movzx eax, word [rcx - 6]
mov word [rdx + rcx - 0x16], ax
movzx eax, word [rcx - 8]
mov word [rdx + rcx - 0x18], ax
mov rax, qword [rcx]
mov qword [rdx + rcx - 0x10], rax
lea rcx, [rcx + 0x10]
sub rsi, 1
jne 0x14004a17d
mov esi, 1
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
lea r8d, [rdx + 8]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x14004a164
mov qword [rax], rsi
mov ecx, 3
test byte [rbp + 8], 0x80
mov rax, rsi
mov r8d, 0xa0
cmovne rax, rcx
xor edx, edx
mov qword [r14], rax
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14004a164
lea rdx, str.EDP:__PolicyFlags
mov rcx, rax
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov eax, r13d
mov dword [rsi + 0x10], 2
test r15, r15
mov dword [rsi + 0x14], 0x41
lea rcx, [rsi + 0x28]
mov qword [rsi + 0x20], r15
setne al
lea rdx, str.EDP:__EnterpriseIds
mov dword [rsi + 0x18], eax
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov dword [rsi + 0x38], 3
mov dword [rsi + 0x3c], 0x43
test byte [rbp + 8], 0x20
je 0x14004a281
mov rax, r13
mov ecx, r13d
jmp 0x14004a287
mov ebx, 0xc0000095
jmp 0x14004a38f
mov rax, rdi
mov ecx, r12d
mov dword [rsi + 0x40], ecx
lea rdx, str.EDP:__ExemptEnterpriseIds
lea rcx, [rsi + 0x50]
mov qword [rsi + 0x48], rax
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
xor ecx, ecx
mov dword [rsi + 0x60], 3
mov dword [rsi + 0x64], 0x43
test byte [rbp + 8], 0x20
je 0x14004a2c0
mov rax, rdi
jmp 0x14004a2c6
mov rax, rcx
mov r12d, ecx
mov dword [rsi + 0x68], r12d
lea rcx, [rsi + 0x78]
lea rdx, str.EDP:__EvaluationFlags
mov qword [rsi + 0x70], rax
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov dword [rsi + 0x88], 2
mov ebp, 1
mov dword [rsi + 0x90], ebp
xor edx, edx
mov dword [rsi + 0x8c], 0x41
mov qword [rsi + 0x98], r14
mov rcx, qword gs:[0x60]
lea r8d, [rbp + 0xf]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
test rax, rax
jne 0x14004a336
mov ebx, 0xc0000017
jmp 0x14004a371
mov rcx, qword [rsp + 0x70]
mov dword [rax], ebp
mov dword [rax + 4], 4
mov qword [rax + 8], rsi
mov qword [rcx], rax
test ebx, ebx
jns 0x14004a3f8
mov rcx, qword gs:[0x60]
mov r8, rax
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test r15, r15
je 0x14004a3b2
mov rcx, qword gs:[0x60]
mov r8, r15
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test r14, r14
je 0x14004a3d5
mov rcx, qword gs:[0x60]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test rdi, rdi
je 0x14004a3f8
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret