Function at 0x10002e30
Capabilities:
Create device object

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x32c]
push ebx
mov ecx, esi
sub esp, 0x46c
mov eax, dword [ebp + 0xc]
call sym._get_device_id
test eax, eax
je 0x10002e70
mov edi, eax
test byte [0x10006034], 2
jne 0x10002f58
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x19c]
mov edx, 3
call sym._get_device_id
mov edi, eax
test eax, eax
jne 0x10002f90
test byte [0x10006034], 8
jne 0x100030d8
mov ebx, dword [0x1000602c]
cmp ebx, 0x1000602c
je sym._driver_add_device_8.cold
mov eax, dword [ebp + 8]
jmp 0x10002ec6
mov ebx, dword [ebx]
cmp ebx, 0x1000602c
je 0x100035c9
cmp eax, dword [ebx + 0xc]
jne 0x10002eb8
lea eax, [ebp - 0x458]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x2a
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x14]
add eax, 0x3fc
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._IoCreateDevice_28
sub esp, 0x1c
mov edi, eax
test eax, eax
je 0x10002fd0
test byte [0x10006034], 2
je 0x10002e61
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_create_bus_FDO__status__lx._n
mov dword [esp + 8], 0x10008a8c
mov dword [esp + 4], 0x10006034
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10002e61
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_get_PDO_device_id__status__lx._n
mov dword [esp + 8], 0x10008a8c
mov dword [esp + 4], 0x10006034
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8
test byte [0x10006034], 2
je 0x10002e61
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_get_PDO_instance_id__status__lx._n
mov dword [esp + 8], 0x10008a8c
mov dword [esp + 4], 0x10006034
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10002e61
mov eax, dword [ebp - 0x458]
mov edi, dword [eax + 0x28]
mov dword [edi + 0x3f8], 1
lea eax, [edi + 0x3fc]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [esp + 4], 0x5c
mov dword [esp], esi
call dword [sym.imp.ntoskrnl.exe_wcsrchr]
mov dword [esp + 8], str.HID_s
add eax, 2
mov dword [esp + 4], 0xc8
mov dword [esp + 0xc], eax
lea eax, [edi + 0x84]
mov dword [esp], eax
call sym._swprintf
lea eax, [ebp - 0x19c]
mov dword [esp + 4], eax
lea eax, [edi + 0x214]
mov dword [esp], eax
call dword [sym.imp.ntoskrnl.exe_wcscpy]
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0x3a4]
mov edx, 5
call sym._get_device_id
test eax, eax
je 0x10003063
xor eax, eax
mov word [edi + 0x3a4], ax
mov dword [esp + 8], 7
mov dword [esp + 4], str.WINEXINPUT_
mov dword [esp], esi
call dword [sym.imp.ntoskrnl.exe_wcsncmp]
test eax, eax
je 0x10003380
mov eax, 0x100090d0
mov dword [edi + 0x3f4], eax
mov eax, dword [ebp - 0x458]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [ebx + 0x20]
sub esp, 8
mov edi, eax
test eax, eax
je 0x10003350
test byte [0x10006034], 2
jne 0x1000355a
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call sym._IoDeleteDevice_4
sub esp, 4
jmp 0x10002e61
lea eax, [ebp - 0x19c]
shr eax, 0x10
je 0x10003508
lea eax, [ebp - 0x19c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x45c], str._invalid_
sub esp, 8
test eax, eax
jne 0x10003202
cmp word [ebp - 0x19c], 0
je 0x10003587
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [ebp + edx*2 - 0x19a], 0
jne 0x10003128
mov ecx, 0x224c
lea edi, [ebp - 0x19c]
mov word [ebp - 0x458], cx
lea ecx, [ebp - 0x456]
jmp 0x10003193
cmp ax, 9
je 0x100034d0
cmp ax, 0xa
jne 0x1000344e
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
nop
lea ebx, [ebp - 0x336]
lea eax, [edx - 1]
cmp ecx, ebx
ja 0x100031d0
test edx, edx
jle 0x100031d0
mov edx, eax
movzx eax, word [edi]
add edi, 2
cmp ax, 0xd
je 0x100034b8
jbe 0x10003158
cmp ax, 0x22
je 0x100034a0
cmp ax, 0x5c
jne 0x10003441
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x10003180
mov byte [ecx], 0x22
test eax, eax
jle 0x100035a0
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x458]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [ebp - 0x45c], eax
mov eax, esi
shr eax, 0x10
je 0x100034e8
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, str._invalid_
sub esp, 8
test eax, eax
jne 0x1000330e
cmp word [ebp - 0x32c], 0
je 0x100035a8
lea esi, [esi]
mov edx, eax
lea eax, [eax + 1]
cmp word [esi + edx*2 + 2], 0
jne 0x10003240
mov ebx, 0x224c
lea ecx, [ebp - 0x456]
mov edi, esi
mov word [ebp - 0x458], bx
jmp 0x100032a3
cmp ax, 9
je 0x100033c0
cmp ax, 0xa
jne 0x100033de
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
nop
lea eax, [edx - 1]
test edx, edx
jle 0x100032e0
lea edx, [ebp - 0x336]
cmp ecx, edx
ja 0x100032e0
mov edx, eax
movzx eax, word [edi]
add edi, 2
cmp ax, 0xd
je 0x100033a8
jbe 0x10003268
cmp ax, 0x22
je 0x10003430
cmp ax, 0x5c
jne 0x100033d1
mov ebx, 0x5c5c
add ecx, 2
mov word [ecx - 2], bx
jmp 0x10003290
mov byte [ecx], 0x22
test eax, eax
jle 0x100035c1
mov edx, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], dx
mov byte [eax], 0
lea eax, [ebp - 0x458]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edx, eax
mov eax, dword [ebp - 0x45c]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.Adding_device_to_PDO__p__id__s_s._n
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0x10008a8c
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10006034
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10002e9a
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call sym._IoAttachDeviceToDeviceStack_8
mov eax, dword [ebp - 0x458]
sub esp, 8
and dword [eax + 0x1c], 0xffffff7f
jmp 0x10002e61
mov dword [esp + 4], str.XI_
mov dword [esp], esi
call dword [sym.imp.ntoskrnl.exe_wcsstr]
test eax, eax
je 0x10003084
mov eax, 0x10008aa0
jmp 0x10003089
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10003290
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10003290
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x10003550
mov ebx, eax
mov byte [ecx], 0x5c
add ecx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdefdriver_add_device]
mov byte [ecx - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefdriver_add_device]
mov byte [ecx - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + str.0123456789abcdefdriver_add_device]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefdriver_add_device]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x10003290
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10003290
lea ebx, [eax - 0x20]
cmp bx, 0x5e
jbe 0x10003540
mov ebx, eax
mov byte [ecx], 0x5c
add ecx, 5
shr bx, 0xc
movzx ebx, bx
movzx ebx, byte [ebx + str.0123456789abcdefdriver_add_device]
mov byte [ecx - 4], bl
mov ebx, eax
shr bx, 8
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefdriver_add_device]
mov byte [ecx - 3], bl
mov ebx, eax
and eax, 0xf
shr bx, 4
movzx eax, byte [eax + str.0123456789abcdefdriver_add_device]
and ebx, 0xf
movzx ebx, byte [ebx + str.0123456789abcdefdriver_add_device]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x10003180
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10003180
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10003180
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x10003180
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov edx, eax
jmp 0x1000330e
lea eax, [ebp - 0x19c]
mov dword [esp], str._04x
mov dword [ebp - 0x45c], eax
movzx eax, word [ebp - 0x45c]
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov dword [ebp - 0x45c], eax
jmp 0x10003202
mov byte [ecx], al
add ecx, 1
jmp 0x10003180
mov byte [ecx], al
add ecx, 1
jmp 0x10003290
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Minidriver_AddDevice_failed___lx__n
mov dword [esp + 8], 0x10008a8c
mov dword [esp + 4], 0x10006034
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x100030bc
mov eax, 0x224c
mov byte [ebp - 0x456], 0x22
lea ecx, [ebp - 0x456]
mov word [ebp - 0x458], ax
lea eax, [ecx + 1]
jmp 0x100031eb
mov edi, 0x224c
mov byte [ebp - 0x456], 0x22
lea ecx, [ebp - 0x456]
mov word [ebp - 0x458], di
lea eax, [ecx + 1]
jmp 0x100032fb
jmp sym._driver_add_device_8.cold