Function at 0x14016fc00
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
test byte [0x1402c7308], 1
jne 0x14016ff6a
lock bts qword [0x1402c7308], 0x1f
setb al
test al, al
je 0x14016fc4b
test byte [0x1402c7308], 1
jne 0x14016ff6a
xor edx, edx
lea rcx, [0x1402c7308]
call sym.SystemInformer.exe_PhfWaitForEvent
movzx eax, byte [0x1402cec20]
add rsp, 0x38
ret
xor edx, edx
mov qword [rsp + 0x40], rbx
mov r8d, 0x800
lea rcx, str.bcd.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r10, rax
test rax, rax
jne 0x14016fcb9
xor edx, edx
lea rcx, str.bcd.dll
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r10, rax
test rax, rax
jne 0x14016fcb9
cmp dword [0x1402bff40], 0x3e
jae 0x14016ff0b
xor r8d, r8d
lea rcx, str.bcd.dll
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r10, rax
test rax, rax
je 0x14016ff0b
mov qword [rsp + 0x30], rdi
mov rcx, r10
mov edi, 0x5a4d
mov qword [0x1402cdf80], rcx
cmp word [r10], di
jne 0x14016fd2e
mov edx, dword ds:[r10 + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016fd2e
cmp dword [rdx + r10], 0x4550
jne 0x14016fd2e
add rdx, 0x88
add rdx, r10
mov eax, dword [rdx]
test eax, eax
je 0x14016fd2e
cmp dword [rdx + 4], 0
je 0x14016fd2e
xor ebx, ebx
lea r8, [r10 + rax]
lea r9, str.BcdOpenSystemStore
mov word [rsp + 0x20], bx
call fcn.14017e4c0
mov rcx, qword [0x1402cdf80]
jmp 0x14016fd32
xor ebx, ebx
mov eax, ebx
mov qword [0x1402cdfa8], rax
cmp word [rcx], di
jne 0x14016fd88
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016fd88
cmp dword [rdx + rcx], 0x4550
jne 0x14016fd88
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14016fd88
cmp dword [rdx + 4], 0
je 0x14016fd88
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.BcdCloseStore
call fcn.14017e4c0
mov rcx, qword [0x1402cdf80]
jmp 0x14016fd8b
mov rax, rbx
mov qword [0x1402cdfa0], rax
cmp word [rcx], di
jne 0x14016fde8
mov edx, dword ds:[rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016fde8
cmp dword [rdx + rcx], 0x4550
jne 0x14016fde8
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14016fde8
cmp dword [rdx + 4], 0
je 0x14016fde8
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.BcdOpenObject
call fcn.14017e4c0
mov rcx, qword [0x1402cdf80]
jmp 0x14016fdeb
mov rax, rbx
mov qword [0x1402cdfb8], rax
cmp word [rcx], di
jne 0x14016fe48
mov edx, dword ds:[rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016fe48
cmp dword [rdx + rcx], 0x4550
jne 0x14016fe48
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14016fe48
cmp dword [rdx + 4], 0
je 0x14016fe48
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.BcdCloseObject
call fcn.14017e4c0
mov rcx, qword [0x1402cdf80]
jmp 0x14016fe4b
mov rax, rbx
mov qword [0x1402cdf88], rax
cmp word [rcx], di
jne 0x14016fea8
mov edx, dword ds:[rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016fea8
cmp dword [rdx + rcx], 0x4550
jne 0x14016fea8
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14016fea8
cmp dword [rdx + 4], 0
je 0x14016fea8
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.BcdGetElementData
call fcn.14017e4c0
mov rcx, qword [0x1402cdf80]
jmp 0x14016feab
mov rax, rbx
cmp word [rcx], di
mov rdi, qword [rsp + 0x30]
mov qword [0x1402cdf90], rax
jne 0x14016ff02
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016ff02
cmp dword [rdx + rcx], 0x4550
jne 0x14016ff02
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14016ff02
cmp dword [rdx + 4], 0
je 0x14016ff02
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.BcdSetElementData
call fcn.14017e4c0
mov rbx, rax
mov qword [0x1402cdfb0], rbx
jmp 0x14016ff1b
xor ebx, ebx
mov qword [0x1402cdf80], rbx
mov rbx, qword [0x1402cdfb0]
cmp qword [0x1402cdfa8], 0
je 0x14016ff59
cmp qword [0x1402cdfa0], 0
je 0x14016ff59
cmp qword [0x1402cdfb8], 0
je 0x14016ff59
cmp qword [0x1402cdf88], 0
je 0x14016ff59
cmp qword [0x1402cdf90], 0
je 0x14016ff59
test rbx, rbx
je 0x14016ff59
mov byte [0x1402cec20], 1
lea rcx, [0x1402c7308]
call sym.SystemInformer.exe_PhfSetEvent
mov rbx, qword [rsp + 0x40]
movzx eax, byte [0x1402cec20]
add rsp, 0x38
ret