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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x1401a7d98]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
mov rbx, rcx
movzx ecx, byte [rcx]
mov dword [rbp + 0x3f], edi
test ecx, ecx
je 0x1400ad43f
sub ecx, 1
je 0x1400ad39b
sub ecx, 1
je 0x1400ad2fa
cmp ecx, 1
je 0x1400ad259
lea rax, str.onecore_basexml_stream_bufferedstream.cpp
mov dword [rbp - 0x51], 0x42
mov qword [rbp - 0x61], rax
lea rcx, [rbp - 0x61]
lea rax, str.CBufferedStream::AddIndirection
mov qword [rbp - 0x49], rdi
mov r8d, 0xc00000e5
mov qword [rbp - 0x59], rax
call fcn.1400c81b4
mov eax, 0xc00000e5
jmp 0x1400ad507
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x30]
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
test rax, rax
je 0x1400ad28a
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
jmp 0x1400ad28d
mov rax, rdi
cmp qword [rbx + 0x50], rdi
je 0x1400ad294
int3
mov qword [rbx + 0x50], rax
test rax, rax
jne 0x1400ad2ce
lea rax, str.onecore_basexml_stream_bufferedstream.cpp
mov dword [rbp - 0x31], 0x3c
mov qword [rbp - 0x41], rax
lea rcx, [rbp - 0x41]
lea rax, str.CBufferedStream::AddIndirection
mov qword [rbp - 0x39], rax
lea rax, str.m_pL4Index.Allocate__
mov qword [rbp - 0x29], rax
jmp 0x1400ad4af
mov edx, 1
mov rcx, rax
call fcn.1400ae238
test eax, eax
js 0x1400ad507
mov rax, qword [rbx + 0x50]
mov rcx, qword [rbx + 0x48]
mov rdx, qword [rax]
mov rax, qword [rdx]
mov qword [rbx + 0x48], rax
jmp 0x1400ad437
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x30]
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
test rax, rax
je 0x1400ad32b
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
jmp 0x1400ad32e
mov rax, rdi
cmp qword [rbx + 0x48], rdi
je 0x1400ad335
int3
mov qword [rbx + 0x48], rax
test rax, rax
jne 0x1400ad36f
lea rax, str.onecore_basexml_stream_bufferedstream.cpp
mov dword [rbp - 0x11], 0x36
mov qword [rbp - 0x21], rax
lea rcx, [rbp - 0x21]
lea rax, str.CBufferedStream::AddIndirection
mov qword [rbp - 0x19], rax
lea rax, str.m_pL3Index.Allocate__
mov qword [rbp - 9], rax
jmp 0x1400ad4af
mov edx, 1
mov rcx, rax
call fcn.1400ae3c4
test eax, eax
js 0x1400ad507
mov rax, qword [rbx + 0x48]
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rax]
mov rax, qword [rdx]
mov qword [rbx + 0x40], rax
jmp 0x1400ad437
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x30]
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
test rax, rax
je 0x1400ad3cc
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
jmp 0x1400ad3cf
mov rax, rdi
cmp qword [rbx + 0x40], rdi
je 0x1400ad3d6
int3
mov qword [rbx + 0x40], rax
test rax, rax
jne 0x1400ad410
lea rax, str.onecore_basexml_stream_bufferedstream.cpp
mov dword [rbp + 0xf], 0x30
mov qword [rbp - 1], rax
lea rcx, [rbp - 1]
lea rax, str.CBufferedStream::AddIndirection
mov qword [rbp + 7], rax
lea rax, str.m_pL2Index.Allocate__
mov qword [rbp + 0x17], rax
jmp 0x1400ad4af
mov edx, 1
mov rcx, rax
call fcn.1400ae550
test eax, eax
js 0x1400ad507
mov rax, qword [rbx + 0x40]
mov rcx, qword [rbx + 0x38]
mov rdx, qword [rax]
mov rax, qword [rdx]
mov qword [rbx + 0x38], rax
mov qword [rdx], rcx
jmp 0x1400ad502
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x30]
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
test rax, rax
je 0x1400ad470
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
jmp 0x1400ad473
mov rax, rdi
cmp qword [rbx + 0x38], rdi
je 0x1400ad47a
int3
mov qword [rbx + 0x38], rax
test rax, rax
jne 0x1400ad4c1
lea rax, str.onecore_basexml_stream_bufferedstream.cpp
mov dword [rbp + 0x2f], 0x2a
mov qword [rbp + 0x1f], rax
lea rcx, [rbp + 0x1f]
lea rax, str.CBufferedStream::AddIndirection
mov qword [rbp + 0x27], rax
lea rax, str.m_pL1Index.Allocate__
mov qword [rbp + 0x37], rax
mov r8d, 0xc0000017
call fcn.1400c81b4
mov eax, 0xc0000017
jmp 0x1400ad507
mov r8d, 1
lea rdx, [rbp - 0x69]
mov rcx, rax
call fcn.1400ae6dc
mov eax, dword [rax]
test eax, eax
js 0x1400ad507
mov rax, qword [rbx + 0x38]
movups xmm3, xmmword [rbx + 0x20]
movsd xmm2, qword [rbx + 0x30]
mov rcx, qword [rax]
movups xmm0, xmmword [rcx]
movups xmmword [rbx + 0x20], xmm0
movsd xmm1, qword [rcx + 0x10]
movsd qword [rbx + 0x30], xmm1
movups xmmword [rcx], xmm3
movsd qword [rcx + 0x10], xmm2
inc byte [rbx]
mov eax, dword [rbp + 0x3f]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140109af0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret