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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x140078140]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov eax, dword [rcx]
mov rsi, rcx
and dword [rbp + 0x1f], 0
mov r15, r8
mov ecx, 1
test eax, eax
jne 0x140034b05
lock cmpxchg dword [rsi], ecx
jne 0x140034b05
lea eax, [rcx + 1]
xchg dword [rsi], eax
mov rcx, qword [0x1400786e8]
test rcx, rcx
je 0x140034b05
mov rax, qword [rcx]
lea rdx, str.CRtlTransactionCoordinator
mov r8, rsi
mov rax, qword [rax]
call qword [case.0x1400532ec.0]
mov dword [rsi + 4], eax
jmp 0x140034b05
call qword [sym.imp.ntdll.dll_NtYieldExecution]
nop dword [rax + rax]
test eax, eax
js 0x140034b72
mov eax, dword [rsi]
cmp eax, 2
jne 0x140034af5
xor eax, eax
test eax, eax
js 0x140034cc3
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
lea r8d, [rdx + 0x70]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140034b77
lea rax, [0x1400591d8]
mov byte [rbx + 0x68], 0
mov qword [rbx], rax
lea rax, [0x140059ac0]
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
mov dword [rbx + 8], 0
jmp 0x140034b79
mov dword [rbp + 0x23], eax
jmp 0x140034b0e
xor ebx, ebx
test rbx, rbx
jne 0x140034baf
lea rax, str.onecoreinternal_baseinc_rtl_object_library.h
mov dword [rbp - 0x31], 0x1c9
mov qword [rbp - 0x41], rax
lea rcx, [rbp - 0x41]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_Windows::Rtl::SystemImplementation::CRtlTransactionCoordinator_::CreateInstance
mov qword [rbp - 0x39], rax
lea rax, str.NewInstance.Allocate__
mov qword [rbp - 0x29], rax
jmp 0x140034c98
cmp byte [rbx + 0x68], 0
jne 0x140034d3d
lea rcx, [rbx + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitializeCriticalSection]
nop dword [rax + rax]
test eax, eax
mov edi, eax
setns al
mov byte [rbx + 0x68], al
test edi, edi
jns 0x140034c10
lea rax, str.onecore_basewcp_sil_transactions.cpp
mov dword [rbp - 0x11], 0x15
mov qword [rbp - 0x21], rax
lea rcx, [rbp - 0x21]
lea rax, str.Windows::Rtl::SystemImplementation::CRtlTransactionCoordinator::Initialize
mov dword [rbp + 0x27], edi
mov qword [rbp - 0x19], rax
mov r8d, edi
lea rax, str.m_ThreadTransactionsLock.Initialize__
mov qword [rbp - 9], rax
call fcn.14004f4fc
jmp 0x140034c12
xor edi, edi
test edi, edi
js 0x140034ca8
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 0x140034c65
and qword [rax + 8], 0
lea rax, [0x140059248]
mov qword [rdi], rax
lea rax, [0x140059af0]
mov qword [rdi + 0x10], rax
jmp 0x140034c67
xor edi, edi
test rdi, rdi
jne 0x140034ce7
lea rax, str.onecoreinternal_baseinc_rtl_object_library.h
mov dword [rbp + 0xf], 0x1da
mov qword [rbp - 1], rax
lea rcx, [rbp - 1]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_Windows::Rtl::SystemImplementation::CRtlTransactionCoordinator_::CreateInstance
mov qword [rbp + 7], rax
lea rax, str.NewTearoff.Allocate__
mov qword [rbp + 0x17], rax
mov r8d, 0xc0000017
call fcn.14004f4fc
mov edi, 0xc0000017
test rbx, rbx
je 0x140034cc1
mov rdx, qword [rbx]
mov rcx, rbx
mov rax, qword [rdx]
mov edx, 1
call qword [case.0x1400532ec.0]
mov eax, edi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140058110
mov rbx, qword [rsp + 0xe8]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov qword [rdi + 8], rbx
mov rcx, rbx
mov rax, qword [rbx]
mov rax, qword [rax + 8]
call qword [case.0x1400532ec.0]
mov rcx, qword [0x1400786e8]
test rcx, rcx
je 0x140034d2a
mov rax, qword [rcx]
lea rdx, str.CRtlTransactionCoordinator
mov r8d, dword [rsi + 4]
mov r9d, 0x70
mov byte [rsp + 0x20], 1
mov rax, qword [rax + 0x10]
call qword [case.0x1400532ec.0]
add rdi, 0x10
cmp qword [r15], 0
je 0x140034d35
int3
mov eax, dword [rbp + 0x1f]
mov qword [r15], rdi
jmp 0x140034cc3
mov ecx, 0xc00000e5
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop dword [rax + rax]
int3