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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov eax, dword [rcx]
mov r15, r8
mov rdi, rcx
mov r13d, 1
test eax, eax
jne 0x14003cb82
lock cmpxchg dword [rcx], r13d
jne 0x14003cb82
lea eax, [r13 + 1]
xchg dword [rcx], eax
mov rcx, qword [0x140085648]
test rcx, rcx
je 0x14003cb82
mov rax, qword [rcx]
movabs r10, 0x88152eea7ad06070
mov rax, qword [rax]
lea rdx, str.CRtlTransactionCoordinator
mov r8, rdi
call qword [case.0x14005dcc6.0]
mov dword [rdi + 4], eax
jmp 0x14003cb82
call qword [sym.imp.ntdll.dll_NtYieldExecution]
nop dword [rax + rax]
test eax, eax
js 0x14003cdcb
mov eax, dword [rdi]
cmp eax, 2
jne 0x14003cb6e
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 0x14003cd8f
lea rcx, [rbx + 0x20]
mov byte [rbx + 0x68], 0
and qword [rcx + 0x18], 0
lea rax, [0x1400651f0]
mov qword [rbx], rax
lea rax, [0x140065be8]
mov qword [rbx], rax
mov dword [rbx + 8], 0
mov qword [rcx], rcx
mov qword [rcx + 8], rcx
mov qword [rcx + 0x10], rcx
cmp byte [rbx + 0x68], 0
jne 0x14003cd7d
lea rcx, [rbx + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitializeCriticalSection]
nop dword [rax + rax]
test eax, eax
mov esi, eax
setns al
mov byte [rbx + 0x68], al
test esi, esi
jns 0x14003cc66
lea rax, str.onecore_basewcp_sil_transactions.cpp
mov dword [rbp - 0x21], 0x15
mov qword [rbp - 0x31], rax
lea rcx, [rbp - 0x31]
lea rax, str.Windows::Rtl::SystemImplementation::CRtlTransactionCoordinator::Initialize
mov r8d, esi
mov qword [rbp - 0x29], rax
lea rax, str.m_ThreadTransactionsLock.Initialize__
mov qword [rbp - 0x19], rax
call fcn.140059c64
mov rcx, qword [rbx]
mov rax, qword [rcx]
movabs r10, 0xe2b896ea10d7a870
mov edx, r13d
mov rcx, rbx
call qword [case.0x14005dcc6.0]
mov eax, esi
jmp 0x14003cdcb
mov qword [rbx + 0x10], rbx
xor edx, edx
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 0x14003cd28
and qword [rax + 8], 0
lea rax, [0x140065260]
mov qword [rsi], rax
lea rax, [0x140065c18]
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 0x14003cd0a
mov rax, qword [rcx]
movabs r10, 0x9b8c3faa10d2f170
mov r8d, dword [rdi + 4]
lea rdx, str.CRtlTransactionCoordinator
mov rax, qword [rax + 0x10]
mov r9d, 0x70
mov byte [rsp + 0x20], r13b
call qword [case.0x14005dcc6.0]
lea rax, [rsi + 0x10]
neg rsi
sbb rcx, rcx
and rcx, rax
cmp qword [r15], 0
je 0x14003cd1e
int3
mov qword [r15], rcx
xor eax, eax
jmp 0x14003cdcb
lea rax, str.onecoreinternalBaseinc_rtl_object_library.h
mov dword [rbp - 1], 0x1dc
mov qword [rbp - 0x11], rax
lea rcx, [rbp - 0x11]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_Windows::Rtl::SystemImplementation::CRtlTransactionCoordinator_::CreateInstance
mov r8d, 0xc0000017
mov qword [rbp - 9], rax
lea rax, str.NewTearoff.Allocate__
mov qword [rbp + 7], rax
call fcn.140059c64
mov rax, qword [rbx]
movabs r10, 0xe2b896ea10d7a870
mov rax, qword [rax]
mov edx, r13d
mov rcx, rbx
call qword [case.0x14005dcc6.0]
jmp 0x14003cdc6
mov ecx, 0xc00000e5
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop dword [rax + rax]
int3
lea rax, str.onecoreinternalBaseinc_rtl_object_library.h
mov dword [rbp + 0x1f], 0x1cb
mov qword [rbp + 0xf], rax
lea rcx, [rbp + 0xf]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_Windows::Rtl::SystemImplementation::CRtlTransactionCoordinator_::CreateInstance
mov r8d, 0xc0000017
mov qword [rbp + 0x17], rax
lea rax, str.NewInstance.Allocate__
mov qword [rbp + 0x27], rax
call fcn.140059c64
mov eax, 0xc0000017
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret