Function at 0x14013dce0
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 [0x1402c59e0], 1
mov r14, rcx
jne 0x14013de76
lock bts qword [0x1402c59e0], 0x1f
setb al
test al, al
jne 0x14013de5f
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 0x14013dd89
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 0x14013dd89
cmp dword [0x1402bff40], 0x3e
nop dword [rax]
jae 0x14013de51
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 0x14013de51
mov edi, 0x5a4d
mov rcx, rbx
cmp word [rbx], di
jne 0x14013dded
mov edx, dword ds:[rbx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14013dded
cmp dword [rdx + rbx], 0x4550
jne 0x14013dded
add rdx, 0x88
add rdx, rbx
mov eax, dword [rdx]
test eax, eax
je 0x14013ddea
cmp dword [rdx + 4], r15d
je 0x14013ddea
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], r15w
lea r9, str.SHParseDisplayName
call fcn.14017e4c0
mov rcx, rbx
jmp 0x14013ddf0
mov rcx, rbx
mov rax, r15
mov qword [0x1402cdac0], rax
cmp word [rbx], di
jne 0x14013de47
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14013de47
cmp dword [rdx + rbx], 0x4550
jne 0x14013de47
add rdx, 0x88
add rdx, rbx
mov eax, dword [rdx]
test eax, eax
je 0x14013de47
cmp dword [rdx + 4], r15d
je 0x14013de47
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], r15w
lea r9, str.SHCreateItemFromIDList
mov rcx, rbx
call fcn.14017e4c0
jmp 0x14013de4a
mov rax, r15
mov qword [0x1402cdab8], rax
lea rcx, [0x1402c59e0]
call sym.SystemInformer.exe_PhfSetEvent
jmp 0x14013de76
test byte [0x1402c59e0], 1
jne 0x14013de76
xor edx, edx
lea rcx, [0x1402c59e0]
call sym.SystemInformer.exe_PhfWaitForEvent
mov rdx, rsi
mov ecx, esi
and rdx, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x14013dea9
movdqu xmm0, xmmword [rdx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
mov dword [rsp + 0x60], ecx
je 0x14013dea5
mov edx, ecx
shr rdx, 1
jmp 0x14013dee8
add rdx, 0x10
movdqu xmm0, xmmword [rdx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x60], ecx
jne 0x14013deda
nop
movdqu xmm0, xmmword [rdx + 0x10]
add rdx, 0x10
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x60], ecx
je 0x14013dec0
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 0x14013e0d7
and ebx, 7
mov qword [rsp + 0x68], r15
lea rcx, [rdi + rsi]
test rdx, rdx
je 0x14013df59
movdqa xmm1, xmmword [0x140290a30]
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 0x14013df99
sub rcx, 0x10
test rdx, rdx
jne 0x14013df30
mov rcx, r9
test rbx, rbx
je 0x14013df74
sub rcx, 2
dec rbx
cmp word [rcx], 0x5c
je 0x14013dfaf
sub rcx, 2
test rbx, rbx
jne 0x14013df62
mov rcx, qword [r14 + 8]
mov rdx, rsi
mov rax, qword [rcx]
mov rax, qword [rax + 0x78]
call qword [case.0x14013d84a.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 0x14013dfb2
mov rcx, rbx
cmp rcx, 0xffffffffffffffff
je 0x14013df74
lea rbx, [rcx + rcx]
sub rdi, rbx
lea rbp, [rsi + 2]
sub rdi, 2
test rbx, rbx
je 0x14013df74
test rdi, rdi
je 0x14013df74
cmp qword [0x1402cdac0], r15
je 0x14013df74
cmp qword [0x1402cdab8], r15
je 0x14013df74
mov rdx, qword [0x1402ca998]
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 0x14013e01a
mov rcx, qword [rax + 8]
mov r8, rbx
mov rdx, rsi
call fcn.14020af00
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x70]
mov rax, qword [0x1402cdac0]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [case.0x14013d84a.0]
test eax, eax
js 0x14013e067
mov rcx, qword [rsp + 0x70]
lea r8, [rsp + 0x68]
mov rax, qword [0x1402cdab8]
lea rdx, [0x14020fb90]
call qword [case.0x14013d84a.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 0x14013e07f
call fcn.140141ea0
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x14013df74
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call qword [case.0x14013d84a.0]
mov rcx, qword [r14 + 8]
lea rdx, [rbx + rbp]
mov rax, qword [rcx]
mov rax, qword [rax + 0x78]
call qword [case.0x14013d84a.0]
mov rcx, qword ds:[rsp + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14013d84a.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 0x14013e126
movdqa xmm2, xmmword [0x140290a10]
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx]
movdqa xmm1, xmm2
pcmpeqw xmm1, xmm0
pmovmskb eax, xmm1
bsf r11d, eax
jne 0x14013e148
add rcx, 0x10
sub r9, 1
jne 0x14013e100
test r8, r8
je 0x14013e173
nop dword [rax + rax]
cmp word [rcx], 0x2f
je 0x14013e163
add rcx, 2
sub r10, 1
jne 0x14013e130
jmp 0x14013e173
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 0x14013e169
mov rcx, rbx
sub rcx, r10
cmp rcx, 0xffffffffffffffff
jne 0x14013e245
mov rcx, rsi
test rdx, rdx
je 0x14013e1ac
movdqa xmm1, xmmword [0x1402909b0]
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rcx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf r9d, eax
jne 0x14013e1c8
add rcx, 0x10
sub rdx, 1
jne 0x14013e190
test r8, r8
je 0x14013e1ee
cmp word [rcx], 0x22
je 0x14013e1e2
add rcx, 2
sub r8, 1
jne 0x14013e1b1
jmp 0x14013e1ee
shl rdx, 4
mov rcx, rdi
sub rcx, rdx
mov eax, r9d
shr rcx, 1
shr rax, 1
add rcx, rax
jmp 0x14013e1e5
mov rcx, rbx
sub rcx, r8
cmp rcx, 0xffffffffffffffff
jne 0x14013e245
mov r8, qword ss:[rbp + 0x30]
xor edx, edx
mov rcx, qword [0x1402caaf0]
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 [0x1402caaf0]
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.14020af00
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret