Function at 0x1401089c0
Capabilities:
Parse pe header

Disassembly:
push rsi
sub rsp, 0x50
test byte [0x14023e0a0], 1
mov rsi, rdx
mov qword [rsp + 0x38], r14
mov r14, rcx
jne 0x140108c6a
lock bts qword [0x14023e0a0], 0x1f
jae 0x140108a0a
test byte [0x14023e0a0], 1
jne 0x140108c6a
xor edx, edx
lea rcx, [0x14023e0a0]
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x140108c6a
mov qword [rsp + 0x48], rbp
xor ebp, ebp
cmp dword [0x140237d34], 0x64
jae 0x140108c0a
mov qword [rsp + 0x40], rdi
call sym.ProcessHacker.exe_PhGetSystemDirectory
mov rdi, rax
test rax, rax
je 0x140108c05
mov rdx, qword [0x1402418e8]
mov qword [rsp + 0x78], rbx
mov rbx, qword [rax]
add rbx, 0x16
mov qword [rsp + 0x30], r15
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov r15, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], bp
mov r8, qword [rdi]
mov rdx, qword [rdi + 8]
mov rcx, qword [rax + 8]
call fcn.140188690
mov rdx, qword [rdi]
mov rcx, qword [r15 + 8]
movups xmm0, xmmword [str.user32.dll]
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rbp
movups xmmword [rdx + rcx], xmm0
mov eax, dword [0x1401f0510]
mov dword [rdx + rcx + 0x10], eax
movzx eax, word [0x1401f0514]
mov word [rdx + rcx + 0x14], ax
test byte [0x14023e090], 1
mov rbx, qword [r15 + 8]
jne 0x140108b5d
lock bts qword [0x14023e090], 0x1f
jae 0x140108ae7
test byte [0x14023e090], 1
jne 0x140108b5d
xor edx, edx
lea rcx, [0x14023e090]
call sym.ProcessHacker.exe_PhfWaitForEvent
jmp 0x140108b5d
lea rcx, [0x1401d9d58]
call fcn.1400f9d00
mov rcx, rax
test rax, rax
je 0x140108b47
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140108b47
mov edx, dword [rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x140108b47
cmp dword [rdx + rcx], 0x4550
jne 0x140108b47
add rdx, 0x88
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140108b47
cmp dword [rdx + 4], ebp
je 0x140108b47
lea r8, [rcx + rax]
mov word [rsp + 0x20], bp
lea r9, str.PrivateExtractIconExW
call fcn.1400fa1a0
jmp 0x140108b4a
mov rax, rbp
lea rcx, [0x14023e090]
mov qword [0x140244850], rax
call sym.ProcessHacker.exe_PhfSetEvent
mov rax, qword [0x140244850]
test rax, rax
je 0x140108bc6
lea r9, [rsp + 0x70]
mov dword [rsp + 0x20], 1
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, rbx
call qword [case.0x1400f654f.0]
test eax, eax
jle 0x140108ba4
mov rax, qword [rsp + 0x68]
mov qword [0x140244898], rax
mov rax, qword [rsp + 0x70]
mov qword [0x140244848], rax
jmp 0x140108bc6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140108bb4
call qword [sym.imp.USER32.dll_DestroyIcon]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140108bc6
nop
call qword [sym.imp.USER32.dll_DestroyIcon]
mov ebx, 0xffffffff
lea rcx, [r15 - 0x10]
mov eax, ebx
lock xadd dword [rcx + 8], eax
mov r15, qword [rsp + 0x30]
cmp eax, 1
jne 0x140108bea
call fcn.1400fbcc0
lea rcx, [rdi - 0x10]
lock xadd dword [rcx + 8], ebx
cmp ebx, 1
mov rbx, qword [rsp + 0x78]
jne 0x140108c05
nop dword [rax]
call fcn.1400fbcc0
mov rdi, qword [rsp + 0x40]
cmp qword [0x140244848], rbp
jne 0x140108c31
xor r9d, r9d
mov dword [rsp + 0x20], ebp
mov edx, 0x7f00
xor ecx, ecx
lea r8d, [r9 + 2]
call sym.ProcessHacker.exe_PhLoadIcon
mov qword [0x140244848], rax
cmp qword [0x140244898], rbp
jne 0x140108c58
xor r9d, r9d
mov dword [rsp + 0x20], ebp
mov edx, 0x7f00
xor ecx, ecx
lea r8d, [r9 + 4]
call sym.ProcessHacker.exe_PhLoadIcon
mov qword [0x140244898], rax
lea rcx, [0x14023e0a0]
nop
call sym.ProcessHacker.exe_PhfSetEvent
mov rbp, qword [rsp + 0x48]
test r14, r14
je 0x140108c79
mov rax, qword [0x140244848]
mov qword [r14], rax
mov r14, qword ss:[rsp + 0x38]
test rsi, rsi
je 0x140108c8f
mov rax, qword [0x140244898]
mov qword [rsi], rax
add rsp, 0x50
pop rsi
ret