Function at 0x10002590
Capabilities:
Create device object
Create thread
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
push str.DriverEntry_Begin
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
cmp dword [0x10004008], 0
mov eax, 0x24
mov ecx, 0x26
mov word [esp + 0x18], ax
mov word [esp + 0x1a], cx
mov dword [esp + 0x1c], str.__C:_rentdrv.log
je 0x100025cf
int3
lea edx, [esp + 0x18]
push edx
call fcn.100013d0
mov dword [0x10004008], eax
test eax, eax
jne 0x10002602
push 0xc0000001
push str.kLogInit_failure_status_0x_x
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov eax, 0xc0000001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push str.Device_rentdrv2
lea eax, [esp + 0x24]
push eax
call ebx
mov edi, dword [ebp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0x22
lea edx, [esp + 0x30]
push edx
push 0xa8
push edi
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
jne 0x100027de
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 0x28]
push str.DosDevices_rentdrv2
lea ecx, [esp + 0x2c]
push ecx
call ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ebx, eax
test ebx, ebx
je 0x1000267a
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0xc]
mov dword [edi + 0x34], 0x100027f0
mov eax, 0x10002900
mov dword [edi + 0x38], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x70], 0x10002920
push 0
lea eax, [esi + 0x58]
push 0
lea edi, [esi + 0x6c]
mov dword [eax + 4], eax
mov dword [eax], eax
push edi
mov dword [0x10006018], edx
mov byte [0x1000601c], 0
mov dword [esi + 0x60], 0
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
push 0
lea eax, [esi + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_KeInitializeTimerEx]
mov ecx, dword [esp + 0xc]
push ecx
push 0x10002b30
lea edx, [esi + 0x38]
push edx
call dword [sym.imp.ntoskrnl.exe_KeInitializeDpc]
mov byte [esi + 0x68], 0
mov eax, dword [esp + 0xc]
push eax
push 0x10002c80
push 0
push 0
push 0
push 0x1fffff
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov ebx, eax
test ebx, ebx
jge 0x10002721
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esi + 0x64]
push eax
push 0
push 0
push 0x1fffff
push ecx
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ebx, eax
test ebx, ebx
jge 0x10002771
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0
push 0
push edi
mov byte [esi + 0x68], 1
call dword [sym.imp.ntoskrnl.exe_KeSetEvent]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
lea eax, [esi + 0x7c]
call fcn.100022f0
mov edi, eax
test edi, edi
jge 0x100027a5
push edi
push str.WorkerStart_failed_Status_0x_x
push 3
call fcn.100017a0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.BaseNamedObjectsRentDrvProcessEvent2
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateNotificationEvent]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.ntoskrnl.exe_KeClearEvent]
push str.DriverEntry_End
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8