Function at 0x1401393e0
Capabilities:
Parse pe header

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x38
xor r15d, r15d
mov rsi, rdx
test byte [0x1402bb700], 1
mov r14, rcx
jne 0x140139556
lock bts qword [0x1402bb700], 0x1f
jb 0x14013953f
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 0x14013947b
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 0x14013947b
cmp dword [0x1402b5e88], 0x3e
jae 0x140139531
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 0x140139531
mov ebp, 0x5a4d
cmp word [rbx], bp
jne 0x1401394cc
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x1401394cc
cmp dword [rcx + rbx], 0x4550
jne 0x1401394cc
lea rdx, [rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401394cc
cmp dword [rdx + 4], r15d
je 0x1401394cc
lea r8, [rbx + rax]
mov word [rsp + 0x20], r15w
lea r9, str.SHParseDisplayName
mov rcx, rbx
call fcn.140174840
jmp 0x1401394cf
mov rax, r15
mov qword [0x1402c2da0], rax
cmp word [rbx], bp
jne 0x140139527
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x140139527
cmp dword [rcx + rbx], 0x4550
jne 0x140139527
lea rdx, ds:[rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140139527
cmp dword [rdx + 4], r15d
je 0x140139527
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], r15w
lea r9, str.SHCreateItemFromIDList
mov rcx, rbx
call fcn.140174840
jmp 0x14013952a
mov rax, r15
mov qword [0x1402c2d98], rax
lea rcx, [0x1402bb700]
call sym.SystemInformer.exe_PhfSetEvent
jmp 0x140139556
test byte [0x1402bb700], 1
jne 0x140139556
xor edx, edx
lea rcx, [0x1402bb700]
call sym.SystemInformer.exe_PhfWaitForEvent
mov rdx, rsi
mov ecx, esi
and rdx, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x140139589
movdqu xmm0, xmmword [rdx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
mov dword [rsp + 0x70], ecx
je 0x140139585
mov edx, ecx
shr rdx, 1
jmp 0x1401395c8
add rdx, 0x10
movdqu xmm0, xmmword [rdx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x70], ecx
jne 0x1401395ba
nop
movdqu xmm0, xmmword [rdx + 0x10]
add rdx, 0x10
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x70], ecx
je 0x1401395a0
sub rdx, rsi
mov eax, ecx
sar rdx, 1
shr rax, 1
add rdx, rax
lea rdi, ds:[rdx + rdx]
mov rbx, rdi
mov rdx, rdi
shr rbx, 1
shr rdx, 4
cmp byte [r14], r15b
je 0x1401397c8
and ebx, 7
mov qword [rsp + 0x80], r15
lea rcx, [rdi + rsi]
test rdx, rdx
je 0x140139639
movdqa xmm1, xmmword [0x140288d40]
sub rcx, 0x10
nop dword [rax]
movdqu xmm0, xmmword [rcx]
dec rdx
mov r9, rcx
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsr r8d, eax
mov dword [rsp + 0x78], r8d
jne 0x140139675
sub rcx, 0x10
test rdx, rdx
jne 0x140139610
mov rcx, r9
test rbx, rbx
je 0x140139654
sub rcx, 2
dec rbx
cmp word [rcx], 0x5c
je 0x14013968b
sub rcx, 2
test rbx, rbx
jne 0x140139642
mov rcx, qword [r14 + 8]
mov rdx, rsi
mov rax, qword [rcx]
mov rax, qword [rax + 0x78]
call qword [str.PB__]
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
shl rdx, 4
shr rdx, 1
mov ecx, r8d
shr rcx, 1
lea rax, [rbx + rdx]
add rcx, rax
jmp 0x14013968e
mov rcx, rbx
cmp rcx, 0xffffffffffffffff
je 0x140139654
lea rbx, [rcx + rcx]
sub rdi, rbx
lea rbp, [rsi + 2]
sub rdi, 2
test rbx, rbx
je 0x140139654
test rdi, rdi
je 0x140139654
cmp qword [0x1402c2da0], r15
je 0x140139654
cmp qword [0x1402c2d98], r15
je 0x140139654
mov rdx, qword [0x1402bfcf8]
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 0x1401396f6
mov rcx, qword [rax + 8]
mov r8, rbx
mov rdx, rsi
call fcn.1401e3aa0
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x88]
mov rax, qword [0x1402c2da0]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], r15
call qword [str.PB__]
test eax, eax
js 0x140139754
mov rcx, qword ds:[rsp + 0x88]
lea r8, [rsp + 0x80]
mov rax, qword [0x1402c2d98]
lea rdx, [0x140208a70]
call qword [str.PB__]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, [rdi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14013976c
call fcn.14013d2a0
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140139654
mov rcx, qword [r14 + 8]
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call qword [str.PB__]
mov rcx, qword ds:[r14 + 8]
lea rdx, [rbx + rbp]
mov rax, qword [rcx]
mov rax, qword [rax + 0x78]
call qword [str.PB__]
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [str.PB__]
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rbp, qword ds:[r14 + 8]
mov r8, rbx
and r8d, 7
mov rcx, rsi
mov r9, rdx
mov r10d, r8d
test rdx, rdx
je 0x14013980c
movdqa xmm1, xmmword [0x140288d20]
nop dword [rax]
movdqu xmm0, xmmword [rcx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf r11d, eax
jne 0x140139828
add rcx, 0x10
sub r9, 1
jne 0x1401397f0
test r8, r8
je 0x140139853
cmp word [rcx], 0x2f
je 0x140139843
add rcx, 2
sub r10, 1
jne 0x140139811
jmp 0x140139853
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 0x140139849
mov rcx, rbx
sub rcx, r10
cmp rcx, 0xffffffffffffffff
jne 0x140139925
mov rcx, rsi
test rdx, rdx
je 0x140139890
movdqa xmm2, xmmword [0x140288cc0]
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rcx]
movdqa xmm1, xmm2
pcmpeqw xmm1, xmm0
pmovmskb eax, xmm1
bsf r9d, eax
jne 0x1401398a8
add rcx, 0x10
sub rdx, 1
jne 0x140139870
test r8, r8
je 0x1401398ce
cmp word [rcx], 0x22
je 0x1401398c2
add rcx, 2
sub r8, 1
jne 0x140139895
jmp 0x1401398ce
shl rdx, 4
mov rcx, rdi
sub rcx, rdx
mov eax, r9d
shr rcx, 1
shr rax, 1
add rcx, rax
jmp 0x1401398c5
mov rcx, rbx
sub rcx, r8
cmp rcx, 0xffffffffffffffff
jne 0x140139925
mov r8, qword ss:[rbp + 0x30]
xor edx, edx
mov rcx, qword [0x1402bfe50]
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 [0x1402bfe50]
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.1401e3aa0
add rsp, 0x38
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret