Function at 0x180016ce0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12, r9
mov r15, rdx
mov rdi, rcx
cmp byte [rcx + 0x30], 0
je 0x180017065
cmp byte [rdx], 0x5f
jne 0x180016db9
cmp byte [rdx + 1], 0x5f
jne 0x180016db9
cmp byte [rdx + 2], 0x49
jne 0x180016db9
lea rdx, str.__ImageBase
mov rcx, r15
call sub.ntoskrnl.exe_strcmp
test eax, eax
jne 0x180016d60
mov rax, qword [rdi + 0x20]
mov qword [r12], rax
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rdx, str.__ImageSize
mov rcx, r15
call sub.ntoskrnl.exe_strcmp
test eax, eax
jne 0x180016d8c
mov eax, dword [rdi + 0x3c]
mov qword [r12], rax
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rdx, str.__ImageNtHdrs
mov rcx, r15
call sub.ntoskrnl.exe_strcmp
test eax, eax
jne 0x180016db9
mov rax, qword [rdi + 0x28]
mov qword [r12], rax
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
xor edx, edx
mov dword [rsp + 0x34], edx
mov r9d, dword [rdi + 0x54]
mov dword [rsp + 0x30], r9d
nop dword [rax + rax]
cmp edx, r9d
jae 0x180017023
mov ebx, r9d
sub ebx, edx
shr ebx, 1
add ebx, edx
mov rax, qword [rdi + 0x58]
mov r14d, dword [rax + rbx*4]
cmp r14d, dword [rdi + 0x38]
jb 0x180016ff9
mov r10d, dword [rdi + 0x3c]
cmp r14d, r10d
jae 0x180016ff9
mov eax, r14d
add rax, qword [rdi + 0x20]
mov r8, r15
sub r8, rax
nop
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x180016e24
inc rax
test cl, cl
jne 0x180016e10
xor eax, eax
jmp 0x180016e29
sbb eax, eax
or eax, 1
test eax, eax
jle 0x180016e36
mov r9d, ebx
mov dword [rsp + 0x30], ebx
jmp 0x180016e3f
jns 0x180016e41
lea edx, [rbx + 1]
mov dword [rsp + 0x34], edx
jmp 0x180016dd0
mov rax, qword [rdi + 0x60]
movzx ecx, word [rax + rbx*2]
mov ebx, ecx
mov r9d, dword [rdi + 0x50]
cmp ecx, r9d
jae 0x180016fd7
mov rax, qword [rdi + 0x48]
mov r13d, dword [rax + rcx*4]
mov esi, r13d
add rsi, qword [rdi + 0x20]
mov eax, r13d
sub eax, dword [rdi + 0x40]
cmp eax, dword [rdi + 0x44]
jb 0x180016e7d
mov qword [r12], rsi
xor eax, eax
jmp 0x180017072
sub r10d, r14d
mov ebx, r10d
mov edx, r10d
mov rcx, rsi
call sym.VBoxVideo.dll_RTStrNLen
mov rdx, rax
cmp rax, rbx
jae 0x180016f8f
mov ecx, dword [rsp + 0x90]
cmp rax, 9
jbe 0x180016f33
lea r10, str.ntoskrnl.exe
cmp rdi, r10
je 0x180016f33
cmp qword [0x18002e100], 0
je 0x180016f33
cmp ecx, 2
jae 0x180016f33
movzx eax, byte [rsi]
sub al, 0x4e
test al, 0xdf
jne 0x180016f33
movzx eax, byte [rsi + 1]
sub al, 0x54
test al, 0xdf
jne 0x180016f33
movzx eax, byte [rsi + 2]
sub al, 0x4f
test al, 0xdf
jne 0x180016f33
movzx eax, byte [rsi + 3]
sub al, 0x53
test al, 0xdf
jne 0x180016f33
movzx eax, byte [rsi + 4]
sub al, 0x4b
test al, 0xdf
jne 0x180016f33
movzx eax, byte [rsi + 5]
sub al, 0x52
test al, 0xdf
jne 0x180016f33
movzx eax, byte [rsi + 6]
sub al, 0x4e
test al, 0xdf
jne 0x180016f33
movzx eax, byte [rsi + 7]
sub al, 0x4c
test al, 0xdf
jne 0x180016f33
cmp byte [rsi + 8], 0x2e
jne 0x180016f33
lea r8d, [rcx + 1]
lea rdx, [rsi + 9]
mov r9, r12
mov rcx, r10
call fcn.180016ce0
jmp 0x180017072
cmp rdx, 4
jbe 0x180016f8f
lea r10, str.hal.dll
cmp rdi, r10
je 0x180016f8f
cmp qword [0x18002e170], 0
je 0x180016f8f
cmp ecx, 2
jae 0x180016f8f
movzx eax, byte [rsi]
sub al, 0x48
test al, 0xdf
jne 0x180016f8f
movzx eax, byte [rsi + 1]
sub al, 0x41
test al, 0xdf
jne 0x180016f8f
movzx eax, byte [rsi + 2]
sub al, 0x4c
test al, 0xdf
jne 0x180016f8f
cmp byte [rsi + 3], 0x2e
jne 0x180016f8f
lea r8d, [rcx + 1]
lea rdx, [rsi + 4]
mov r9, r12
mov rcx, r10
call fcn.180016ce0
jmp 0x180017072
mov eax, dword [rdi + 0x44]
mov dword [rsp + 0x28], eax
mov eax, dword [rdi + 0x40]
mov dword [rsp + 0x20], eax
mov r9d, r13d
mov r8, r15
mov rdx, rdi
lea rcx, str.rtR0DbgKrnlInfoLookupSymbol:__s:_Forwarded_symbol__s:_offExport_x__dir__x_LB__x__n
call sym.VBoxVideo.dll_RTLogBackdoorPrintf
mov eax, dword [rdi + 0x44]
mov dword [rsp + 0x28], eax
mov eax, dword [rdi + 0x40]
mov dword [rsp + 0x20], eax
mov r9d, r13d
mov r8, r15
mov rdx, rdi
lea rcx, str.rtR0DbgKrnlInfoLookupSymbol:__s:_Forwarded_symbol__s:_offExport_x__dir__x_LB__x__n
call sub.ntoskrnl.exe_DbgPrint
jmp 0x180017023
mov r8d, ebx
mov rdx, rdi
lea rcx, str.rtR0DbgKrnlInfoLookupSymbol:__s:_Name_ordinal_for__s_is_out_of_bounds:__x__max__x__n
call sym.VBoxVideo.dll_RTLogBackdoorPrintf
mov r9d, dword [rdi + 0x50]
mov r8d, ebx
lea rcx, str.rtR0DbgKrnlInfoLookupSymbol:__s:_Name_ordinal_for__s_is_out_of_bounds:__x__max__x__n
jmp 0x18001701b
mov r9d, ebx
mov r8d, r14d
mov rdx, rdi
lea rcx, str.rtR0DbgKrnlInfoLookupSymbol:__s:_Bad_export_name_entry:__x__iCur_x__n
call sym.VBoxVideo.dll_RTLogBackdoorPrintf
mov r9d, ebx
mov r8d, r14d
lea rcx, str.rtR0DbgKrnlInfoLookupSymbol:__s:_Bad_export_name_entry:__x__iCur_x__n
mov rdx, rdi
call sub.ntoskrnl.exe_DbgPrint
jmp 0x180017065
mov qword [r12], 0
mov eax, 0xfffffd9f
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret