Function at 0x18008c088
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r8, qword [rcx + 0x220]
mov rsi, rcx
mov dl, byte [rcx + 0x230]
mov cl, byte [rcx + 0x218]
call fcn.18008a8e0
xor r12d, r12d
cmp byte [rsi + 0x218], r12b
je 0x18008c2d4
cmp qword [rsi + 0x220], r12
jne 0x18008c0e2
cmp byte [rsi + 0x230], r12b
je 0x18008c2d4
cmp byte [rsi + 0x219], r12b
jne 0x18008c2d4
mov rax, qword [rsi + 0x60]
cmp dword [rax], r12d
je 0x18008c2d4
mov rbx, r12
cmp dword [rsi + 0x88], r12d
je 0x18008c115
mov dword [rsi + 0x88], r12d
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov rcx, qword [rsi + 0x78]
xor eax, eax
mov qword [rbp - 0x10], rax
mov r14d, 1
mov qword [rbp - 0x30], rax
mov rax, qword [rsi + 0x10]
mov qword [rbp - 0x18], rax
mov al, byte [rsi + 0x98]
mov byte [rbp - 0x10], al
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], rcx
mov dword [rbp - 0xc], r14d
test rcx, rcx
jne 0x18008c157
lea rdx, str.policyArgs.targetWindow__nullptr
jmp 0x18008c2a5
lea rdx, [rbp - 0x28]
mov qword [rbp - 0x28], r12
call qword [sym.imp.ext_ms_win_edputil_policy_l1_1_0.dll_EdpGetContextForWindow]
mov edi, eax
test eax, eax
jns 0x18008c17e
mov edx, eax
lea rcx, [0x180106010]
call fcn.18008a9d8
jmp 0x18008c2ad
mov r15, qword [rsi + 0x38]
test r15, r15
je 0x18008c232
mov rcx, r15
call fcn.18008d5ac
mov r15d, dword [r15 + 0x34]
test eax, eax
cmovs r15d, r12d
test r15d, r15d
je 0x18008c1c5
mov rdx, qword [rbp - 0x28]
lea r8, [rbp + 0x30]
mov rcx, qword [rsi + 0x220]
call qword [sym.imp.ext_ms_win_edputil_policy_l1_1_0.dll_EdpIsContextExemptOrEnlightenedAllowed]
cmp dword [rbp + 0x30], r14d
mov r15d, r12d
sete r15b
test r15d, r15d
setne cl
call fcn.18008a828
test r15d, r15d
je 0x18008c232
mov rax, qword [rbp - 0x28]
test byte [rax], r14b
je 0x18008c1ed
cmp byte [rsi + 0x230], r12b
jne 0x18008c225
mov rdx, qword [rsi + 0x220]
jmp 0x18008c215
lea rdx, [rbp + 0x30]
mov qword [rbp + 0x30], r12
mov rcx, rsi
call fcn.18008b9c0
mov edx, eax
lea rcx, str.GetEnterpriseIdForEdpPolicyEvaluation
mov edi, eax
call fcn.18008a9d8
test edi, edi
js 0x18008c232
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x18008c225
mov rcx, qword [rsi + 0x38]
call fcn.18008cf9c
mov edi, eax
test edi, edi
js 0x18008c232
lea rdx, str.Drop_Target_is_evaluating_EDP_policy.
jmp 0x18008c2a5
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.18008b9c0
test eax, eax
jns 0x18008c24b
lea rdx, str.Source_Enterprise_Id_could_not_be_retrieved.
jmp 0x18008c2a5
lea rax, [rbp + 0x38]
xor edx, edx
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x30]
lea r8, [0x180026510]
mov dword [rsp + 0x20], r12d
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov rbx, rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x18008c29e
mov rdx, rbx
call fcn.18008c838
cmp dword [rbp - 0xc], 2
lea rdx, str.EdpRequestAccessForContext_result.
setne dil
mov cl, dil
call fcn.18008a2c4
mov r14b, dil
jmp 0x18008c2ad
lea rdx, str.Thread_creation_failed.
mov cl, r14b
call fcn.18008a2c4
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x18008c2bc
call qword [sym.imp.ext_ms_win_edputil_policy_l1_1_0.dll_EdpFreeContext]
lea rax, [rbx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18008c2cf
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov al, r14b
jmp 0x18008c2d9
mov eax, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret