Function at 0x421910
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x638
mov rax, qword [0x004408f0]
mov qword [rsp + 0x628], rax
mov qword [rsp + 0x5a0], 0
mov word [rsp + 0x40], 0
lea rax, [rsp + 0x42]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x598], 0
mov dword [rsp + 0x98], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0xc0], 0
lea rax, [rsp + 0xc8]
mov rdi, rax
xor eax, eax
mov ecx, 0x4c8
rep stosb byte [rdi], al
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x590], 0
mov word [rsp + 0xa0], 0
lea rax, [rsp + 0xa2]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov qword [rsp + 0x88], 0
lea rax, [rsp + 0x5b0]
lea rcx, [0x00434970]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x66
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x60]
lea rcx, [0x00434940]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x24
rep movsb byte [rdi], byte [rsi]
mov rax, qword [0x004c6438]
mov byte [rax + 0x89], 0x33
mov rax, qword [0x004c6438]
mov byte [rax + 0x8a], 0xc0
mov rax, qword [0x004c6438]
mov byte [rax + 0x8b], 0xc3
mov rax, qword [0x004c6438]
add rax, 0x8c
xor r9d, r9d
mov r8, rax
xor edx, edx
xor ecx, ecx
call sub.ntoskrnl.exe_PsGetVersion
lea rdx, [0x00434910]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov qword [rsp + 0x88], rax
mov rax, qword [0x004c6438]
add rax, 8
mov r8d, 8
mov rdx, qword [rsp + 0x88]
mov rcx, rax
call fcn.004319d0
lea rdx, [0x004348e0]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov qword [rsp + 0x88], rax
mov rax, qword [0x004c6438]
add rax, 0x88
mov r8d, 1
mov rdx, qword [rsp + 0x88]
mov rcx, rax
call fcn.004319d0
lea rdx, [0x004348b0]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x004c6438]
mov qword [rcx + 0x118], rax
lea rdx, [0x00434880]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x004c6438]
mov qword [rcx + 0x120], rax
lea rdx, [0x00434850]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x004c6438]
mov qword [rcx + 0x148], rax
lea rdx, [0x00434820]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x004c6438]
mov qword [rcx + 0x150], rax
lea rdx, [0x00434800]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x004c6438]
mov qword [rcx + 0x158], rax
lea rdx, [0x004347d0]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x004c6438]
mov qword [rcx + 0x160], rax
lea rdx, [0x004347a0]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x004c6438]
mov qword [rcx + 0x168], rax
lea rdx, [0x004337c0]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x004c6438]
mov qword [rcx + 0x170], rax
lea rdx, [0x00434770]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x004c6438]
mov qword [rcx + 0x178], rax
lea rdx, [0x00434470]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x004c6438]
mov qword [rcx + 0x188], rax
lea rdx, [0x00434740]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x004c6438]
mov qword [rcx + 0x90], rax
lea rdx, [0x00434710]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x004c6438]
mov qword [rcx + 0x98], rax
lea rdx, [0x004346e0]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x004c6438]
mov qword [rcx + 0xa0], rax
lea rdx, [0x004346a0]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [0x004c6438]
mov qword [rcx + 0x190], rax
lea rdx, [0x00434660]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [rsp + 0x650]
mov qword [rcx + 0x130], rax
lea rdx, [0x00434620]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [rsp + 0x650]
mov qword [rcx + 0x138], rax
lea rdx, [0x004345d0]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov rcx, qword [rsp + 0x650]
mov qword [rcx + 0x140], rax
mov rax, qword [0x004c6438]
add rax, 0x526
mov rcx, qword [0x004c6438]
mov qword [rcx + 0x110], rax
mov rax, qword [0x004c6438]
add rax, 0x526
mov r8d, 0x200
lea rdx, [0x004326d0]
mov rcx, rax
call fcn.004319d0
mov dword [rsp + 0xf0], 0x10000b
lea rcx, [rsp + 0xc0]
call sub.ntoskrnl.exe_RtlCaptureContext
mov r8d, 0x7246704e
mov edx, 0x40000
xor ecx, ecx
call sub.ntoskrnl.exe_ExAllocatePoolWithTag
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0xb8], 0
je 0x421f8d
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xc0]
call sub.ntoskrnl.exe_KeCapturePersistentThreadState
mov rax, qword [rsp + 0xb8]
add rax, 0x2080
mov qword [rsp + 0xb0], rax
mov rax, qword [0x004c6438]
add rax, 0x1a0
mov r8d, 0x318
mov rdx, qword [rsp + 0xb0]
mov rcx, rax
call fcn.004319d0
mov rax, qword [rsp + 0xb0]
add rax, 0x318
mov qword [rsp + 0x590], rax
mov rax, qword [0x004c6438]
add rax, 0x4b8
mov r8d, 0x68
mov rdx, qword [rsp + 0x590]
mov rcx, rax
call fcn.004319d0
mov rax, qword [0x004c6438]
mov rcx, qword [0x004c6438]
mov rcx, qword [rcx + 0x1e8]
mov qword [rax], rcx
mov rax, qword [0x004c6438]
mov rax, qword [rax]
mov rcx, qword [0x004c6438]
mov rax, qword [rax]
mov qword [rcx + 0x30], rax
mov edx, 0x7246704e
mov rcx, qword [rsp + 0xb8]
call sub.ntoskrnl.exe_ExFreePoolWithTag
mov rax, qword [0x004c6438]
mov word [rax + 0x520], 0x30
mov rax, qword [0x004c6438]
mov word [rax + 0x522], 0x2f8
lea rdx, [0x00434590]
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_RtlInitUnicodeString
lea rcx, [rsp + 0xa0]
call sub.ntoskrnl.exe_MmGetSystemRoutineAddress
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
add rax, 0x1000
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call fcn.00423210
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x422031
mov rax, qword [rsp + 0x90]
movsxd rax, dword [rax + 3]
mov rcx, qword [rsp + 0x90]
lea rax, [rcx + rax + 7]
mov rcx, qword [rsp + 0x650]
mov qword [rcx + 0x10], rax
lea rdx, [0x004338c0]
mov rax, qword [rsp + 0x650]
mov rcx, qword [rax + 0x1b8]
call fcn.00422530
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x422146
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x650]
add rax, qword [rcx + 0x1b8]
mov qword [rsp + 0x598], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0x10], ecx
jbe 0x42209f
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x10]
mov dword [rsp + 0x620], eax
jmp 0x4220ae
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 8]
mov dword [rsp + 0x620], eax
mov eax, dword [rsp + 0x620]
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x598]
add rcx, rax
mov rax, rcx
lea r8, [rsp + 0x5b0]
mov rdx, rax
mov rcx, qword [rsp + 0x598]
call fcn.00423210
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x422146
mov rax, qword [rsp + 0x90]
movsxd rax, dword [rax + 0x17]
mov rcx, qword [rsp + 0x90]
lea rax, [rcx + rax + 0x1b]
mov rcx, qword [rsp + 0x650]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x90]
movsxd rax, dword [rax + 0x1e]
mov rcx, qword [rsp + 0x90]
lea rax, [rcx + rax + 0x22]
mov rcx, qword [rsp + 0x650]
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x650]
add rax, 0x60
mov rcx, rax
call fcn.00403440
mov rcx, qword [rsp + 0x628]
call fcn.00432250
add rsp, 0x638
pop rdi
pop rsi
ret