Function at 0x14015d380
Capabilities:
Access peb ldr_data

Disassembly:
mov qword ss:[rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov r14, rcx
xor dil, dil
xor ecx, ecx
mov dword [rbp + 0x6f], edi
mov rax, r8
mov qword [rbp - 0x39], rcx
mov rbx, rdx
mov qword [rbp - 0x21], r14
test byte [r14 + 0x20], 1
je 0x14015d3cc
mov rax, qword [r14 + 0x18]
mov qword [rbp - 0x39], rax
jmp 0x14015d444
test rax, rax
je 0x14015d3d7
mov qword [rbp - 0x39], rax
jmp 0x14015d444
cmp dword [0x1402c8fac], 3
mov edx, 0x1000
mov qword [rbp - 0x31], rbx
mov qword [rbp - 0x29], rcx
jl 0x14015d3fc
lea r8, [rbp - 0x31]
lea rcx, [rbp - 0x39]
call fcn.140178dc0
jmp 0x14015d42f
mov qword [rbp - 1], rcx
lea r9, [rbp - 0x31]
mov dword [rbp + 0xf], ecx
lea r8, [rbp - 9]
mov qword [rbp + 7], rcx
xorps xmm0, xmm0
lea rcx, [rbp - 0x39]
mov dword [rbp - 9], 0x30
movdqu xmmword [rbp + 0x17], xmm0
call qword [sym.imp.ntdll.dll_NtOpenProcess]
cmp eax, 0xc0000022
je 0x14015d440
test eax, eax
movzx edi, dil
mov ecx, 1
cmovns edi, ecx
mov dword [rbp + 0x6f], edi
mov rax, qword [rbp - 0x39]
mov edi, 2
mov qword [rbp - 0x31], rdi
test rbx, rbx
je 0x14015d475
test rax, rax
je 0x14015d475
lea rcx, [rbp - 0x21]
mov r8d, edi
mov qword [rsp + 0x20], rcx
lea r9, [0x14015d0c0]
mov rcx, rbx
mov rdx, rax
call sym.SystemInformer.exe_Ordinal_1492
lea rax, [rbp - 0x21]
xor r8d, r8d
lea r9, [0x14015d0c0]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 4
call sym.SystemInformer.exe_Ordinal_1492
lea r13, [0x1402c1538]
nop dword [rax + rax]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
add rax, 0x10
mov qword [rbp + 0x7f], rax
mov r12, qword [rax]
cmp r12, rax
je 0x14015d6af
nop
movzx eax, word [r12 + 0x58]
mov rbx, qword [r12 + 0x60]
test r13, r13
je 0x14015d599
mov rsi, qword ds:[r13]
cmp rax, rsi
jb 0x14015d678
mov r14, qword [r13 + 8]
mov rcx, rsi
shr rcx, 4
test rcx, rcx
je 0x14015d54a
nop dword [rax]
movdqu xmm0, xmmword [rbx]
movdqu xmm1, xmmword [r14]
pcmpeqd xmm1, xmm0
pmovmskb eax, xmm1
cmp eax, 0xffff
jne 0x14015d666
add rbx, 0x10
add r14, 0x10
sub rcx, 1
jne 0x14015d520
shr rsi, 1
and esi, 7
test rsi, rsi
je 0x14015d599
sub r14, rbx
nop dword [rax + rax]
movzx ecx, word [rbx]
movzx r15d, word [r14 + rbx]
cmp cx, r15w
je 0x14015d58f
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
movzx ecx, r15w
movzx edi, ax
call qword [sym.imp.ntdll.dll_RtlUpcaseUnicodeChar]
cmp di, ax
jne 0x14015d678
add rbx, 2
sub rsi, 1
jne 0x14015d560
nop dword [rax]
test r12, r12
je 0x14015d6ab
movzx eax, word [r12 + 0x48]
lea rcx, [rbp - 0x19]
mov rdi, qword [r12 + 0x30]
mov esi, dword [r12 + 0x40]
mov qword [rbp - 0x19], rax
mov rax, qword [r12 + 0x50]
mov qword [rbp - 0x11], rax
call sym.SystemInformer.exe_Ordinal_1483
mov rcx, qword gs:[0x30]
mov rbx, rax
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x110]
test rax, rax
je 0x14015d69e
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov rcx, qword [rbp + 0x67]
mov r9d, esi
mov r8, rdi
mov rdx, rbx
call sym.SystemInformer.exe_Ordinal_1949
lea rcx, [rbx - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14015d61f
call fcn.140143da0
mov rdi, qword [rbp - 0x31]
add r13, 0x10
sub rdi, 1
mov qword [rbp - 0x31], rdi
jne 0x14015d4a0
cmp byte [rbp + 0x6f], 0
je 0x14015d64b
mov rcx, qword ds:[rbp - 0x39]
test rcx, rcx
je 0x14015d64b
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
and esi, 0xf
shl rcx, 4
add rsi, rcx
shr rsi, 1
jmp 0x14015d550
mov r12, qword ds:[r12]
cmp r12, qword [rbp + 0x7f]
jne 0x14015d4e0
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
nop
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
jmp 0x14015d61f
mov rdi, qword [rbp - 0x31]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
jmp 0x14015d623