Function at 0x14003fe20
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 [0x14007c080]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov eax, dword [rcx]
mov r15, r8
mov r14, rdx
mov rsi, rcx
mov r12d, 1
test eax, eax
jne 0x14003fead
lock cmpxchg dword [rcx], r12d
jne 0x14003fead
lea eax, [r12 + 1]
xchg dword [rcx], eax
mov rcx, qword [0x14007c638]
test rcx, rcx
je 0x14003fead
mov rax, qword [rcx]
movabs r10, 0x88152eea7ad06070
mov rax, qword [rax]
lea rdx, [0x14006f018]
mov r8, rsi
call qword [case.0x1400569a6.0]
mov dword [rsi + 4], eax
jmp 0x14003fead
call qword [sym.imp.ntdll.dll_NtYieldExecution]
nop dword [rax + rax]
test eax, eax
js 0x1400401b7
mov eax, dword [rsi]
cmp eax, 2
jne 0x14003fe99
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 0x140040156
and qword [rbx + 0x40], 0
lea rax, [0x14005d1f0]
and qword [rbx + 0x50], 0
lea rdx, [rbx + 0x40]
and qword [rbx + 0x58], 0
xorps xmm0, xmm0
mov qword [rbx], rax
lea rax, [0x14005dcd0]
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], r12w
mov rcx, qword [r14 + 8]
call fcn.140035048
mov edi, eax
test eax, eax
js 0x140040194
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.0x1400569a6.0]
mov edi, eax
test eax, eax
js 0x140040194
lea rdx, [rbx + 0x70]
lea rcx, [r14 + 0x18]
call fcn.140051548
mov edi, eax
test eax, eax
jns 0x14003ffe2
lea rax, [0x140071630]
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 0x140040046
mov rcx, qword [r14 + 0x30]
test rcx, rcx
je 0x140040053
lea rdx, [rbp + 0xf]
call fcn.14002f78c
mov edi, eax
test eax, eax
js 0x140040194
lea r8, [rbx + 0x60]
xor ecx, ecx
lea rdx, [rbp + 0xf]
call qword [sym.imp.ntdll.dll_RtlDuplicateUnicodeString]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x140040053
lea rax, [0x140071630]
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, edi
call fcn.140052a48
jmp 0x140040194
mov al, byte [r14]
xor edx, edx
mov qword [rbx + 0x10], rbx
and al, r12b
mov byte [rbx + 0x89], al
mov qword [rbx + 0x18], rsi
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 rdi, rax
test rax, rax
je 0x140040118
and qword [rax + 8], 0
lea rax, [0x14005d260]
mov qword [rdi], rax
lea rax, [0x14005dca0]
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], rbx
mov rcx, qword [rbx]
mov rax, qword [rcx + 8]
movabs r10, 0x9b149f3f3ade7270
mov rcx, rbx
call qword [case.0x1400569a6.0]
mov rcx, qword [0x14007c638]
test rcx, rcx
je 0x140040103
mov rax, qword [rcx]
movabs r10, 0x9b8c3faa10d2f170
mov r8d, dword [rsi + 4]
lea rdx, [0x14006f018]
mov rax, qword [rax + 0x10]
mov r9d, 0x90
mov byte [rsp + 0x20], r12b
call qword [case.0x1400569a6.0]
add rdi, 0x10
cmp qword [r15], 0
je 0x14004010e
int3
mov qword [r15], rdi
xor eax, eax
jmp 0x1400401b7
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.140052a48
mov edi, 0xc0000017
jmp 0x140040199
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.140052a48
xor ebx, ebx
mov edi, 0xc0000017
test rbx, rbx
je 0x1400401b5
mov r8, qword [rbx]
movabs r10, 0xe2b896ea10d7a870
mov rax, qword [r8]
mov edx, r12d
mov rcx, rbx
call qword [case.0x1400569a6.0]
mov eax, edi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14005cab0
add rsp, 0xf0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret