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

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov eax, dword [rcx]
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov r15d, 1
test eax, eax
jne 0x14003b88e
lock cmpxchg dword [rcx], r15d
jne 0x14003b88e
lea eax, [r15 + 1]
xchg dword [rcx], eax
mov rcx, qword [0x140085648]
test rcx, rcx
je 0x14003b88e
mov rax, qword [rcx]
movabs r10, 0x88152eea7ad06070
mov rax, qword [rax]
lea rdx, str.CUserProfile
mov r8, rdi
call qword [case.0x14005dcc6.0]
mov dword [rdi + 4], eax
jmp 0x14003b88e
call qword [sym.imp.ntdll.dll_NtYieldExecution]
nop dword [rax + rax]
test eax, eax
js 0x14003bab6
mov eax, dword [rdi]
cmp eax, 2
jne 0x14003b87a
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, 0xe8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14003ba75
lea rax, [0x1400651f0]
xor edx, edx
mov qword [rbx], rax
lea rcx, [rbx + 0x20]
lea rax, [0x140065ab8]
mov dword [rbx + 8], 0
mov r8d, 0x90
mov qword [rbx], rax
call sub.ntdll.dll_memset
and dword [rbx + 0xb0], 0
mov rdx, rsi
and qword [rbx + 0xb8], 0
mov rcx, rbx
and qword [rbx + 0xc0], 0
and qword [rbx + 0xc8], 0
and qword [rbx + 0xd0], 0
and qword [rbx + 0xd8], 0
and word [rbx + 0xe0], 0
call fcn.140046a24
mov esi, eax
test eax, eax
jns 0x14003b959
mov rcx, qword [rbx]
mov rax, qword [rcx]
movabs r10, 0xe2b896ea10d7a870
mov edx, r15d
mov rcx, rbx
call qword [case.0x14005dcc6.0]
mov eax, esi
jmp 0x14003bab6
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 0x14003ba1b
and qword [rax + 8], 0
lea rax, [0x140065260]
mov qword [rsi], rax
lea rax, vtable.q_p7HF.0
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 0x14003b9fd
mov rax, qword [rcx]
movabs r10, 0x9b8c3faa10d2f170
mov r8d, dword [rdi + 4]
lea rdx, str.CUserProfile
mov rax, qword [rax + 0x10]
mov r9d, 0xe8
mov byte [rsp + 0x20], r15b
call qword [case.0x14005dcc6.0]
lea rax, [rsi + 0x10]
neg rsi
sbb rcx, rcx
and rcx, rax
cmp qword [r14], 0
je 0x14003ba11
int3
mov qword [r14], rcx
xor eax, eax
jmp 0x14003bab6
lea rax, str.onecoreinternalBaseinc_rtl_object_library.h
mov dword [rsp + 0x48], 0x1dc
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_Windows::Rtl::SystemImplementation::CUserProfile_::CreateInstance
mov r8d, 0xc0000017
mov qword [rsp + 0x40], rax
lea rax, str.NewTearoff.Allocate__
mov qword [rsp + 0x50], rax
call fcn.140059c64
mov rax, qword [rbx]
movabs r10, 0xe2b896ea10d7a870
mov rax, qword [rax]
mov edx, r15d
mov rcx, rbx
call qword [case.0x14005dcc6.0]
jmp 0x14003bab1
lea rax, str.onecoreinternalBaseinc_rtl_object_library.h
mov dword [rsp + 0x68], 0x1cb
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x58]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_Windows::Rtl::SystemImplementation::CUserProfile_::CreateInstance
mov r8d, 0xc0000017
mov qword [rsp + 0x60], rax
lea rax, str.NewInstance.Allocate__
mov qword [rsp + 0x70], rax
call fcn.140059c64
mov eax, 0xc0000017
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret