Function at 0x4041d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x14], 0xc0000001
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0xc], 0
push 0x4044bc
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
mov edx, dword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
mov eax, dword [edx]
push eax
push 0
push 0
push 0x40
lea ecx, [ebp - 0x34]
push ecx
call sub.ntoskrnl.exe_ObReferenceObjectByName
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x404258
push 0x4044da
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, 0xc0000001
jmp 0x404444
mov ecx, dword [ebp - 0x20]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
push 0x4044fe
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
push 0x40451a
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
mov ecx, dword [sym.imp.ntoskrnl.exe_IoDriverObjectType]
mov edx, dword [ecx]
push edx
push 0
push 0
push 0x40
lea eax, [ebp - 0x34]
push eax
call sub.ntoskrnl.exe_ObReferenceObjectByName
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x4042bf
push 0x40453c
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, 0xc0000001
jmp 0x404444
mov ecx, dword [ebp - 0x18]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404441
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
je 0x404433
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
je 0x404425
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x1c]
jne 0x404417
mov eax, dword [ebp - 0x10]
push eax
push 0x404564
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x24], 0
jmp 0x404354
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x24], 0x1000
jge 0x404409
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
jne 0x404380
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
jmp 0x4042ed
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0x10]
jne 0x404404
mov eax, dword [ebp - 8]
mov dword [0x403008], eax
mov ecx, dword [ebp - 8]
push ecx
push 0x40457e
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x28]
jbe 0x404402
mov edx, dword [ebp - 0x28]
add edx, dword [ebp - 0x2c]
cmp dword [ebp - 8], edx
jae 0x404402
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx ecx, al
test ecx, ecx
je 0x404402
mov edx, dword [ebp - 8]
mov dword [0x40300c], edx
mov byte [0x403010], 1
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
push eax
push 0x404596
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
jmp 0x404441
jmp 0x404409
jmp 0x404342
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
jmp 0x4042ed
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
jmp 0x404309
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x10], eax
jmp 0x4042f6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 4], edx
jmp 0x4042e3
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret