Function at 0x14003590c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov eax, dword [rcx]
xor r14d, r14d
mov qword [rsp + 0x38], r8
mov r13, rdx
mov rsi, rcx
mov r15d, 1
test eax, eax
jne 0x140035994
lock cmpxchg dword [rcx], r15d
jne 0x140035994
lea eax, [r15 + 1]
xchg dword [rcx], eax
mov rcx, qword [0x14007c638]
test rcx, rcx
je 0x140035994
mov rax, qword [rcx]
movabs r10, 0x88152eea7ad06070
mov rax, qword [rax]
lea rdx, str.CDirectory
mov r8, rsi
call qword [case.0x1400569a6.0]
mov dword [rsi + 4], eax
jmp 0x140035994
call qword [sym.imp.ntdll.dll_NtYieldExecution]
nop dword [rax + rax]
test eax, eax
js 0x140035cd7
mov eax, dword [rsi]
cmp eax, 2
jne 0x140035980
mov rcx, qword gs:[0x60]
lea r8d, [rax + 0x6e]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140035c73
mov qword [rbx + 0x28], r14
lea rax, [0x14005d1f0]
mov qword [rbx], rax
lea rdx, [rbx + 0x50]
mov dword [rbx + 8], r14d
lea rax, [0x14005d938]
mov qword [rbx], rax
xorps xmm0, xmm0
mov byte [rbx + 0x30], r14b
lea rax, [0x14005d5a0]
mov qword [rbx + 0x20], rax
mov r12b, r14b
mov qword [rbx + 0x38], r14
xor eax, eax
mov qword [rbx + 0x40], r14
mov qword [rbx + 0x48], r14
mov qword [rbx + 0x50], r14
movups xmmword [rbx + 0x58], xmm0
mov qword [rbx + 0x68], rax
mov rcx, qword [r13]
call fcn.140035048
mov edi, eax
test eax, eax
js 0x140035cb2
mov rcx, qword [r13]
lea rdx, [rbx + 0x28]
call fcn.14003aac8
mov edi, eax
test eax, eax
js 0x140035cb2
lea r14, [r13 + 0x28]
cmp qword [r14], 0
ja 0x140035a4a
int3
mov rdx, qword [r14]
test rdx, rdx
je 0x140035ab1
mov rax, qword [r14 + 0x10]
mov rcx, rdx
shr rcx, 1
cmp word [rax + rcx*2 - 2], 0x5c
je 0x140035ab4
mov rax, rdx
not rax
cmp rax, 2
jae 0x140035ab1
lea rax, str.onecore_basewcp_sildirectory.cpp
mov dword [rbp - 0x69], 0x2d
mov qword [rbp - 0x79], rax
lea rcx, [rbp - 0x79]
lea rax, str.Windows::Rtl::SystemImplementation::CDirectory::Initialize
mov r8d, 0xc0000095
mov qword [rbp - 0x71], rax
lea rax, str.__SIZE_T___SIZE_T_0_____Source.Name.Length___sizeof_WCHAR_
mov qword [rbp - 0x61], rax
call fcn.140052a48
mov edi, 0xc0000095
jmp 0x140035cb2
mov r12b, r15b
movzx eax, r12b
lea r15, [rbx + 0x58]
cmp qword [r15 + 0x10], 0
lea rdx, [rdx + rax*2]
je 0x140035ac8
int3
mov r8, r15
call fcn.140052378
mov edi, eax
test eax, eax
jns 0x140035b0f
lea rax, str.onecore_basewcp_sildirectory.cpp
mov dword [rbp - 0x49], 0x33
mov qword [rbp - 0x59], rax
lea rcx, [rbp - 0x59]
lea rax, str.Windows::Rtl::SystemImplementation::CDirectory::Initialize
mov qword [rbp - 0x51], rax
lea rax, str.m_Name.Allocate__Source.Name.Length___fAddBackslash___sizeof_WCHAR__:_0__
mov qword [rbp - 0x41], rax
mov r8d, edi
call fcn.140052a48
jmp 0x140035cb2
mov rdx, r15
mov rcx, r14
call fcn.140051420
xor r14d, r14d
mov edi, eax
test eax, eax
jns 0x140035b51
lea rax, str.onecore_basewcp_sildirectory.cpp
mov dword [rbp - 0x29], 0x37
mov qword [rbp - 0x39], rax
lea rcx, [rbp - 0x39]
lea rax, str.Windows::Rtl::SystemImplementation::CDirectory::Initialize
mov qword [rbp - 0x31], rax
lea rax, str.RtlCopyLUnicodeString__Source.Name__m_Name.GetMutablePointer___
mov qword [rbp - 0x21], rax
jmp 0x140035b02
test r12b, r12b
je 0x140035b63
mov rcx, r15
call fcn.140049618
test eax, eax
jns 0x140035b63
int3
lea rcx, [rbx + 0x20]
mov rdx, r13
call fcn.14003b5a0
mov edi, eax
test eax, eax
js 0x140035cb2
mov qword [rbx + 0x10], rbx
xor edx, edx
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 0x140035c35
mov qword [rax + 8], r14
lea rax, [0x14005d260]
mov qword [rdi], rax
lea rax, [0x14005d758]
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 0x140035c1c
mov rax, qword [rcx]
movabs r10, 0x9b8c3faa10d2f170
mov r8d, dword [rsi + 4]
lea rdx, str.CDirectory
mov rax, qword [rax + 0x10]
mov r9d, 0x70
mov byte [rsp + 0x20], 1
call qword [case.0x1400569a6.0]
mov rax, qword [rsp + 0x38]
add rdi, 0x10
cmp qword [rax], r14
je 0x140035c2b
int3
mov qword [rax], rdi
xor eax, eax
jmp 0x140035cd7
lea rax, str.onecoreinternalBaseinc_rtl_object_library.h
mov dword [rbp - 9], 0x1dc
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x19]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_Windows::Rtl::SystemImplementation::CDirectory_::CreateInstance
mov r8d, 0xc0000017
mov qword [rbp - 0x11], rax
lea rax, str.NewTearoff.Allocate__
mov qword [rbp - 1], rax
call fcn.140052a48
mov edi, 0xc0000017
jmp 0x140035cb7
lea rax, str.onecoreinternalBaseinc_rtl_object_library.h
mov dword [rbp + 0x17], 0x1cb
mov qword [rbp + 7], rax
lea rcx, [rbp + 7]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_Windows::Rtl::SystemImplementation::CDirectory_::CreateInstance
mov r8d, 0xc0000017
mov qword [rbp + 0xf], rax
lea rax, str.NewInstance.Allocate__
mov qword [rbp + 0x1f], rax
call fcn.140052a48
mov edi, 0xc0000017
mov rbx, r14
test rbx, rbx
je 0x140035cd5
mov r8, qword [rbx]
movabs r10, 0xe2b896ea10d7a870
mov rax, qword [r8]
mov edx, 1
mov rcx, rbx
call qword [case.0x1400569a6.0]
mov eax, edi
mov rbx, qword [rsp + 0x138]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret