Function at 0x407630
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x158
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x50], 0
mov rax, qword [rsp + 0x170]
cmp qword [rax + 0x18], 0
je 0x4080c7
mov edx, 0x688
xor ecx, ecx
call sub.ntoskrnl.exe_ExAllocatePool
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x4080c7
call sub.ntoskrnl.exe_PsGetCurrentThreadProcess
mov rdx, rax
mov rax, qword [rsp + 0x170]
mov rcx, qword [rax]
call fcn.00408110
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x170]
mov rcx, qword [rax]
call fcn.00408150
mov qword [rsp + 0x140], rax
call sub.ntoskrnl.exe_PsGetCurrentThreadProcess
mov rdx, rax
mov rax, qword [rsp + 0x170]
mov rcx, qword [rax]
call fcn.004080e0
mov rcx, qword [rsp + 0x140]
cmp rcx, rax
je 0x4080b8
call sub.ntoskrnl.exe_PsGetCurrentThreadId
mov qword [rsp + 0x148], rax
mov rcx, qword [rsp + 0x88]
call sub.ntoskrnl.exe_PsGetThreadId
mov rcx, qword [rsp + 0x148]
cmp rcx, rax
je 0x408093
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
movzx eax, word [rax + 0x54c]
mov rcx, qword [rsp + 0x170]
mov rdx, qword [rsp + 0x88]
mov rax, qword [rdx + rax]
cmp qword [rcx + 0xb0], rax
jne 0x408093
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
movzx eax, word [rax + 0x464]
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call sub.ntoskrnl.exe_MmIsAddressValid
movzx eax, al
test eax, eax
je 0x408093
mov rax, qword [rsp + 0x80]
add rax, 0x178
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov qword [rax + 0xf8], rcx
mov rax, qword [rsp + 0x60]
add rax, 8
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x98], rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x100]
mov qword [rax + 0x90], rcx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0xf8]
mov qword [rax + 0xa0], rcx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x110]
mov qword [rax + 0xa8], rcx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x108]
mov qword [rax + 0xb0], rcx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x118]
mov qword [rax + 0xd8], rcx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x120]
mov qword [rax + 0xe0], rcx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x128]
mov qword [rax + 0xe8], rcx
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
mov rcx, qword [rcx + 0x130]
mov qword [rax + 0xf0], rcx
lea rax, [rsp + 0x130]
mov rcx, qword [rsp + 0x80]
mov rdi, rax
lea rsi, [rcx + 0x30]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
lea rcx, [rsp + 0x130]
lea rdi, [rax + 0x200]
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x120]
mov rcx, qword [rsp + 0x80]
mov rdi, rax
lea rsi, [rcx + 0x40]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
lea rcx, [rsp + 0x120]
lea rdi, [rax + 0x210]
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x110]
mov rcx, qword [rsp + 0x80]
mov rdi, rax
lea rsi, [rcx + 0x50]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
lea rcx, [rsp + 0x110]
lea rdi, [rax + 0x220]
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x100]
mov rcx, qword [rsp + 0x80]
mov rdi, rax
lea rsi, [rcx + 0x60]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
lea rcx, [rsp + 0x100]
lea rdi, [rax + 0x230]
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xf0]
mov rcx, qword [rsp + 0x80]
mov rdi, rax
lea rsi, [rcx + 0x70]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
lea rcx, [rsp + 0xf0]
lea rdi, [rax + 0x240]
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xe0]
mov rcx, qword [rsp + 0x80]
mov rdi, rax
lea rsi, [rcx + 0x80]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
lea rcx, [rsp + 0xe0]
lea rdi, [rax + 0x250]
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xd0]
mov rcx, qword [rsp + 0x80]
mov rdi, rax
lea rsi, [rcx + 0x90]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
lea rcx, [rsp + 0xd0]
lea rdi, [rax + 0x260]
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xc0]
mov rcx, qword [rsp + 0x80]
mov rdi, rax
lea rsi, [rcx + 0xa0]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
lea rcx, [rsp + 0xc0]
lea rdi, [rax + 0x270]
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xb0]
mov rcx, qword [rsp + 0x80]
mov rdi, rax
lea rsi, [rcx + 0xb0]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
lea rcx, [rsp + 0xb0]
lea rdi, [rax + 0x280]
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
mov rdi, rax
lea rsi, [rcx + 0xc0]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
lea rcx, [rsp + 0xa0]
lea rdi, [rax + 0x290]
mov rsi, rcx
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x90]
add rax, 0x90
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x568], rax
mov rax, qword [rsp + 0x90]
add rax, 0x98
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x570], rax
mov rax, qword [rsp + 0x90]
add rax, 0xa0
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x578], rax
mov rax, qword [rsp + 0x90]
add rax, 0xa8
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x580], rax
mov rax, qword [rsp + 0x90]
add rax, 0xb0
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x588], rax
mov rax, qword [rsp + 0x90]
add rax, 0xd8
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x5b0], rax
mov rax, qword [rsp + 0x90]
add rax, 0xe0
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x5b8], rax
mov rax, qword [rsp + 0x90]
add rax, 0xe8
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x5c0], rax
mov rax, qword [rsp + 0x90]
add rax, 0xf0
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x5c8], rax
mov rax, qword [rsp + 0x90]
add rax, 0x200
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x500], rax
mov rax, qword [rsp + 0x90]
add rax, 0x210
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x508], rax
mov rax, qword [rsp + 0x90]
add rax, 0x220
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x510], rax
mov rax, qword [rsp + 0x90]
add rax, 0x230
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x518], rax
mov rax, qword [rsp + 0x90]
add rax, 0x240
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x520], rax
mov rax, qword [rsp + 0x90]
add rax, 0x250
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x528], rax
mov rax, qword [rsp + 0x90]
add rax, 0x260
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x530], rax
mov rax, qword [rsp + 0x90]
add rax, 0x270
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x538], rax
mov rax, qword [rsp + 0x90]
add rax, 0x280
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x540], rax
mov rax, qword [rsp + 0x90]
add rax, 0x290
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x548], rax
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
movzx eax, word [rax + 0x464]
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx + rax]
cmp qword [rsp + 0x60], rax
jb 0x407eab
mov rax, qword [rsp + 0x170]
mov rax, qword [rax]
movzx eax, word [rax + 0x466]
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx + rax]
cmp qword [rsp + 0x60], rax
jae 0x407eab
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0xf8]
call sub.ntoskrnl.exe_MmIsAddressValid
movzx eax, al
test eax, eax
je 0x407ea4
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0xf8]
call sub.ntoskrnl.exe_RtlLookupFunctionEntry
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x407ea0
mov rax, qword [rsp + 0x90]
add rax, 0x4d0
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov rax, qword [rsp + 0x90]
mov r8, qword [rax + 0xf8]
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call sub.ntoskrnl.exe_RtlVirtualUnwind
jmp 0x407ea2
jmp 0x407eab
jmp 0x407ea6
jmp 0x407eab
jmp 0x407db0
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 0xf8]
call sub.ntoskrnl.exe_MmIsAddressValid
movzx eax, al
test eax, eax
je 0x408093
mov rax, qword [rsp + 0x90]
cmp qword [rax + 0xf8], 0
je 0x408093
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0xf8]
lea rcx, [0x0040f600]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x50], 0
jmp 0x407f0f
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x170]
mov eax, dword [rax + 0x14]
sub eax, 0x10
cmp dword [rsp + 0x50], eax
jae 0x408093
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x170]
add rax, qword [rcx + 0x18]
mov r8d, 0x10
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rcx + 0xf8]
mov rcx, rax
call sub.ntoskrnl.exe_RtlCompareMemory
cmp rax, 0x10
jne 0x40808e
mov rax, qword [rsp + 0x90]
mov byte [rax + 0x620], 0xff
mov rax, qword [rsp + 0x90]
add rax, 0x5d0
mov r8, rax
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0xf8]
mov rcx, qword [rsp + 0x170]
call fcn.004075e0
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x620]
cmp eax, 0xffffffff
je 0x40808c
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x130]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x170]
mov rax, qword [rax + 0x108]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x90]
mov r9, qword [rax + 0x630]
mov rax, qword [rsp + 0x90]
mov r8, qword [rax + 0x628]
mov rax, qword [rsp + 0x90]
movzx edx, byte [rax + 0x620]
xor ecx, ecx
call fcn.00404350
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x98], 0
je 0x40808c
mov rax, qword [rsp + 0x170]
movzx eax, byte [rax + 8]
inc al
mov rcx, qword [rsp + 0x170]
mov byte [rcx + 8], al
mov rax, qword [rsp + 0x98]
add rax, 0x75
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x98]
mov qword [rcx - 8], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [0x0040f5d0]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x408093
jmp 0x407f05
mov rdx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x170]
mov rcx, qword [rax]
call fcn.00408180
mov qword [rsp + 0x88], rax
jmp 0x4076ed
xor edx, edx
mov rcx, qword [rsp + 0x90]
call sub.ntoskrnl.exe_ExFreePoolWithTag
add rsp, 0x158
pop rdi
pop rsi
ret