Function at 0x11880
Capabilities:
Create device object
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x12478
push 0x11cc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffbb0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x50], 0xc000000d
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
xor eax, eax
mov word [ebp - 0x450], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x44e]
push ecx
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov dword [ebp - 0x458], 0
mov byte [ebp - 0x1d], 0
call dword [sym.imp.ntoskrnl.exe_ExGetPreviousMode]
mov byte [ebp - 0x3d], al
mov edx, dword [ebp + 0xc]
push edx
call fcn.00010340
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x458], eax
cmp dword [ebp - 0x1c], 0x400
je 0x1196e
mov dword [ebp - 0x50], 0xc000000d
jmp 0x11c25
mov dword [ebp - 4], 0
push 0x400
push 0
lea ecx, [ebp - 0x450]
push ecx
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x1fe
mov edx, dword [ebp - 0x458]
push edx
lea eax, [ebp - 0x450]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
push 0x1fe
mov ecx, dword [ebp - 0x458]
add ecx, 0x200
push ecx
lea edx, [ebp - 0x250]
push edx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x11a02
lea ecx, [ebp - 0x250]
push ecx
call fcn.00011520
movzx edx, al
test edx, edx
je 0x11a21
mov dword [ebp - 0x50], 0
jmp 0x11c25
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea edx, [ebp - 0x454]
push edx
lea eax, [ebp - 0x250]
push eax
call fcn.00010fe0
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jge 0x11a64
mov ecx, dword [ebp - 0x50]
push ecx
push str._BCameraProtect__RefCameraDeviceByName_fail:_0x_x_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
jmp 0x11c25
cmp dword [ebp - 0x454], 0
jne 0x11a83
mov edx, dword [ebp - 0x50]
push edx
push str._BCameraProtect__RefCameraDeviceByName__n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
jmp 0x11c25
mov eax, dword [ebp - 0x454]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [ebp - 0x454]
push edx
push str._BCameraProtect__RefCameraDeviceByName_NewDevice_0x_p__pCameraDevobj__DeviceType0x_x_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 0xc
mov eax, dword [ebp - 0x454]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x45c], ecx
cmp dword [ebp - 0x45c], 0
je 0x11b0f
mov edx, dword [ebp - 0x45c]
cmp dword [edx + 0x2c], 0x2f
jne 0x11ac9
mov byte [ebp - 0x1d], 1
mov eax, dword [ebp - 0x45c]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 8]
jne 0x11afe
mov eax, dword [ebp - 0x45c]
push eax
mov ecx, dword [ebp - 0x454]
push ecx
lea edx, [ebp - 0x28]
push edx
push str._BCameraProtect__pCameraDevobj__wZ_:0x_p__is_already_attached:0x_p_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x10
jmp 0x11c25
mov eax, dword [ebp - 0x45c]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x45c], ecx
jmp 0x11ab0
movzx edx, byte [ebp - 0x1d]
test edx, edx
jne 0x11b1c
jmp 0x11c25
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0x22
push 0
push 0x40c
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jge 0x11b5d
xor eax, eax
je 0x11b58
mov ecx, dword [ebp - 0x50]
push ecx
push str._BCameraProtect__IoCreateDevice_fail_in_NewCamera:_0x_x_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
jmp 0x11c25
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x30], eax
push 0x40c
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov edx, dword [ebp - 0x30]
mov dword [edx], 0x123abc
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x454]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStackSafe]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jge 0x11bb3
lea eax, [ebp - 0x28]
push eax
push str.IoAttachDeviceToDeviceStackSafe_Fail:_wZ_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
jmp 0x11c25
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x20]
mov dword [ecx + 0x20], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x1c]
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x1c]
and edx, 0xffffff7f
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x1c], edx
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x44]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x454]
mov dword [eax + 8], ecx
lea edx, [ebp - 0x450]
push edx
push 0x200
mov eax, dword [ebp - 0x30]
add eax, 0xc
push eax
call fcn.000102f0
lea ecx, [ebp - 0x250]
push ecx
push 0x200
mov edx, dword [ebp - 0x30]
add edx, 0x20c
push edx
call fcn.000102f0
cmp dword [ebp - 0x38], 0
je 0x11c34
mov ecx, dword [ebp - 0x38]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
cmp dword [ebp - 0x454], 0
je 0x11c49
mov ecx, dword [ebp - 0x454]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x50]
mov dword [eax + 0x18], ecx
xor dl, dl
mov ecx, dword [ebp + 0xc]
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8