Function at 0x21880
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x18]
and ecx, 3
mov edx, dword [ebp - 0x14]
and edx, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x3c]
or eax, dword [ebp - 0x38]
je 0x218fe
mov ecx, dword [ebp - 0x10]
push ecx
push 0x2d560
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
push 0x4641444b
mov edx, dword [ebp + 0x14]
shl edx, 9
push edx
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x218fe
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0x18]
je 0x2191d
mov edx, dword [ebp + 0x14]
shl edx, 9
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [ebp - 0x20], edx
push 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 0x30]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoAllocateIrp]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x21948
mov dword [ebp - 4], 0xc000009a
jmp 0x21be0
push 0
push 0
push 0
mov edx, dword [ebp + 0x14]
shl edx, 9
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 4], 0
jne 0x21984
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_IoFreeIrp]
mov dword [ebp - 4], 0xc000009a
jmp 0x21be0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 8]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 8]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], 1
mov edx, dword [ebp - 8]
mov byte [edx + 0x24], 0
mov eax, dword [ebp - 8]
mov byte [eax + 0x20], 0
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x38], 0
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x30]
mov dword [edx + 0x2c], eax
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x19c68], 6
jb 0x21a03
call fcn.00021c00
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x50], eax
mov edx, dword [ebp - 8]
movsx eax, word [edx]
shl eax, 0x10
mov ecx, dword [ebp - 8]
or eax, dword [ecx + 8]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp - 8]
push eax
call fcn.00021d50
mov ecx, dword [ebp - 8]
push ecx
call fcn.000195e0
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0x19c68], 6
jb 0x21a3d
mov edx, dword [ebp - 0x1c]
movzx eax, byte [edx + 2]
or eax, 0x10
mov ecx, dword [ebp - 0x1c]
mov byte [ecx + 2], al
mov edx, dword [ebp - 8]
push edx
call fcn.00021c20
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x19c68], 6
jb 0x21a65
mov ecx, dword [ebp - 0x1c]
movzx edx, byte [ecx + 2]
or edx, 0x10
mov eax, dword [ebp - 0x1c]
mov byte [eax + 2], dl
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ebp + 0x1c]
mov byte [ecx], dl
mov eax, dword [ebp + 0x14]
shl eax, 9
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1c]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp + 0x10]
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 0x1c]
push 0
push 0x200
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [eax + 0xc]
push edx
call sub.ntoskrnl.exe__allmul
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ntoskrnl.exe_MmBuildMdlForNonPagedPool]
push 0
push 0
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
push 1
push 1
push 1
push 0
push 0x21820
mov edx, dword [ebp - 8]
push edx
call fcn.00021c70
mov ecx, dword [ebp - 0x34]
call fcn.0001a3d0
movzx eax, byte [ebp + 0x1c]
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x19d58], eax
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x19d60], eax
mov ecx, dword [ebp + 0x10]
mov dword [edx + 0x19d64], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x19d68], eax
mov ecx, dword [ebp - 0x34]
call fcn.0001a430
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x103
jne 0x21b69
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x21b67
push 0x2c240
push 0x1183
mov edx, dword [ebp - 4]
push edx
call fcn.00019350
jmp 0x21b82
cmp dword [ebp - 4], 0
jge 0x21b82
push 0x2c240
push 0x1188
mov eax, dword [ebp - 4]
push eax
call fcn.00019350
cmp dword [ebp - 4], 0
jne 0x21bb0
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 0x18]
je 0x21bb0
movzx edx, byte [ebp + 0x1c]
cmp edx, 3
jne 0x21bb0
mov eax, dword [ebp + 0x14]
shl eax, 9
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x21bd8
mov eax, dword [ebp - 4]
push eax
movzx ecx, byte [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x2d510
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x18
xor edx, edx
jne 0x218a6
cmp dword [ebp - 0xc], 0
je 0x21bf2
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x18