Function at 0x14013e040
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 [0x1402c6920], 1
mov r14, rcx
jne 0x14013e1d6
lock bts qword [0x1402c6920], 0x1f
setb al
test al, al
jne 0x14013e1bf
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 0x14013e0e9
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 0x14013e0e9
cmp dword [0x1402c0f40], 0x3e
nop dword [rax]
jae 0x14013e1b1
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 0x14013e1b1
mov edi, 0x5a4d
mov rcx, rbx
cmp word [rbx], di
jne 0x14013e14d
mov edx, dword ds:[rbx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14013e14d
cmp dword [rdx + rbx], 0x4550
jne 0x14013e14d
add rdx, 0x88
add rdx, rbx
mov eax, dword [rdx]
test eax, eax
je 0x14013e14a
cmp dword [rdx + 4], r15d
je 0x14013e14a
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], r15w
lea r9, str.SHParseDisplayName
call fcn.14017f180
mov rcx, rbx
jmp 0x14013e150
mov rcx, rbx
mov rax, r15
mov qword [0x1402ce9f0], rax
cmp word [rbx], di
jne 0x14013e1a7
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14013e1a7
cmp dword [rdx + rbx], 0x4550
jne 0x14013e1a7
add rdx, 0x88
add rdx, rbx
mov eax, dword [rdx]
test eax, eax
je 0x14013e1a7
cmp dword [rdx + 4], r15d
je 0x14013e1a7
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], r15w
lea r9, str.SHCreateItemFromIDList
mov rcx, rbx
call fcn.14017f180
jmp 0x14013e1aa
mov rax, r15
mov qword [0x1402ce9e8], rax
lea rcx, [0x1402c6920]
call sym.SystemInformer.exe_PhfSetEvent
jmp 0x14013e1d6
test byte [0x1402c6920], 1
jne 0x14013e1d6
xor edx, edx
lea rcx, [0x1402c6920]
call sym.SystemInformer.exe_PhfWaitForEvent
mov rdx, rsi
mov ecx, esi
and rdx, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x14013e209
movdqu xmm0, xmmword [rdx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
mov dword [rsp + 0x60], ecx
je 0x14013e205
mov edx, ecx
shr rdx, 1
jmp 0x14013e248
add rdx, 0x10
movdqu xmm0, xmmword [rdx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x60], ecx
jne 0x14013e23a
nop
movdqu xmm0, xmmword [rdx + 0x10]
add rdx, 0x10
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x60], ecx
je 0x14013e220
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 0x14013e437
and ebx, 7
mov qword [rsp + 0x68], r15
lea rcx, [rdi + rsi]
test rdx, rdx
je 0x14013e2b9
movdqa xmm1, xmmword [0x140291d80]
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 0x14013e2f9
sub rcx, 0x10
test rdx, rdx
jne 0x14013e290
mov rcx, r9
test rbx, rbx
je 0x14013e2d4
sub rcx, 2
dec rbx
cmp word [rcx], 0x5c
je 0x14013e30f
sub rcx, 2
test rbx, rbx
jne 0x14013e2c2
mov rcx, qword [r14 + 8]
mov rdx, rsi
mov rax, qword [rcx]
mov rax, qword [rax + 0x78]
call qword [case.0x14013dbaa.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 0x14013e312
mov rcx, rbx
cmp rcx, 0xffffffffffffffff
je 0x14013e2d4
lea rbx, [rcx + rcx]
sub rdi, rbx
lea rbp, [rsi + 2]
sub rdi, 2
test rbx, rbx
je 0x14013e2d4
test rdi, rdi
je 0x14013e2d4
cmp qword [0x1402ce9f0], r15
je 0x14013e2d4
cmp qword [0x1402ce9e8], r15
je 0x14013e2d4
mov rdx, qword [0x1402cb8c0]
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 [rbx + rcx], r15w
test rsi, rsi
je 0x14013e37a
mov rcx, qword [rax + 8]
mov r8, rbx
mov rdx, rsi
call fcn.14020be40
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x70]
mov rax, qword [0x1402ce9f0]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [case.0x14013dbaa.0]
test eax, eax
js 0x14013e3c7
mov rcx, qword [rsp + 0x70]
lea r8, [rsp + 0x68]
mov rax, qword [0x1402ce9e8]
lea rdx, [0x140210bb0]
call qword [case.0x14013dbaa.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 0x14013e3df
call fcn.140142200
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x14013e2d4
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call qword [case.0x14013dbaa.0]
mov rcx, qword [r14 + 8]
lea rdx, [rbx + rbp]
mov rax, qword [rcx]
mov rax, qword [rax + 0x78]
call qword [case.0x14013dbaa.0]
mov rcx, qword ds:[rsp + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14013dbaa.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 0x14013e486
movdqa xmm2, xmmword [0x140291d60]
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx]
movdqa xmm1, xmm2
pcmpeqw xmm1, xmm0
pmovmskb eax, xmm1
bsf r11d, eax
jne 0x14013e4a8
add rcx, 0x10
sub r9, 1
jne 0x14013e460
test r8, r8
je 0x14013e4d3
nop dword [rax + rax]
cmp word [rcx], 0x2f
je 0x14013e4c3
add rcx, 2
sub r10, 1
jne 0x14013e490
jmp 0x14013e4d3
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 0x14013e4c9
mov rcx, rbx
sub rcx, r10
cmp rcx, 0xffffffffffffffff
jne 0x14013e5a5
mov rcx, rsi
test rdx, rdx
je 0x14013e50c
movdqa xmm1, xmmword [0x140291d00]
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rcx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf r9d, eax
jne 0x14013e528
add rcx, 0x10
sub rdx, 1
jne 0x14013e4f0
test r8, r8
je 0x14013e54e
cmp word [rcx], 0x22
je 0x14013e542
add rcx, 2
sub r8, 1
jne 0x14013e511
jmp 0x14013e54e
shl rdx, 4
mov rcx, rdi
sub rcx, rdx
mov eax, r9d
shr rcx, 1
shr rax, 1
add rcx, rax
jmp 0x14013e545
mov rcx, rbx
sub rcx, r8
cmp rcx, 0xffffffffffffffff
jne 0x14013e5a5
mov r8, qword ss:[rbp + 0x30]
xor edx, edx
mov rcx, qword [0x1402cba10]
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 [0x1402cba10]
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.14020be40
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret