Function at 0x14004643c
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
mov rax, qword [0x140085080]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov eax, dword [rcx]
mov r15, r8
mov r14, rdx
mov rdi, rcx
mov esi, 1
test eax, eax
jne 0x1400464c5
lock cmpxchg dword [rcx], esi
jne 0x1400464c5
lea eax, [rsi + 1]
xchg dword [rcx], eax
mov rcx, qword [0x140085648]
test rcx, rcx
je 0x1400464c5
mov rax, qword [rcx]
movabs r10, 0x88152eea7ad06070
mov rax, qword [rax]
lea rdx, str.CEnumDirectoryEntries
mov r8, rdi
call qword [case.0x14005dcc6.0]
mov dword [rdi + 4], eax
jmp 0x1400464c5
call qword [sym.imp.ntdll.dll_NtYieldExecution]
nop dword [rax + rax]
test eax, eax
js 0x1400467ea
mov eax, dword [rdi]
cmp eax, 2
jne 0x1400464b1
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, 0x90
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400467ae
and qword [rbx + 0x40], 0
lea rax, [0x1400651f0]
and qword [rbx + 0x50], 0
lea rdx, [rbx + 0x40]
and qword [rbx + 0x58], 0
xorps xmm0, xmm0
mov qword [rbx], rax
lea rax, [0x140065cf8]
mov qword [rbx], rax
lea rax, [rbx + 0x20]
and qword [rax + 0x18], 0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
xor eax, eax
mov byte [rbx + 0x48], 0
mov dword [rbx + 8], 0
movups xmmword [rbx + 0x60], xmm0
movups xmmword [rbx + 0x70], xmm0
mov qword [rbx + 0x80], rax
mov word [rbx + 0x88], si
mov rcx, qword [r14 + 8]
call fcn.14003ab6c
mov esi, eax
test eax, eax
js 0x140046665
mov rcx, qword [rbx + 0x40]
lea rdx, [rbx + 0x48]
mov rax, qword [rcx]
movabs r10, 0x85b8af5276569b70
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
mov r8, qword [r14 + 0x10]
mov rax, qword [rax + 0x28]
mov dword [rsp + 0x28], 0x100001
mov qword [rsp + 0x20], rdx
or rdx, 0xffffffffffffffff
mov r9, rdx
call qword [case.0x14005dcc6.0]
mov esi, eax
test eax, eax
js 0x140046665
lea rdx, [rbx + 0x70]
lea rcx, [r14 + 0x18]
call fcn.14005876c
mov esi, eax
test eax, eax
jns 0x1400465f9
lea rax, [0x140079bf0]
mov dword [rbp - 0x61], 0x35
mov qword [rbp - 0x71], rax
lea rcx, [rbp - 0x71]
lea rax, str.Windows::Rtl::SystemImplementation::CEnumDirectoryEntries::Initialize
mov qword [rbp - 0x69], rax
lea rax, str.RtlDuplicateLUnicodeString__Source.DirectoryName__m_DirectoryName.GetMutablePointer___
mov qword [rbp - 0x59], rax
jmp 0x14004665d
mov rcx, qword [r14 + 0x30]
test rcx, rcx
je 0x14004668a
lea rdx, [rbp + 0xf]
call fcn.14003492c
mov esi, eax
test eax, eax
js 0x140046665
lea r8, [rbx + 0x60]
xor ecx, ecx
lea rdx, [rbp + 0xf]
call qword [sym.imp.ntdll.dll_RtlDuplicateUnicodeString]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jns 0x14004668a
lea rax, [0x140079bf0]
mov dword [rbp - 0x41], 0x42
mov qword [rbp - 0x51], rax
lea rcx, [rbp - 0x51]
lea rax, str.Windows::Rtl::SystemImplementation::CEnumDirectoryEntries::Initialize
mov qword [rbp - 0x49], rax
lea rax, str.RtlDuplicateUnicodeString__0__Filter__m_Filter.GetMutablePointer___
mov qword [rbp - 0x39], rax
mov r8d, esi
call fcn.140059c64
mov r8, qword [rbx]
movabs r10, 0xe2b896ea10d7a870
mov rax, qword [r8]
mov edx, 1
mov rcx, rbx
call qword [case.0x14005dcc6.0]
mov eax, esi
jmp 0x1400467ea
mov al, byte [r14]
xor edx, edx
mov qword [rbx + 0x10], rbx
and al, 1
mov byte [rbx + 0x89], al
mov qword [rbx + 0x18], rdi
mov rcx, qword gs:[0x60]
lea r8d, [rdx + 0x18]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140046757
and qword [rax + 8], 0
lea rax, [0x140065260]
mov qword [rsi], rax
lea rax, [0x140065cc8]
mov qword [rsi + 0x10], rax
mov qword [rsi + 8], rbx
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
movabs r10, 0x9b149f3f3ade7270
mov rcx, rbx
call qword [case.0x14005dcc6.0]
mov rcx, qword [0x140085648]
test rcx, rcx
je 0x140046739
mov rax, qword [rcx]
movabs r10, 0x9b8c3faa10d2f170
mov r8d, dword [rdi + 4]
lea rdx, str.CEnumDirectoryEntries
mov rax, qword [rax + 0x10]
mov r9d, 0x90
mov byte [rsp + 0x20], 1
call qword [case.0x14005dcc6.0]
lea rax, [rsi + 0x10]
neg rsi
sbb rcx, rcx
and rcx, rax
cmp qword [r15], 0
je 0x14004674d
int3
mov qword [r15], rcx
xor eax, eax
jmp 0x1400467ea
lea rax, str.onecoreinternalBaseinc_rtl_object_library.h
mov dword [rbp - 0x21], 0x1dc
mov qword [rbp - 0x31], rax
lea rcx, [rbp - 0x31]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_Windows::Rtl::SystemImplementation::CEnumDirectoryEntries_::CreateInstance
mov r8d, 0xc0000017
mov qword [rbp - 0x29], rax
lea rax, str.NewTearoff.Allocate__
mov qword [rbp - 0x19], rax
call fcn.140059c64
mov rax, qword [rbx]
movabs r10, 0xe2b896ea10d7a870
mov rax, qword [rax]
mov edx, 1
mov rcx, rbx
call qword [case.0x14005dcc6.0]
jmp 0x1400467e5
lea rax, str.onecoreinternalBaseinc_rtl_object_library.h
mov dword [rbp - 1], 0x1cb
mov qword [rbp - 0x11], rax
lea rcx, [rbp - 0x11]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_Windows::Rtl::SystemImplementation::CEnumDirectoryEntries_::CreateInstance
mov r8d, 0xc0000017
mov qword [rbp - 9], rax
lea rax, str.NewInstance.Allocate__
mov qword [rbp + 7], rax
call fcn.140059c64
mov eax, 0xc0000017
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140063da0
add rsp, 0xf0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret