Function at 0x14013dae0
Capabilities:
Parse pe header

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov rsi, rdx
test byte [0x1402c59c0], 1
mov r14, rcx
jne 0x14013dc76
lock bts qword [0x1402c59c0], 0x1f
setb al
test al, al
jne 0x14013dc5f
xor edx, edx
lea rcx, str.shell32.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x14013db89
xor edx, edx
lea rcx, str.shell32.dll
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x14013db89
cmp dword [0x1402bff40], 0x3e
nop dword [rax]
jae 0x14013dc51
xor r8d, r8d
lea rcx, str.shell32.dll
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x14013dc51
mov edi, 0x5a4d
mov rcx, rbx
cmp word [rbx], di
jne 0x14013dbed
mov edx, dword ds:[rbx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14013dbed
cmp dword [rdx + rbx], 0x4550
jne 0x14013dbed
add rdx, 0x88
add rdx, rbx
mov eax, dword [rdx]
test eax, eax
je 0x14013dbea
cmp dword [rdx + 4], r15d
je 0x14013dbea
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], r15w
lea r9, str.SHParseDisplayName
call fcn.14017dc40
mov rcx, rbx
jmp 0x14013dbf0
mov rcx, rbx
mov rax, r15
mov qword [0x1402cdaa0], rax
cmp word [rbx], di
jne 0x14013dc47
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14013dc47
cmp dword [rdx + rbx], 0x4550
jne 0x14013dc47
add rdx, 0x88
add rdx, rbx
mov eax, dword [rdx]
test eax, eax
je 0x14013dc47
cmp dword [rdx + 4], r15d
je 0x14013dc47
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], r15w
lea r9, str.SHCreateItemFromIDList
mov rcx, rbx
call fcn.14017dc40
jmp 0x14013dc4a
mov rax, r15
mov qword [0x1402cda98], rax
lea rcx, [0x1402c59c0]
call sym.SystemInformer.exe_PhfSetEvent
jmp 0x14013dc76
test byte [0x1402c59c0], 1
jne 0x14013dc76
xor edx, edx
lea rcx, [0x1402c59c0]
call sym.SystemInformer.exe_PhfWaitForEvent
mov rdx, rsi
mov ecx, esi
and rdx, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x14013dca9
movdqu xmm0, xmmword [rdx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
mov dword [rsp + 0x60], ecx
je 0x14013dca5
mov edx, ecx
shr rdx, 1
jmp 0x14013dce8
add rdx, 0x10
movdqu xmm0, xmmword [rdx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x60], ecx
jne 0x14013dcda
nop
movdqu xmm0, xmmword [rdx + 0x10]
add rdx, 0x10
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x60], ecx
je 0x14013dcc0
sub rdx, rsi
mov eax, ecx
sar rdx, 1
shr rax, 1
add rdx, rax
lea rdi, ds:[rdx + rdx]
mov qword [rsp + 0x78], rbp
mov rbx, rdi
mov rdx, rdi
shr rbx, 1
shr rdx, 4
cmp byte [r14], r15b
je 0x14013ded7
and ebx, 7
mov qword [rsp + 0x68], r15
lea rcx, [rdi + rsi]
test rdx, rdx
je 0x14013dd59
movdqa xmm1, xmmword [0x1402909e0]
sub rcx, 0x10
nop word [rax + rax]
movdqu xmm0, xmmword [rcx]
dec rdx
mov r9, rcx
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsr r8d, eax
mov dword [rsp + 0x60], r8d
jne 0x14013dd99
sub rcx, 0x10
test rdx, rdx
jne 0x14013dd30
mov rcx, r9
test rbx, rbx
je 0x14013dd74
sub rcx, 2
dec rbx
cmp word [rcx], 0x5c
je 0x14013ddaf
sub rcx, 2
test rbx, rbx
jne 0x14013dd62
mov rcx, qword [r14 + 8]
mov rdx, rsi
mov rax, qword [rcx]
mov rax, qword [rax + 0x78]
call qword [case.0x14013d64a.0]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
shl rdx, 4
shr rdx, 1
mov ecx, r8d
shr rcx, 1
lea rax, [rbx + rdx]
add rcx, rax
jmp 0x14013ddb2
mov rcx, rbx
cmp rcx, 0xffffffffffffffff
je 0x14013dd74
lea rbx, [rcx + rcx]
sub rdi, rbx
lea rbp, [rsi + 2]
sub rdi, 2
test rbx, rbx
je 0x14013dd74
test rdi, rdi
je 0x14013dd74
cmp qword [0x1402cdaa0], r15
je 0x14013dd74
cmp qword [0x1402cda98], r15
je 0x14013dd74
mov rdx, qword [0x1402ca978]
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_PhCreateObject
mov rdi, rax
mov qword [rax], rbx
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rcx + rbx], r15w
test rsi, rsi
je 0x14013de1a
mov rcx, qword [rax + 8]
mov r8, rbx
mov rdx, rsi
call fcn.14020a640
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x70]
mov rax, qword [0x1402cdaa0]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [case.0x14013d64a.0]
test eax, eax
js 0x14013de67
mov rcx, qword [rsp + 0x70]
lea r8, [rsp + 0x68]
mov rax, qword [0x1402cda98]
lea rdx, [0x14020fb90]
call qword [case.0x14013d64a.0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [rdi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14013de7f
call fcn.140141ca0
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x14013dd74
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call qword [case.0x14013d64a.0]
mov rcx, qword [r14 + 8]
lea rdx, [rbx + rbp]
mov rax, qword [rcx]
mov rax, qword [rax + 0x78]
call qword [case.0x14013d64a.0]
mov rcx, qword ds:[rsp + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14013d64a.0]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov rbp, qword [r14 + 8]
mov r8, rbx
and r8d, 7
mov rcx, rsi
mov r9, rdx
mov r10d, r8d
test rdx, rdx
je 0x14013df26
movdqa xmm2, xmmword [0x1402909c0]
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx]
movdqa xmm1, xmm2
pcmpeqw xmm1, xmm0
pmovmskb eax, xmm1
bsf r11d, eax
jne 0x14013df48
add rcx, 0x10
sub r9, 1
jne 0x14013df00
test r8, r8
je 0x14013df73
nop dword [rax + rax]
cmp word [rcx], 0x2f
je 0x14013df63
add rcx, 2
sub r10, 1
jne 0x14013df30
jmp 0x14013df73
shl r9, 4
mov rcx, rdi
sub rcx, r9
mov eax, r11d
shr rcx, 1
shr rax, 1
add rcx, rax
sub rcx, r8
jmp 0x14013df69
mov rcx, rbx
sub rcx, r10
cmp rcx, 0xffffffffffffffff
jne 0x14013e045
mov rcx, rsi
test rdx, rdx
je 0x14013dfac
movdqa xmm1, xmmword [0x140290960]
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rcx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf r9d, eax
jne 0x14013dfc8
add rcx, 0x10
sub rdx, 1
jne 0x14013df90
test r8, r8
je 0x14013dfee
cmp word [rcx], 0x22
je 0x14013dfe2
add rcx, 2
sub r8, 1
jne 0x14013dfb1
jmp 0x14013dfee
shl rdx, 4
mov rcx, rdi
sub rcx, rdx
mov eax, r9d
shr rcx, 1
shr rax, 1
add rcx, rax
jmp 0x14013dfe5
mov rcx, rbx
sub rcx, r8
cmp rcx, 0xffffffffffffffff
jne 0x14013e045
mov r8, qword ss:[rbp + 0x30]
xor edx, edx
mov rcx, qword [0x1402caad0]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rax, [rbx + 1]
mov ecx, 0x400
cmp rax, rcx
mov edx, 4
cmova rcx, rax
mov r8d, ecx
mov rcx, qword [0x1402caad0]
mov dword [rbp + 0x38], r8d
add r8, r8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea r8, [rdi + 2]
mov rdx, rsi
mov rcx, rax
mov qword [rbp + 0x30], rax
call fcn.14020a640
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret