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

Disassembly:
mov rax, qword [rdx]
cmp rax, qword [0x140073430]
mov rcx, qword [rcx - 8]
jne 0x14003baf5
mov rax, qword [rdx + 8]
cmp rax, qword [0x140073438]
jne 0x14003baf5
mov rdx, r8
jmp 0x14003bd04
jmp 0x140046c60
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov rsi, rdx
cmp qword [rdx], rbx
je 0x14003bd1c
int3
mov r14, qword [rcx + 0x10]
xor edx, edx
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 0x14003bd96
mov qword [rax + 8], rbx
lea rax, [0x140065260]
mov qword [rdi], rax
lea rax, method.q_p7HF.virtual_0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r14
mov rax, qword [r14]
movabs r10, 0x9b149f3f3ade7270
mov rax, qword [rax + 8]
mov rcx, r14
call qword [case.0x14005dcc6.0]
lea rax, [rdi + 0x10]
neg rdi
sbb rcx, rcx
and rcx, rax
cmp qword [rsi], rbx
je 0x14003bd91
int3
mov qword [rsi], rcx
jmp 0x14003bdd7
lea rax, str.onecoreinternalBaseinc_rtl_object_library.h
mov dword [rsp + 0x30], 0x1fe
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_Windows::Rtl::SystemImplementation::CUserProfile_::CreateTearoff
mov r8d, 0xc0000017
mov qword [rsp + 0x28], rax
lea rax, str.NewTearoff.Allocate__
mov qword [rsp + 0x38], rax
call fcn.140059c64
mov ebx, 0xc0000017
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x60
mov rbx, r8
mov rsi, rcx
test r8, r8
jne 0x140046cbd
lea rax, str.onecore_basewcp_siluserprofile.cpp
mov r8d, 0xc000000d
mov qword [r11 - 0x48], rax
lea rcx, [r11 - 0x48]
lea rax, str.Windows::Rtl::SystemImplementation::CUserProfile::CreateInterface
mov qword [r11 - 0x40], rax
lea rax, str.Not_null_check_failed:_Out
mov dword [rsp + 0x30], 0x52
mov qword [r11 - 0x30], rax
call fcn.140059c64
mov eax, 0xc000000d
jmp 0x140046d84
mov rcx, qword [rdx]
xor eax, eax
cmp rcx, qword [0x1400734b0]
jne 0x140046cd8
mov rcx, qword [rdx + 8]
cmp rcx, qword [0x1400734b8]
je 0x140046cf1
mov rcx, qword [rdx]
cmp rcx, qword [0x140078cf0]
jne 0x140046d61
mov rcx, qword [rdx + 8]
cmp rcx, qword [0x140078cf8]
jne 0x140046d61
mov rcx, qword gs:[0x60]
xor edx, edx
mov rsi, qword [rsi + 0x10]
mov rcx, qword [rcx + 0x30]
lea r8d, [rdx + 0x18]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140046d97
and qword [rax + 8], 0
lea rax, [0x140065260]
mov qword [rdi], rax
lea rax, vtable.q_p7HF.0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], rsi
mov rdx, qword [rsi]
movabs r10, 0x9b149f3f3ade7270
mov rax, qword [rdx + 8]
mov rcx, rsi
call qword [case.0x14005dcc6.0]
lea rcx, [rdi + 0x10]
neg rdi
sbb rax, rax
and rax, rcx
mov rcx, qword [rbx]
mov qword [rbx], rax
test rcx, rcx
je 0x140046d82
mov rax, qword [rcx]
movabs r10, 0xaaa4b7fc7cd10a70
mov rax, qword [rax]
call qword [case.0x14005dcc6.0]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rax, str.onecoreinternalBaseinc_rtl_object_library.h
mov dword [rsp + 0x50], 0x1fe
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_Windows::Rtl::SystemImplementation::CUserProfile_::CreateTearoff
mov r8d, 0xc0000017
mov qword [rsp + 0x48], rax
lea rax, str.NewTearoff.Allocate__
mov qword [rsp + 0x58], rax
call fcn.140059c64
mov eax, 0xc0000017
jmp 0x140046d84