Function at 0x14003b3fc
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 rsi, rcx
mov r15, rdx
mov ecx, 1
test eax, eax
jne 0x14003b481
lock cmpxchg dword [rsi], ecx
jne 0x14003b481
lea eax, [rcx + 1]
xchg dword [rsi], eax
mov rcx, qword [0x140085648]
test rcx, rcx
je 0x14003b481
mov rax, qword [rcx]
movabs r10, 0x88152eea7ad06070
mov rax, qword [rax]
lea rdx, str.CDirectory
mov r8, rsi
call qword [case.0x14005dcc6.0]
mov dword [rsi + 4], eax
jmp 0x14003b481
call qword [sym.imp.ntdll.dll_NtYieldExecution]
nop dword [rax + rax]
test eax, eax
js 0x14003b7f3
mov eax, dword [rsi]
cmp eax, 2
jne 0x14003b46d
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 0x14003b7b7
mov qword [rbx + 0x28], r14
lea rax, [0x1400651f0]
mov qword [rbx], rax
lea rdx, [rbx + 0x50]
mov dword [rbx + 8], r14d
lea rax, [0x140065960]
mov qword [rbx], rax
xorps xmm0, xmm0
mov byte [rbx + 0x30], r14b
lea rax, [0x1400655b8]
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 [r15]
call fcn.14003ab6c
mov edi, eax
test eax, eax
js 0x14003b674
mov rcx, qword [r15]
lea rdx, [rbx + 0x28]
call fcn.140040a48
mov edi, eax
test eax, eax
js 0x14003b674
mov rdx, qword [r15 + 0x28]
test rdx, rdx
jne 0x14003b545
mov ecx, 0xc00000e5
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop dword [rax + rax]
int3
mov rax, qword [r15 + 0x38]
mov rcx, rdx
shr rcx, 1
cmp word [rax + rcx*2 - 2], 0x5c
je 0x14003b5a7
mov rax, rdx
not rax
cmp rax, 2
jae 0x14003b5a4
lea rax, str.onecore_basewcp_sildirectory.cpp
mov dword [rbp - 0x69], 0x2e
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.140059c64
mov edi, 0xc0000095
jmp 0x14003b674
mov r12b, 1
movzx eax, r12b
lea r14, [rbx + 0x58]
cmp qword [r14 + 0x10], 0
lea rdx, [rdx + rax*2]
je 0x14003b5bb
int3
mov r8, r14
call fcn.14005959c
mov edi, eax
test eax, eax
jns 0x14003b5ff
lea rax, str.onecore_basewcp_sildirectory.cpp
mov dword [rbp - 0x49], 0x34
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.140059c64
jmp 0x14003b674
mov rdx, r14
lea rcx, [r15 + 0x28]
call fcn.140058644
mov edi, eax
test eax, eax
jns 0x14003b63f
lea rax, str.onecore_basewcp_sildirectory.cpp
mov dword [rbp - 0x29], 0x38
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 0x14003b5f5
test r12b, r12b
je 0x14003b662
mov rcx, r14
call fcn.140050634
test eax, eax
jns 0x14003b662
mov ecx, 0xc00000e5
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop dword [rax + rax]
int3
lea rcx, [rbx + 0x20]
mov rdx, r15
call fcn.140041560
mov edi, eax
test eax, eax
jns 0x14003b699
mov r8, qword [rbx]
movabs r10, 0xe2b896ea10d7a870
mov rax, qword [r8]
mov edx, 1
mov rcx, rbx
call qword [case.0x14005dcc6.0]
mov eax, edi
jmp 0x14003b7f3
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 0x14003b760
and qword [rax + 8], 0
lea rax, [0x140065260]
mov qword [rdi], rax
lea rax, [0x140065778]
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.0x14005dcc6.0]
mov rcx, qword [0x140085648]
test rcx, rcx
je 0x14003b73d
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.0x14005dcc6.0]
lea rax, [rdi + 0x10]
neg rdi
sbb rcx, rcx
and rcx, rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14003b756
int3
mov qword [rax], rcx
xor eax, eax
jmp 0x14003b7f3
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.140059c64
mov rax, qword [rbx]
movabs r10, 0xe2b896ea10d7a870
mov rax, qword [rax]
mov edx, 1
mov rcx, rbx
call qword [case.0x14005dcc6.0]
jmp 0x14003b7ee
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.140059c64
mov eax, 0xc0000017
mov rbx, qword [rsp + 0x138]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret