Function at 0x14016f380
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
test byte [0x1402c72e8], 1
jne 0x14016f6ea
lock bts qword [0x1402c72e8], 0x1f
setb al
test al, al
je 0x14016f3cb
test byte [0x1402c72e8], 1
jne 0x14016f6ea
xor edx, edx
lea rcx, [0x1402c72e8]
call sym.SystemInformer.exe_PhfWaitForEvent
movzx eax, byte [0x1402cec00]
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 0x14016f439
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 0x14016f439
cmp dword [0x1402bff40], 0x3e
jae 0x14016f68b
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 0x14016f68b
mov qword [rsp + 0x30], rdi
mov rcx, r10
mov edi, 0x5a4d
mov qword [0x1402cdf60], rcx
cmp word [r10], di
jne 0x14016f4ae
mov edx, dword ds:[r10 + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016f4ae
cmp dword [rdx + r10], 0x4550
jne 0x14016f4ae
add rdx, 0x88
add rdx, r10
mov eax, dword [rdx]
test eax, eax
je 0x14016f4ae
cmp dword [rdx + 4], 0
je 0x14016f4ae
xor ebx, ebx
lea r8, [r10 + rax]
lea r9, str.BcdOpenSystemStore
mov word [rsp + 0x20], bx
call fcn.14017dc40
mov rcx, qword [0x1402cdf60]
jmp 0x14016f4b2
xor ebx, ebx
mov eax, ebx
mov qword [0x1402cdf88], rax
cmp word [rcx], di
jne 0x14016f508
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016f508
cmp dword [rdx + rcx], 0x4550
jne 0x14016f508
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14016f508
cmp dword [rdx + 4], 0
je 0x14016f508
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.BcdCloseStore
call fcn.14017dc40
mov rcx, qword [0x1402cdf60]
jmp 0x14016f50b
mov rax, rbx
mov qword [0x1402cdf80], rax
cmp word [rcx], di
jne 0x14016f568
mov edx, dword ds:[rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016f568
cmp dword [rdx + rcx], 0x4550
jne 0x14016f568
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14016f568
cmp dword [rdx + 4], 0
je 0x14016f568
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.BcdOpenObject
call fcn.14017dc40
mov rcx, qword [0x1402cdf60]
jmp 0x14016f56b
mov rax, rbx
mov qword [0x1402cdf98], rax
cmp word [rcx], di
jne 0x14016f5c8
mov edx, dword ds:[rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016f5c8
cmp dword [rdx + rcx], 0x4550
jne 0x14016f5c8
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14016f5c8
cmp dword [rdx + 4], 0
je 0x14016f5c8
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.BcdCloseObject
call fcn.14017dc40
mov rcx, qword [0x1402cdf60]
jmp 0x14016f5cb
mov rax, rbx
mov qword [0x1402cdf68], rax
cmp word [rcx], di
jne 0x14016f628
mov edx, dword ds:[rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016f628
cmp dword [rdx + rcx], 0x4550
jne 0x14016f628
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14016f628
cmp dword [rdx + 4], 0
je 0x14016f628
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.BcdGetElementData
call fcn.14017dc40
mov rcx, qword [0x1402cdf60]
jmp 0x14016f62b
mov rax, rbx
cmp word [rcx], di
mov rdi, qword [rsp + 0x30]
mov qword [0x1402cdf70], rax
jne 0x14016f682
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016f682
cmp dword [rdx + rcx], 0x4550
jne 0x14016f682
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14016f682
cmp dword [rdx + 4], 0
je 0x14016f682
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.BcdSetElementData
call fcn.14017dc40
mov rbx, rax
mov qword [0x1402cdf90], rbx
jmp 0x14016f69b
xor ebx, ebx
mov qword [0x1402cdf60], rbx
mov rbx, qword [0x1402cdf90]
cmp qword [0x1402cdf88], 0
je 0x14016f6d9
cmp qword [0x1402cdf80], 0
je 0x14016f6d9
cmp qword [0x1402cdf98], 0
je 0x14016f6d9
cmp qword [0x1402cdf68], 0
je 0x14016f6d9
cmp qword [0x1402cdf70], 0
je 0x14016f6d9
test rbx, rbx
je 0x14016f6d9
mov byte [0x1402cec00], 1
lea rcx, [0x1402c72e8]
call sym.SystemInformer.exe_PhfSetEvent
mov rbx, qword [rsp + 0x40]
movzx eax, byte [0x1402cec00]
add rsp, 0x38
ret