Function at 0x1800d25f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov rsi, rcx
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x30]
mov qword [rcx + 0x98], rdx
mov edx, 8
call fcn.180077eac
mov rdi, rax
xor r13d, r13d
test rax, rax
jne 0x1800d2640
mov eax, 0xc0000017
jmp 0x1800d298a
mov dword [rax], r13d
mov qword [rsi + 0x70], rdi
lea rcx, [0x18015aac0]
call sym.ntdll.dll_RtlEnterCriticalSection
nop
mov r8d, 2
mov rdx, rsi
lea rcx, [0x1800d31d0]
call fcn.180060204
mov ebx, eax
mov dword [rsp + 0x34], eax
test eax, eax
js 0x1800d28cb
test byte [rsi + 0x40], 8
je 0x1800d28cf
mov r14, qword [0x18015d750]
test r14, r14
je 0x1800d26e1
cmp qword [r14 + 0xe8], r13
je 0x1800d26e1
mov edx, 0x58
mov rcx, rsi
call fcn.180077eac
mov r15, rax
test rax, rax
jne 0x1800d26b9
mov ebx, 0xc0000017
mov dword [rsp + 0x34], ebx
jmp 0x1800d297c
xor edx, edx
lea r8d, [rdx + 0x58]
mov rcx, r15
call sym.ntdll.dll_memset
mov qword [r15], r14
mov eax, dword [r14 + 0x70]
mov dword [r15 + 8], eax
mov r12d, 0x10
mov word [r15 + 0xc], r12w
inc dword [rdi]
jmp 0x1800d26e7
mov r12d, 0x10
mov dword [rsp + 0x38], r13d
cmp r13d, dword [rdi]
jae 0x1800d28d7
mov eax, r13d
imul r15, rax, 0x58
mov rax, qword [rsi + 0x80]
test rax, rax
je 0x1800d2713
cmp rax, qword [r15 + rdi + 8]
jne 0x1800d28c3
mov rdx, qword [r15 + rdi + 8]
mov qword [rsp + 0x108], rdx
movzx eax, word [rdx + 0xe0]
mov dword [r15 + rdi + 0x28], eax
lea ecx, [rax + rax*8]
shl ecx, 3
mov dword [rsp + 0x100], ecx
cmp qword [rdx + 0x148], 0
je 0x1800d275a
add eax, 0x81
mov dword [r15 + rdi + 0x28], eax
add ecx, 0x2448
mov dword [rsp + 0x100], ecx
mov edx, ecx
mov rcx, rsi
call fcn.180077eac
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800d26ab
mov r8d, dword [rsp + 0x100]
xor edx, edx
mov rcx, rax
call sym.ntdll.dll_memset
mov qword [r15 + rdi + 0x50], r14
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rdx + 0x148]
mov qword [rsp + 0x100], rcx
mov qword [rsp + 0x48], rcx
test rcx, rcx
je 0x1800d2876
mov dword [r15 + rdi + 0x30], 0x81
mov dword [r15 + rdi + 0x34], r12d
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov edx, 0x80
cmp r15d, edx
ja 0x1800d286e
mov eax, dword [rcx]
mov dword [r14], eax
mov eax, dword [rcx + 4]
mov dword [r14 + 4], eax
mov rax, qword [rcx + 8]
shl rax, 4
mov qword [r14 + 8], rax
mov ecx, 0x8000
movzx eax, r15w
or ax, cx
mov word [r14 + 0x10], ax
lea rcx, [r14 + 0x14]
test r15d, r15d
jne 0x1800d281a
mov r9d, 0x800
lea r8, str.Objects__4u
lea edx, [r15 + 0x30]
jmp 0x1800d2832
cmp r15d, edx
mov edx, 0x30
jae 0x1800d2839
mov r9d, r15d
shl r9d, 4
lea r8, str.Objects_4u
call fcn.1800c89cc
jmp 0x1800d2845
lea r8, str.VirtualAlloc
call fcn.1800377c0
add r14, 0x48
mov qword [rsp + 0x40], r14
mov rcx, qword [rsp + 0x100]
add rcx, r12
mov qword [rsp + 0x100], rcx
mov qword [rsp + 0x48], rcx
inc r15d
jmp 0x1800d27c2
mov rdx, qword [rsp + 0x108]
movzx eax, word [rdx + 0xe0]
lea r8, [rax + rax*8]
shl r8, 3
mov rdx, qword [rdx + 0xe8]
mov rcx, r14
call sym.ntdll.dll_RtlCopyMemory
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov rdx, qword [rsp + 0x108]
movzx eax, word [rdx + 0xe0]
cmp ecx, eax
jae 0x1800d28c3
shl qword [r14 + 8], 4
add r14, 0x48
mov qword [rsp + 0x40], r14
inc ecx
mov dword [rsp + 0x30], ecx
jmp 0x1800d28a2
inc r13d
jmp 0x1800d26e7
mov qword [rsi + 0x70], r13
mov r12d, 0x10
jmp 0x1800d28da
xor r13d, r13d
test ebx, ebx
js 0x1800d297c
mov ecx, dword [rsi + 0x40]
test ecx, 0x210
je 0x1800d297c
or qword [rsp + 0x70], 0xffffffffffffffff
mov rax, qword [rsi + 0x80]
mov qword [rsp + 0x78], rax
lea rax, [0x1800d3810]
mov qword [rsp + 0x88], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
and cl, r12b
neg cl
sbb eax, eax
and eax, 2
add eax, 3
mov dword [rsp + 0x80], eax
xor edx, edx
lea r8d, [rdx + 0x20]
lea rcx, [rsp + 0x50]
call sym.ntdll.dll_memset
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x60], r13d
lea rax, [rdi + 8]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x20], r13
mov r9d, 0x58
lea r8, [rsp + 0x70]
lea edx, [r9 - 0x56]
xor ecx, ecx
call sym.ntdll.dll_RtlQueryHeapInformation
mov ebx, eax
mov dword [rsp + 0x34], eax
lea rcx, [0x18015aac0]
call sym.ntdll.dll_RtlLeaveCriticalSection
mov eax, ebx
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret