Function at 0x14002d178
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, 0x90
mov rax, qword [0x140085080]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov eax, dword [rcx]
xor r13d, r13d
mov rdi, rcx
mov r12, r8
mov r14, rdx
mov ecx, 1
test eax, eax
jne 0x14002d209
lock cmpxchg dword [rdi], ecx
jne 0x14002d209
lea eax, [rcx + 1]
xchg dword [rdi], eax
mov rcx, qword [0x140085648]
test rcx, rcx
je 0x14002d209
mov rax, qword [rcx]
movabs r10, 0x88152eea7ad06070
mov rax, qword [rax]
lea rdx, str.CSystemIsolationLayer
mov r8, rdi
call qword [case.0x14005dcc6.0]
mov dword [rdi + 4], eax
jmp 0x14002d209
call qword [sym.imp.ntdll.dll_NtYieldExecution]
nop dword [rax + rax]
test eax, eax
js 0x14002d560
mov eax, dword [rdi]
cmp eax, 2
jne 0x14002d1f5
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, 0x88
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14002d524
lea rcx, [rax + 8]
xor edx, edx
mov r8d, 0x80
call sub.ntdll.dll_memset
lea rax, [0x1400651f0]
mov qword [rbx + 0x20], r13
mov qword [rbx], rax
lea rcx, [0x1400857a0]
lea rax, [0x140065360]
mov dword [rbx + 8], r13d
mov qword [rbx], rax
mov qword [rbx + 0x28], r13
mov qword [rbx + 0x30], r13
mov qword [rbx + 0x38], r13
mov qword [rbx + 0x40], r13
mov byte [rbx + 0x48], r13b
mov qword [rbx + 0x50], r13
mov qword [rbx + 0x58], r13
mov qword [rbx + 0x60], r13
mov qword [rbx + 0x68], r13
mov qword [rbx + 0x70], r13
mov qword [rbx + 0x78], r13
mov dword [rbx + 0x80], r13d
call fcn.14005fcc8
lea rdx, [rbx + 0x28]
cmp qword [rdx], r13
jne 0x14002d512
cmp qword [rbx + 0x30], r13
jne 0x14002d512
cmp qword [rbx + 0x38], r13
jne 0x14002d512
mov rcx, qword [r14]
call fcn.14003ab6c
mov esi, eax
test eax, eax
js 0x14002d37b
mov rcx, qword [r14 + 8]
lea rdx, [rbx + 0x30]
call fcn.14003ac1c
mov esi, eax
test eax, eax
js 0x14002d37b
mov rcx, qword [r14 + 0x10]
mov qword [rbp + 0xf], r13
mov rax, qword [rcx]
movabs r10, 0xb94c27ff5c553b70
mov rax, qword [rax + 8]
lea r8, [rbp + 0xf]
lea rdx, [0x140073460]
call qword [case.0x14005dcc6.0]
mov esi, eax
test eax, eax
js 0x14002d341
mov rax, qword [rbp + 0xf]
test rax, rax
jne 0x14002d333
mov esi, 0xc00002b9
jmp 0x14002d37b
mov rcx, qword [rbx + 0x38]
mov qword [rbp + 0xf], rcx
mov qword [rbx + 0x38], rax
jmp 0x14002d345
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x14002d364
mov qword [rbp + 0xf], r13
mov rax, qword [rcx]
movabs r10, 0xaaa4b7fc7cd10a70
mov rax, qword [rax]
call qword [case.0x14005dcc6.0]
test esi, esi
js 0x14002d37b
mov rcx, qword [r14 + 0x18]
lea rdx, [rbx + 0x40]
call fcn.14003accc
mov esi, eax
test eax, eax
jns 0x14002d3a0
mov r8, qword [rbx]
movabs r10, 0xe2b896ea10d7a870
mov rax, qword [r8]
mov edx, 1
mov rcx, rbx
call qword [case.0x14005dcc6.0]
mov eax, esi
jmp 0x14002d560
mov al, byte [r14 + 0x20]
mov byte [rbx + 0x48], al
mov eax, dword [r14 + 0x24]
mov dword [rbx + 0x80], eax
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14002d3d5
call qword [sym.imp.ntdll.dll_LdrUnloadDll]
nop dword [rax + rax]
test eax, eax
jns 0x14002d3d1
mov ecx, 7
int 0x29
mov qword [rbx + 0x20], r13
mov rax, qword [r14 + 0x28]
mov qword [r14 + 0x28], r13
cmp qword [rbx + 0x20], r13
je 0x14002d3f5
mov ecx, 0xc00000e5
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop dword [rax + rax]
int3
mov qword [rbx + 0x20], rax
xor edx, edx
mov qword [rbx + 0x10], rbx
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 0x14002d4bb
mov qword [rax + 8], r13
lea rax, [0x140065260]
mov qword [rsi], rax
lea rax, [0x140065390]
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 0x14002d49c
mov rax, qword [rcx]
movabs r10, 0x9b8c3faa10d2f170
mov r8d, dword [rdi + 4]
lea rdx, str.CSystemIsolationLayer
mov rax, qword [rax + 0x10]
mov r9d, 0x88
mov byte [rsp + 0x20], 1
call qword [case.0x14005dcc6.0]
lea rax, [rsi + 0x10]
neg rsi
sbb rcx, rcx
and rcx, rax
cmp qword [r12], r13
je 0x14002d4b0
int3
mov qword [r12], rcx
xor eax, eax
jmp 0x14002d560
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::CSystemIsolationLayer_::CreateInstance
mov r8d, 0xc0000017
mov qword [rbp - 0x29], rax
lea rax, str.NewTearoff.Allocate__
mov qword [rbp - 0x19], 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 0x14002d55b
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 - 1], 0x1cb
mov qword [rbp - 0x11], rax
lea rcx, [rbp - 0x11]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_Windows::Rtl::SystemImplementation::CSystemIsolationLayer_::CreateInstance
mov r8d, 0xc0000017
mov qword [rbp - 9], rax
lea rax, str.NewInstance.Allocate__
mov qword [rbp + 7], rax
call fcn.140059c64
mov eax, 0xc0000017
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140063da0
mov rbx, qword [rsp + 0xe8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret