Function at 0x1801010bc
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov dil, dl
mov qword [rbp - 8], rcx
xor r12d, r12d
xor edx, edx
mov r15d, r12d
mov qword [rbp + 0x50], r12
mov rbx, rcx
call fcn.1801016bc
test al, al
je 0x180101364
lea r8d, [r12 + 1]
test dil, dil
jne 0x18010110d
test dword [rbx + 0x70], 0x20000000
je 0x1801015e4
lea r14, [rbx + 0x150]
mov r13d, r12d
mov rsi, qword [r14]
jmp 0x1801011a7
lea rdi, [rsi - 0x10]
cmp dword [rbx + 0x7c], r15d
je 0x18010115b
mov edx, dword [rbx + 0x88]
xor edx, dword [rdi + 8]
mov ecx, edx
mov dword [rdi + 8], edx
shr ecx, 0x10
mov eax, edx
shr eax, 8
xor cl, al
xor cl, dl
shr edx, 0x18
cmp dl, cl
je 0x18010115b
mov rdx, rdi
mov rcx, rbx
call fcn.1800fbec0
mov r8d, 1
movzx eax, word [rdi + 8]
mov rsi, qword [rsi]
mov qword [rbp + 0x58], rax
mov qword [rbp - 8], rdi
test byte [rdi + 0xa], r8b
jne 0x1801012f5
movzx ecx, word [rdi + 8]
cmp cx, r12w
jb 0x1801012a3
movzx r12d, cx
cmp dword [rbx + 0x7c], r15d
je 0x1801011a4
movzx eax, cx
shr ax, 8
xor al, cl
xor al, byte [rdi + 0xa]
mov byte [rdi + 0xb], al
mov eax, dword [rbx + 0x88]
xor dword [rdi + 8], eax
add r13d, r8d
cmp r14, rsi
jne 0x18010111f
movzx eax, word [rbx + 0xe0]
xor r12d, r12d
add eax, 0x82
mov ecx, eax
shl rcx, 3
cmp byte [0x18015a7a0], r12b
mov qword [rbp + 0x58], rcx
je 0x18010120e
cmp qword [rbx + 0x148], r12
je 0x18010120e
mov dword [rsp + 0x28], 4
lea r9, [rbp + 0x58]
xor r8d, r8d
mov dword [rsp + 0x20], 0x1000
lea rdx, [rbp + 0x50]
or rcx, 0xffffffffffffffff
call sym.ntdll.dll_NtAllocateVirtualMemory
test eax, eax
js 0x18010120e
mov rax, qword [rbp + 0x50]
lea r15, [rax + 0x408]
lea r14, [rbx + 0x110]
mov edx, 0x81
mov rdi, qword [r14]
cmp r14, rdi
je 0x180101429
cmp dword [rbx + 0x7c], r12d
je 0x18010125e
mov edx, dword [rbx + 0x88]
xor edx, dword [rdi + 0x38]
mov ecx, edx
mov dword [rdi + 0x38], edx
shr ecx, 0x10
mov eax, edx
shr eax, 8
xor cl, al
xor cl, dl
shr edx, 0x18
cmp dl, cl
je 0x180101259
lea rdx, [rdi + 0x30]
mov rcx, rbx
call fcn.1800fbec0
mov edx, 0x81
test r15, r15
je 0x1801013c2
movzx eax, word [rdi + 0x12]
test ax, ax
je 0x1801013c2
jns 0x1801013a0
mov ecx, 0x7fff
and ax, cx
cmp ax, dx
jae 0x1801013c2
mov rcx, qword [rbp + 0x50]
movzx edx, ax
mov rax, qword [rdi + 0x20]
shr rax, 4
add qword [rcx + rdx*8], rax
jmp 0x1801013c2
mov rax, qword gs:[0x60]
xor r12d, r12d
cmp qword [rax + 0x18], r12
je 0x1801012d8
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
lea rcx, str.HEAP__wZ_:
add rdx, 0x58
call sym.ntdll.dll_DbgPrint
jmp 0x1801012e4
lea rcx, str.HEAP:
call sym.ntdll.dll_DbgPrint
mov rdx, rdi
lea rcx, str.Non_Dedicated_free_list_element__p_is_out_of_order_n
call sym.ntdll.dll_DbgPrint
jmp 0x180101349
mov rax, qword gs:[0x60]
xor r12d, r12d
cmp qword [rax + 0x18], r12
je 0x18010132a
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
lea rcx, str.HEAP__wZ_:
add rdx, 0x58
call sym.ntdll.dll_DbgPrint
jmp 0x180101336
lea rcx, str.HEAP:
call sym.ntdll.dll_DbgPrint
mov rdx, qword [rbp + 0x58]
lea rcx, str.dedicated___04Ix__free_list_element__p_is_marked_busy_n
mov r8, rdi
call sym.ntdll.dll_DbgPrint
cmp dword [rbx + 0x7c], r12d
je 0x180101364
mov al, byte [rdi + 0xa]
xor al, byte [rdi + 9]
xor al, byte [rdi + 8]
mov byte [rdi + 0xb], al
mov eax, dword [rbx + 0x88]
xor dword [rdi + 8], eax
call fcn.18010109c
cmp qword [rbp + 0x50], r12
je 0x180101386
mov r9d, 0x8000
mov qword [rbp + 0x58], r12
lea r8, [rbp + 0x58]
lea rdx, [rbp + 0x50]
call fcn.18005cd8c
xor al, al
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x800
test cx, ax
jne 0x1801013c2
cmp ax, word [rbx + 0xe0]
jae 0x1801013c2
movzx ecx, ax
mov rax, qword [rdi + 0x20]
shr rax, 4
add qword [r15 + rcx*8], rax
test byte [rdi + 0x3a], 4
je 0x1801013d8
lea rdx, [rdi + 0x30]
mov rcx, rbx
call fcn.1800eee04
test al, al
je 0x180101405
cmp dword [rbx + 0x7c], r12d
je 0x1801013f3
mov al, byte [rdi + 0x3a]
xor al, byte [rdi + 0x39]
xor al, byte [rdi + 0x38]
mov byte [rdi + 0x3b], al
mov eax, dword [rbx + 0x88]
xor dword [rdi + 0x38], eax
mov rdi, qword [rdi]
cmp r14, rdi
je 0x180101429
mov edx, 0x81
jmp 0x180101226
cmp dword [rbx + 0x7c], r12d
je 0x180101386
mov al, byte [rdi + 0x3a]
xor al, byte [rdi + 0x39]
xor al, byte [rdi + 0x38]
mov byte [rdi + 0x3b], al
mov eax, dword [rbx + 0x88]
xor dword [rdi + 0x38], eax
jmp 0x180101386
lea rsi, [rbx + 0x120]
mov eax, r12d
mov rdi, qword [rsi]
mov rcx, r12
mov dword [rbp + 0x40], eax
mov qword [rbp - 0x10], rcx
cmp rdi, rsi
je 0x18010148c
mov rax, qword [rbp + 0x50]
lea rdx, [rdi - 0x18]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x40]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rax
mov rcx, rbx
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
call fcn.180101874
test al, al
je 0x180101364
mov rdi, qword [rdi]
cmp rdi, rsi
jne 0x180101445
mov eax, dword [rbp + 0x40]
mov rcx, qword [rbp - 0x10]
cmp r13d, eax
je 0x1801014e6
mov rax, qword gs:[0x60]
cmp qword [rax + 0x18], r12
je 0x1801014c3
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
lea rcx, str.HEAP__wZ_:
add rdx, 0x58
call sym.ntdll.dll_DbgPrint
jmp 0x1801014cf
lea rcx, str.HEAP:
call sym.ntdll.dll_DbgPrint
mov edx, dword [rbp + 0x40]
lea rcx, str.Number_of_free_blocks_in_arena___ld__does_not_match_number_in_the_free_lists___ld__n
mov r8d, r13d
call sym.ntdll.dll_DbgPrint
jmp 0x180101364
cmp qword [rbx + 0xc0], rcx
je 0x180101549
mov rax, qword gs:[0x60]
cmp qword [rax + 0x18], r12
je 0x180101521
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
lea rcx, str.HEAP__wZ_:
add rdx, 0x58
call sym.ntdll.dll_DbgPrint
jmp 0x18010152d
lea rcx, str.HEAP:
call sym.ntdll.dll_DbgPrint
mov r8, qword [rbx + 0xc0]
lea rcx, str.Total_size_of_free_blocks_in_arena___Id__does_not_match_number_total_in_heap_header___Id__n
mov rdx, qword [rbp - 0x10]
call sym.ntdll.dll_DbgPrint
jmp 0x180101364
cmp qword [rbp + 0x50], r12
je 0x1801015de
mov rsi, qword [rbx + 0x148]
mov edx, 1
test rsi, rsi
je 0x18010158c
movzx edi, dx
mov r8d, 0x81
mov rax, qword [rbp + 0x50]
add rsi, 0x10
movzx r14d, di
mov rcx, qword [rsi + 8]
cmp qword [rax + r14*8], rcx
jne 0x1801015ec
add di, dx
cmp di, r8w
jb 0x18010156d
mov rdi, qword [rbx + 0xe8]
test rdi, rdi
je 0x1801015c7
movzx ecx, word [rbx + 0xe0]
movzx esi, dx
cmp dx, cx
jae 0x1801015c7
movzx ebx, si
lea rdi, [rdi + 0x48]
mov rax, qword [rdi + 8]
lea r14, [r15 + rbx*8]
cmp qword [r14], rax
jne 0x180101653
add si, dx
cmp si, cx
jb 0x1801015a7
mov r9d, 0x8000
mov qword [rbp + 0x58], r12
lea r8, [rbp + 0x58]
lea rdx, [rbp + 0x50]
call fcn.18005cd8c
mov r8d, 1
mov al, r8b
jmp 0x180101388
mov rax, qword gs:[0x60]
cmp qword [rax + 0x18], r12
je 0x18010161e
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
lea rcx, str.HEAP__wZ_:
add rdx, 0x58
call sym.ntdll.dll_DbgPrint
jmp 0x18010162a
lea rcx, str.HEAP:
call sym.ntdll.dll_DbgPrint
mov r9, qword [rbp + 0x50]
lea rcx, str.Pseudo_Tag__04x_size_incorrect___Ix____Ix___p_n
mov r8, qword [rsi + 8]
movzx edx, di
lea rax, [r9 + r14*8]
mov r9, qword [r9 + r14*8]
mov qword [rsp + 0x20], rax
call sym.ntdll.dll_DbgPrint
jmp 0x180101364
mov rax, qword gs:[0x60]
cmp qword [rax + 0x18], r12
je 0x180101685
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
lea rcx, str.HEAP__wZ_:
add rdx, 0x58
call sym.ntdll.dll_DbgPrint
jmp 0x180101691
lea rcx, str.HEAP:
call sym.ntdll.dll_DbgPrint
mov rax, qword [r15 + rbx*8]
lea r8, [rdi + 0x14]
mov r9, qword [rdi + 8]
lea rcx, str.Tag__04x___ws__size_incorrect___Ix____Ix___p_n
movzx edx, si
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call sym.ntdll.dll_DbgPrint
jmp 0x180101364