Function at 0x1400168c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r15, r8
mov r13, rcx
lea rax, [rcx + 0x1000]
cmp rax, 0x2000
jb 0x140016c1d
mov rax, rcx
movabs rcx, 0xffff800000000000
and rax, rcx
movabs rcx, 0x800000000000
add rax, rcx
movabs rcx, 0xffff7fffffffffff
test rcx, rax
jne 0x140016c1d
cmp edx, 2
jb 0x140016c1d
xor edi, edi
mov dword [rsp + 0x24], edi
mov rax, qword [sym.imp.ntoskrnl.exe_MmSystemRangeStart]
mov r12, qword [rax]
mov qword [rsp + 0x30], r12
cmp qword [0x14002c100], rdi
jne 0x140016b72
cmp qword [0x14002c170], rdi
jne 0x140016b72
mov r8d, 0x10
cmp edx, r8d
cmovbe r8d, edx
mov dword [rsp + 0x20], r8d
mov ecx, 0xffffffff
mov dword [rsp + 0x98], ecx
mov r14d, ecx
mov dword [rsp + 0x28], ecx
xor ebx, ebx
test r8d, r8d
je 0x140016a2c
lea rsi, [r13 + 0x20]
cmp qword [rsi - 8], r12
jb 0x140016a1a
cmp dword [rsi], 0x1000
jb 0x140016a1a
movzx r12d, word [rsi + 0xe]
cmp ecx, 0xffffffff
jne 0x1400169e0
lea rdx, str.ntoskrnl.exe
lea rcx, [rsi + 0x10]
add rcx, r12
call sym.VBoxNetAdp.sys_RTStrICmpAscii
test eax, eax
jne 0x1400169d4
mov ecx, ebx
mov dword [rsp + 0x98], ebx
cmp r14d, 0xffffffff
jmp 0x140016a0e
mov ecx, dword [rsp + 0x98]
mov r8d, dword [rsp + 0x20]
cmp r14d, 0xffffffff
jne 0x140016a15
lea rdx, str.hal.dll
lea rcx, [rsi + 0x10]
add rcx, r12
call sym.VBoxNetAdp.sys_RTStrICmpAscii
mov ecx, dword [rsp + 0x98]
test eax, eax
jne 0x140016a10
mov r14d, ebx
mov dword [rsp + 0x28], ebx
cmp ebx, 0xffffffff
jne 0x140016a2c
mov r8d, dword [rsp + 0x20]
mov r12, qword [rsp + 0x30]
inc ebx
add rsi, 0x128
cmp ebx, r8d
jb 0x140016992
cmp ecx, 0xffffffff
jne 0x140016a45
xor ebx, ebx
lea rdx, [r13 + 0x30]
lea rcx, str.rtR0DbgKrnlNtInit:_ntoskrnl.exe_not_found__picking__s_instead_n
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140016a4c
mov ebx, dword [rsp + 0x98]
cmp r14d, 0xffffffff
jne 0x140016a71
mov r14d, 1
mov dword [rsp + 0x28], r14d
lea rdx, [r13 + 0x158]
lea rcx, str.rtR0DbgKrnlNtInit:_hal.dll_not_found__picking__s_instead_n
call sub.ntoskrnl.exe_DbgPrint
nop
mov eax, ebx
imul rcx, rax, 0x128
mov r8d, dword [rcx + r13 + 0x20]
mov rdx, qword [rcx + r13 + 0x18]
lea rcx, str.ntoskrnl.exe
call fcn.1400164b0
mov byte [0x14002c110], al
mov r12, qword [rsp + 0x30]
jmp 0x140016ace
mov eax, r14d
imul rdx, rax, 0x128
mov r8d, dword [rdx + r13 + 0x20]
mov rdx, qword [rdx + r13 + 0x18]
lea rcx, str.hal.dll
call fcn.1400164b0
movzx ecx, al
mov byte [0x14002c180], al
jmp 0x140016b2c
movzx eax, byte [0x14002c110]
test al, al
je 0x140016b3b
test cl, cl
jne 0x140016b40
mov edi, 0xfffffd96
test al, al
je 0x140016b6b
cmp qword [0x14002ea00], 0
jne 0x140016b6b
lea r9, [0x14002ea00]
xor r8d, r8d
lea rdx, str.MmGetSystemRoutineAddress
lea rcx, str.ntoskrnl.exe
call fcn.140016070
mov edx, dword [rsp + 0x88]
test edi, edi
js 0x140016c0b
test r15, r15
je 0x140016c0b
mov edi, 0xfffffd9e
xor esi, esi
nop word [rax + rax]
cmp esi, edx
jae 0x140016c0b
mov eax, esi
imul rbx, rax, 0x128
add rbx, r13
cmp qword [rbx + 0x18], r12
jb 0x140016c07
cmp dword [rbx + 0x20], 0x1000
jb 0x140016c07
movzx eax, word [rbx + 0x2e]
lea rcx, [rbx + 0x30]
add rcx, rax
cmp qword [r15 + 0x20], 0
jne 0x140016c07
mov rdx, r15
call sym.VBoxNetAdp.sys_RTStrICmpAscii
test eax, eax
jne 0x140016c00
mov r8d, dword [rbx + 0x20]
mov rdx, qword [rbx + 0x18]
mov rcx, r15
call fcn.1400164b0
mov byte [r15 + 0x30], al
xor edi, edi
mov dword [rsp + 0x24], edi
jmp 0x140016c0b
mov edx, dword [rsp + 0x88]
inc esi
jmp 0x140016b90
mov eax, edi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov eax, 0xfffffffe
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret