Function at 0x1d970
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x98
call fcn.00012440
cdqe
lea rdi, [0x000327e0]
mov rdi, qword [rdi + rax*8]
call fcn.00012440
movsxd rcx, eax
lea rax, [0x000327e0]
mov rax, qword [rax + rcx*8]
mov rax, qword [rax + 0x18]
cmp qword [rdi + 8], rax
jb 0x1d9b6
mov dword [rsp + 0x84], 1
jmp 0x1d9c1
mov dword [rsp + 0x84], 0
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x54], eax
call fcn.00012440
mov edx, eax
lea rcx, [0x000261f0]
call sub.ntoskrnl.exe_DbgPrint
cmp dword [rsp + 0x54], 0
je 0x1d9eb
call fcn.0001d950
call fcn.00012440
cdqe
lea rdi, [0x000327e0]
mov rdi, qword [rdi + rax*8]
call fcn.00012440
cdqe
lea rcx, [0x000327e0]
mov rcx, qword [rcx + rax*8]
mov rcx, qword [rcx]
mov rax, qword [rdi + 8]
sub rax, rcx
mov qword [rsp + 0x60], rax
call fcn.00011010
movzx eax, al
cmp eax, 2
jge 0x1da34
call fcn.0001d490
mov byte [rsp + 0x50], al
call fcn.00012440
mov edx, eax
lea rcx, [0x00026210]
call sub.ntoskrnl.exe_DbgPrint
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov rdx, rax
lea rcx, [0x00026220]
call sub.ntoskrnl.exe_DbgPrint
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1dad5
call fcn.00012440
cdqe
lea rsi, [0x000327e0]
mov rsi, qword [rsi + rax*8]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsi]
mov rcx, qword [rsp + 0x60]
rep movsb byte [rdi], byte [rsi]
mov rdx, qword [rsp + 0x58]
lea rcx, [0x00026240]
call sub.ntoskrnl.exe_DbgPrint
call fcn.00012440
cdqe
lea rdi, [0x000327e0]
mov rdi, qword [rdi + rax*8]
call fcn.00012440
cdqe
lea rcx, [0x000327e0]
mov rcx, qword [rcx + rax*8]
mov rax, qword [rdi]
mov qword [rcx + 8], rax
jmp 0x1daf9
lea rcx, [0x00026250]
call sub.ntoskrnl.exe_DbgPrint
movzx ecx, byte [rsp + 0x50]
call fcn.0001ba00
call fcn.00012580
mov eax, dword [rsp + 0x54]
jmp 0x1dd2e
movzx ecx, byte [rsp + 0x50]
call fcn.0001ba00
cmp dword [0x00030448], 0
je 0x1db74
lea rcx, [0x00026270]
call sub.ntoskrnl.exe_DbgPrint
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x00030440]
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [rsp + 0x78], eax
mov edx, dword [rsp + 0x78]
lea rcx, [0x00026290]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1dd13
lea rcx, [0x000262b0]
call sub.ntoskrnl.exe_DbgPrint
cmp qword [0x00030410], 0
je 0x1dd07
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x00030420]
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
test eax, eax
jne 0x1dd07
lea rcx, [0x000262e0]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [0x000303c0]
call qword [sym.imp.ntoskrnl.exe_ExAcquireFastMutex]
lea rcx, [0x00026320]
call sub.ntoskrnl.exe_DbgPrint
cmp qword [0x00030410], 0
je 0x1dc59
mov dword [rsp + 0x7c], 0xffffffff
mov dword [rsp + 0x80], 0
jmp 0x1dc09
mov eax, dword [rsp + 0x80]
add eax, 1
mov dword [rsp + 0x80], eax
mov eax, dword [0x0002919c]
cmp dword [rsp + 0x80], eax
jge 0x1dc57
movsxd rcx, dword [rsp + 0x80]
imul rcx, rcx, 0x30
mov rax, qword [0x00030410]
cmp dword [rax + rcx], 0
je 0x1dc55
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x7c], eax
movsxd rcx, dword [rsp + 0x7c]
imul rcx, rcx, 0x30
mov rax, qword [0x00030410]
mov dword [rax + rcx], 0
jmp 0x1dc57
jmp 0x1dbf8
jmp 0x1dc61
mov dword [rsp + 0x7c], 0xffffffff
cmp dword [rsp + 0x7c], 0
jl 0x1dcf8
mov edx, dword [rsp + 0x7c]
lea rcx, [0x00026360]
call sub.ntoskrnl.exe_DbgPrint
movsxd rdx, dword [rsp + 0x7c]
imul rdx, rdx, 0x30
mov rcx, qword [0x00030410]
mov rax, qword [rsp + 0x58]
mov qword [rcx + rdx + 8], rax
movsxd rdx, dword [rsp + 0x7c]
imul rdx, rdx, 0x30
mov rcx, qword [0x00030410]
mov eax, dword [rsp + 0x60]
mov dword [rcx + rdx + 0x10], eax
call fcn.00012440
mov edx, eax
movsxd rcx, dword [rsp + 0x7c]
imul rcx, rcx, 0x30
mov rax, qword [0x00030410]
mov dword [rax + rcx + 0x14], edx
lea rcx, [0x00026380]
call sub.ntoskrnl.exe_DbgPrint
movsxd rcx, dword [rsp + 0x7c]
imul rcx, rcx, 0x30
mov rax, qword [0x00030410]
lea rcx, [rax + rcx + 0x18]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.ntoskrnl.exe_KeSetEvent]
lea rcx, [0x000303c0]
call qword [sym.imp.ntoskrnl.exe_ExReleaseFastMutex]
jmp 0x1dd13
lea rcx, [0x000263b0]
call sub.ntoskrnl.exe_DbgPrint
call fcn.00012580
mov eax, dword [rsp + 0x54]
jmp 0x1dd2e
add rsp, 0x98
pop rdi
pop rsi
ret