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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x1401a7d98]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov eax, dword [rcx]
mov rsi, rcx
and dword [rbp + 0x23], 0
mov r15, r8
mov r14, rdx
mov ecx, 1
test eax, eax
jne 0x1400991c8
lock cmpxchg dword [rsi], ecx
jne 0x1400991c8
lea eax, [rcx + 1]
xchg dword [rsi], eax
mov rcx, qword [0x1401a9f18]
test rcx, rcx
je 0x1400991c8
mov rax, qword [rcx]
lea rdx, str.CRtlDefinitionAppId
mov r8, rsi
mov rax, qword [rax]
call qword [case.0x14010a1e6.0]
mov dword [rsi + 4], eax
jmp 0x1400991c8
call qword [0x1401775d0]
nop dword [rax + rax]
test eax, eax
js 0x14009924f
mov eax, dword [rsi]
cmp eax, 2
jne 0x1400991b4
xor eax, eax
test eax, eax
js 0x1400993d9
mov rax, qword gs:[0x60]
xor edx, edx
mov r8d, 0x98
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140099257
xorps xmm0, xmm0
lea rax, [0x14012c7b8]
mov qword [rbx], rax
lea rax, [0x14012d1e0]
mov dword [rbx + 8], 0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
and qword [rbx + 0x50], 0
and qword [rbx + 0x60], 0
and qword [rbx + 0x68], 0
mov qword [rbx], rax
lea rax, [0x14012d1a8]
mov qword [rbx + 0x90], rax
mov byte [rbx + 0x58], 0
jmp 0x140099259
mov dword [rbp + 0x27], eax
jmp 0x1400991d1
xor ebx, ebx
test rbx, rbx
jne 0x14009928f
lea rax, str.onecoreinternal_baseinc_rtl_object_library.h
mov dword [rbp - 0x11], 0x1c9
mov qword [rbp - 0x21], rax
lea rcx, [rbp - 0x21]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_AppId_Implementation::CRtlDefinitionAppId_::CreateInstance
mov qword [rbp - 0x19], rax
lea rax, str.NewInstance.Allocate__
mov qword [rbp - 9], rax
jmp 0x140099358
mov rdx, qword [r14]
mov rcx, rbx
call fcn.140097c24
mov edi, eax
test eax, eax
jns 0x1400992a5
mov dword [rbp + 0x1f], eax
jmp 0x1400992d2
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.140097b84
mov edi, eax
test eax, eax
js 0x1400992a0
mov rdx, qword [r14 + 8]
mov rcx, rbx
call fcn.14009a578
mov edi, eax
test eax, eax
js 0x1400992a0
mov al, byte [r14 + 0x18]
xor edi, edi
mov byte [rbx + 0x58], al
test edi, edi
js 0x140099368
mov qword [rbx + 0x10], rbx
xor edx, edx
mov qword [rbx + 0x18], rsi
mov rax, qword gs:[0x60]
lea r8d, [rdx + 0x18]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140099325
and qword [rax + 8], 0
lea rax, [0x14012c750]
mov qword [rdi], rax
lea rax, [0x14012d150]
mov qword [rdi + 0x10], rax
jmp 0x140099327
xor edi, edi
test rdi, rdi
jne 0x140099385
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_AppId_Implementation::CRtlDefinitionAppId_::CreateInstance
mov qword [rbp + 7], rax
lea rax, str.NewTearoff.Allocate__
mov qword [rbp + 0x17], rax
mov r8d, 0xc0000017
call fcn.1400c81b4
mov edi, 0xc0000017
test rbx, rbx
je 0x140099381
mov r8, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [r8]
call qword [case.0x14010a1e6.0]
mov eax, edi
jmp 0x1400993d9
mov qword [rdi + 8], rbx
mov rcx, rbx
mov rax, qword [rbx]
mov rax, qword [rax + 8]
call qword [case.0x14010a1e6.0]
mov rcx, qword [0x1401a9f18]
test rcx, rcx
je 0x1400993c8
mov rax, qword [rcx]
lea rdx, str.CRtlDefinitionAppId
mov r8d, dword [rsi + 4]
mov r9d, 0x98
mov byte [rsp + 0x20], 1
mov rax, qword [rax + 0x10]
call qword [case.0x14010a1e6.0]
add rdi, 0x10
cmp qword [r15], 0
je 0x1400993d3
int3
mov eax, dword [rbp + 0x23]
mov qword [r15], rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140109af0
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret