Function at 0x14016d640
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
test byte [0x1402c2230], 1
jne 0x14016d98a
lock bts qword [0x1402c2230], 0x1f
jae 0x14016d684
test byte [0x1402c2230], 1
jne 0x14016d98a
xor edx, edx
lea rcx, [0x1402c2230]
call sym.SystemInformer.exe_QifWaitForEvent
movzx eax, byte [0x1402c9198]
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 0x14016d6f2
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 0x14016d6f2
cmp dword [0x1402baf40], 0x3e
jae 0x14016d92b
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 0x14016d92b
mov qword [rsp + 0x30], rdi
mov rcx, r10
mov edi, 0x5a4d
mov qword [0x1402c8510], rcx
cmp word [r10], di
jne 0x14016d75a
mov edx, dword [r10 + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016d75a
cmp dword [rdx + r10], 0x4550
jne 0x14016d75a
add rdx, 0x88
add rdx, r10
mov eax, dword [rdx]
test eax, eax
je 0x14016d75a
cmp dword [rdx + 4], 0
je 0x14016d75a
xor ebx, ebx
lea r8, [r10 + rax]
lea r9, str.BcdOpenSystemStore
mov word [rsp + 0x20], bx
call fcn.140177a80
mov rcx, qword [0x1402c8510]
jmp 0x14016d75e
xor ebx, ebx
mov eax, ebx
mov qword [0x1402c8538], rax
cmp word [rcx], di
jne 0x14016d7b6
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016d7b6
cmp dword ds:[rdx + rcx], 0x4550
jne 0x14016d7b6
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14016d7b6
cmp dword [rdx + 4], 0
je 0x14016d7b6
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.BcdCloseStore
call fcn.140177a80
mov rcx, qword [0x1402c8510]
jmp 0x14016d7b9
mov rax, rbx
mov qword [0x1402c8530], rax
cmp word [rcx], di
jne 0x14016d80f
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016d80f
cmp dword [rdx + rcx], 0x4550
jne 0x14016d80f
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14016d80f
cmp dword [rdx + 4], 0
je 0x14016d80f
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.BcdOpenObject
call fcn.140177a80
mov rcx, qword [0x1402c8510]
jmp 0x14016d812
mov rax, rbx
mov qword [0x1402c8548], rax
cmp word [rcx], di
jne 0x14016d868
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016d868
cmp dword [rdx + rcx], 0x4550
jne 0x14016d868
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14016d868
cmp dword [rdx + 4], 0
je 0x14016d868
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.BcdCloseObject
call fcn.140177a80
mov rcx, qword [0x1402c8510]
jmp 0x14016d86b
mov rax, rbx
mov qword [0x1402c8518], rax
cmp word [rcx], di
jne 0x14016d8c8
mov edx, dword ds:[rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016d8c8
cmp dword [rdx + rcx], 0x4550
jne 0x14016d8c8
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14016d8c8
cmp dword [rdx + 4], 0
je 0x14016d8c8
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.BcdGetElementData
call fcn.140177a80
mov rcx, qword [0x1402c8510]
jmp 0x14016d8cb
mov rax, rbx
cmp word [rcx], di
mov rdi, qword [rsp + 0x30]
mov qword [0x1402c8520], rax
jne 0x14016d922
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14016d922
cmp dword [rdx + rcx], 0x4550
jne 0x14016d922
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x14016d922
cmp dword [rdx + 4], 0
je 0x14016d922
lea r8, [rcx + rax]
mov word [rsp + 0x20], bx
lea r9, str.BcdSetElementData
call fcn.140177a80
mov rbx, rax
mov qword [0x1402c8540], rbx
jmp 0x14016d93b
xor ebx, ebx
mov qword [0x1402c8510], rbx
mov rbx, qword [0x1402c8540]
cmp qword [0x1402c8538], 0
je 0x14016d979
cmp qword [0x1402c8530], 0
je 0x14016d979
cmp qword [0x1402c8548], 0
je 0x14016d979
cmp qword [0x1402c8518], 0
je 0x14016d979
cmp qword [0x1402c8520], 0
je 0x14016d979
test rbx, rbx
je 0x14016d979
mov byte [0x1402c9198], 1
lea rcx, [0x1402c2230]
call sym.SystemInformer.exe_QifSetEvent
mov rbx, qword [rsp + 0x40]
movzx eax, byte [0x1402c9198]
add rsp, 0x38
ret