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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x1401a7d98]
xor rax, rsp
mov qword [rbp + 0x27], rax
and dword [rbp + 0x1f], 0
mov r14, r8
mov eax, dword [rcx]
mov rdi, rcx
mov r13d, 1
test eax, eax
jne 0x140098f84
lock cmpxchg dword [rcx], r13d
jne 0x140098f84
lea eax, [r13 + 1]
xchg dword [rcx], eax
mov rcx, qword [0x1401a9f18]
test rcx, rcx
je 0x140098f84
mov rax, qword [rcx]
lea rdx, str.CRtlAppIdAuthority
mov r8, rdi
mov rax, qword [rax]
call qword [case.0x14010a1e6.0]
mov dword [rdi + 4], eax
jmp 0x140098f84
call qword [0x1401775d0]
nop dword [rax + rax]
test eax, eax
js 0x140098fd9
mov eax, dword [rdi]
cmp eax, 2
jne 0x140098f74
xor eax, eax
test eax, eax
js 0x140099117
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x30]
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140098fde
lea rax, [0x14012c7b8]
mov qword [rbx], rax
lea rax, [0x14012d190]
mov qword [rbx], rax
mov dword [rbx + 8], 0
jmp 0x140098fe0
mov dword [rbp + 0x23], eax
jmp 0x140098f8d
xor ebx, ebx
test rbx, rbx
jne 0x140099021
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::CRtlAppIdAuthority_::CreateInstance
mov r8d, 0xc0000017
mov qword [rbp - 0x19], rax
lea rax, str.NewInstance.Allocate__
mov qword [rbp - 9], rax
call fcn.1400c81b4
jmp 0x1400990bc
mov qword [rbx + 0x10], rbx
xor edx, edx
mov qword [rbx + 0x18], rdi
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 rsi, rax
test rax, rax
je 0x14009906c
and qword [rax + 8], 0
lea rax, [0x14012c750]
mov qword [rsi], rax
lea rax, [0x14012d098]
mov qword [rsi + 0x10], rax
jmp 0x14009906e
xor esi, esi
test rsi, rsi
jne 0x1400990c3
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::CRtlAppIdAuthority_::CreateInstance
mov r8d, 0xc0000017
mov qword [rbp + 7], rax
lea rax, str.NewTearoff.Allocate__
mov qword [rbp + 0x17], rax
call fcn.1400c81b4
mov rax, qword [rbx]
mov edx, r13d
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14010a1e6.0]
mov eax, 0xc0000017
jmp 0x140099117
mov qword [rsi + 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 0x140099106
mov rax, qword [rcx]
lea rdx, str.CRtlAppIdAuthority
mov r8d, dword [rdi + 4]
mov r9d, 0x20
mov byte [rsp + 0x20], r13b
mov rax, qword [rax + 0x10]
call qword [case.0x14010a1e6.0]
add rsi, 0x10
cmp qword [r14], 0
je 0x140099111
int3
mov eax, dword [rbp + 0x1f]
mov qword [r14], rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140109af0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret