Function at 0x100031e0
Capabilities:
Create device object

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x32c]
sub esp, 0x470
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov esi, dword [ebp + 8]
call sym._get_device_id
test eax, eax
je 0x10003220
test byte [0x10006034], 2
mov edx, eax
jne 0x100032e0
lea esp, [ebp - 0xc]
mov eax, edx
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
test eax, eax
mov edx, eax
jne 0x10003328
test byte [0x10006034], 8
jne 0x10003468
mov ebx, dword [0x1000602c]
cmp ebx, 0x1000602c
jne 0x1000326e
jmp sym._driver_add_device_8.cold
mov ebx, dword [ebx]
cmp ebx, 0x1000602c
je 0x10003960
cmp esi, dword [ebx + 0xc]
jne 0x10003260
lea eax, [ebp - 0x458]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, 0x2a
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], esi
add eax, 0x3fc
mov dword [esp + 4], eax
call sym._IoCreateDevice_28
sub esp, 0x1c
test eax, eax
mov edx, eax
je 0x10003350
test byte [0x10006034], 2
je 0x10003214
mov dword [esp + 0x10], eax
mov ebx, str.Failed_to_create_bus_FDO__status__lx._n
mov dword [ebp - 0x45c], eax
mov dword [esp + 0xc], ebx
jmp 0x100032f3
mov dword [esp + 0x10], eax
mov dword [ebp - 0x45c], eax
mov eax, str.Failed_to_get_PDO_device_id__status__lx._n
mov dword [esp + 0xc], eax
mov dword [esp], 1
mov edx, 0x10008a8c
mov ecx, 0x10006034
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x45c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret 8
test byte [0x10006034], 2
je 0x10003214
mov dword [esp + 0x10], eax
mov dword [ebp - 0x45c], eax
mov eax, str.Failed_to_get_PDO_instance_id__status__lx._n
mov dword [esp + 0xc], eax
jmp 0x100032f3
mov eax, dword [ebp - 0x458]
mov esi, dword [eax + 0x28]
mov eax, 1
mov dword [esi + 0x3f8], eax
lea eax, [esi + 0x3fc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov dword [esi + 4], eax
mov eax, 0x5c
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.ntoskrnl.exe_wcsrchr]
add eax, 2
mov dword [esp + 0xc], eax
mov eax, str.HID_s
mov dword [esp + 8], eax
mov eax, 0xc8
mov dword [esp + 4], eax
lea eax, [esi + 0x84]
mov dword [esp], eax
call sym._swprintf
lea eax, [ebp - 0x19c]
mov dword [esp + 4], eax
lea eax, [esi + 0x214]
mov dword [esp], eax
call dword [sym.imp.ntoskrnl.exe_wcscpy]
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x3a4]
mov edx, 5
call sym._get_device_id
test eax, eax
je 0x100033e7
xor eax, eax
mov word [esi + 0x3a4], ax
mov dword [esp], edi
mov edx, 7
mov ecx, str.WINEXINPUT_
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call dword [sym.imp.ntoskrnl.exe_wcsncmp]
test eax, eax
je 0x100035a0
mov eax, 0x100090d0
mov dword [esi + 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
test eax, eax
mov edx, eax
je 0x10003568
test byte [0x10006034], 2
jne 0x100038d8
mov dword [ebp - 0x45c], edx
mov eax, dword [ebp - 0x458]
mov dword [esp], eax
call sym._IoDeleteDevice_4
mov edx, dword [ebp - 0x45c]
sub esp, 4
jmp 0x10003214
lea eax, [ebp - 0x19c]
shr eax, 0x10
je 0x10003888
mov eax, 0xffffffff
mov dword [esp + 4], eax
lea eax, [ebp - 0x19c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x100035c4
cmp word [ebp - 0x19c], 0
je 0x1000393f
lea esi, [esi]
nop
mov edx, eax
cmp word [ebp + edx*2 - 0x19a], 0
lea eax, [eax + 1]
jne 0x100034b0
mov dword [ebp + 8], esi
lea ebx, [ebp - 0x19c]
mov ecx, 0x224c
mov word [ebp - 0x458], cx
lea ecx, [ebp - 0x456]
mov dword [ebp - 0x45c], ebx
jmp 0x1000352b
cmp eax, 9
je 0x10003748
cmp eax, 0xa
jne 0x10003762
mov word [ecx], 0x6e5c
add ecx, 2
lea esi, [esi]
lea esi, [esi]
lea esi, [ebp - 0x336]
lea eax, [edx - 1]
cmp ecx, esi
ja 0x100037c0
test edx, edx
jle 0x100037c0
mov edx, eax
add dword [ebp - 0x45c], 2
mov eax, dword [ebp - 0x45c]
movzx eax, word [eax - 2]
cmp eax, 0xd
je 0x10003738
jbe 0x100034e8
cmp eax, 0x22
je 0x100037b0
cmp eax, 0x5c
jne 0x10003755
mov word [ecx], 0x5c5c
add ecx, 2
jmp 0x10003510
mov dword [ebp - 0x45c], eax
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]
mov edx, dword [ebp - 0x45c]
and dword [eax + 0x1c], 0xffffff7f
sub esp, 8
jmp 0x10003214
mov dword [esp], edi
mov eax, str.XI_
mov dword [esp + 4], eax
call dword [sym.imp.ntoskrnl.exe_wcsstr]
test eax, eax
je 0x1000340a
mov eax, 0x10008aa0
jmp 0x1000340f
mov eax, str._invalid_
mov dword [ebp - 0x460], eax
mov eax, edi
shr eax, 0x10
je 0x10003870
mov dword [esp], edi
mov ebx, 0xffffffff
mov dword [esp + 4], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
sub esp, 8
test eax, eax
jne 0x10003914
cmp word [ebp - 0x32c], 0
je 0x1000391e
lea esi, [esi]
lea esi, [esi]
mov edx, eax
cmp word [edi + edx*2 + 2], 0
lea eax, [eax + 1]
jne 0x10003610
mov dword [ebp - 0x45c], edi
lea ecx, [ebp - 0x456]
mov ebx, 0x224c
mov word [ebp - 0x458], bx
mov dword [ebp + 8], esi
jmp 0x1000367b
cmp eax, 9
je 0x10003728
cmp eax, 0xa
jne 0x100036c7
mov word [ecx], 0x6e5c
add ecx, 2
lea esi, [esi]
lea esi, [esi]
lea eax, [edx - 1]
test edx, edx
jle 0x10003800
lea esi, [ebp - 0x336]
cmp ecx, esi
ja 0x10003800
mov edx, eax
add dword [ebp - 0x45c], 2
mov eax, dword [ebp - 0x45c]
movzx eax, word [eax - 2]
cmp eax, 0xd
je 0x100036b0
jbe 0x10003640
cmp eax, 0x22
je 0x10003718
cmp eax, 0x5c
nop
jne 0x100036ba
mov word [ecx], 0x5c5c
add ecx, 2
jmp 0x10003660
mov word [ecx], 0x725c
add ecx, 2
jmp 0x10003660
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x100038d0
mov byte [ecx], 0x5c
mov esi, eax
add ecx, 5
shr esi, 0xc
movzx ebx, byte [esi + str.0123456789abcdefdriver_add_device]
mov esi, eax
shr esi, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefdriver_add_device]
mov esi, eax
shr esi, 4
and eax, 0xf
and esi, 0xf
movzx eax, byte [eax + str.0123456789abcdefdriver_add_device]
mov byte [ecx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefdriver_add_device]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x10003660
mov word [ecx], 0x225c
add ecx, 2
jmp 0x10003660
mov word [ecx], 0x745c
add ecx, 2
jmp 0x10003660
mov word [ecx], 0x725c
add ecx, 2
jmp 0x10003510
mov word [ecx], 0x745c
add ecx, 2
jmp 0x10003510
lea esi, [eax - 0x20]
cmp si, 0x5e
jbe 0x100038c0
mov byte [ecx], 0x5c
mov esi, eax
add ecx, 5
shr esi, 0xc
movzx ebx, byte [esi + str.0123456789abcdefdriver_add_device]
mov esi, eax
shr esi, 8
and esi, 0xf
mov byte [ecx - 4], bl
movzx ebx, byte [esi + str.0123456789abcdefdriver_add_device]
mov esi, eax
shr esi, 4
and eax, 0xf
and esi, 0xf
movzx eax, byte [eax + str.0123456789abcdefdriver_add_device]
mov byte [ecx - 3], bl
movzx ebx, byte [esi + str.0123456789abcdefdriver_add_device]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x10003510
mov word [ecx], 0x225c
add ecx, 2
jmp 0x10003510
mov byte [ecx], 0x22
test eax, eax
mov esi, dword [ebp + 8]
jle 0x10003958
mov word [ecx + 1], 0x2e2e
lea eax, [ecx + 4]
mov byte [ecx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x458]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [ebp - 0x460], eax
jmp 0x100035cf
mov byte [ecx], 0x22
test eax, eax
mov esi, dword [ebp + 8]
jle 0x10003937
mov word [ecx + 1], 0x2e2e
lea eax, [ecx + 4]
mov byte [ecx + 3], 0x2e
mov byte [eax], 0
lea eax, [ebp - 0x458]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov dword [esp + 0x14], eax
mov ecx, dword [ebp - 0x460]
mov edx, 0x10008a8c
mov dword [esp + 8], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], 3
mov dword [esp + 0x18], ecx
mov ecx, 0x10006034
mov dword [esp + 0x10], eax
mov eax, str.Adding_device_to_PDO__p__id__s_s._n
mov dword [esp + 0xc], eax
mov dword [esp + 4], ecx
call sym._wine_dbg_log.constprop.0_1
jmp 0x1000324a
mov dword [esp], str._04x
movzx eax, di
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x1000382c
mov dword [esp], str._04x
lea eax, [ebp - 0x19c]
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 - 0x460], eax
jmp 0x100035cf
mov byte [ecx], al
inc ecx
jmp 0x10003510
mov byte [ecx], al
inc ecx
jmp 0x10003660
mov dword [esp + 0x10], eax
mov dword [ebp - 0x45c], eax
mov eax, str.Minidriver_AddDevice_failed___lx__n
mov dword [esp + 0xc], eax
mov eax, 0x10008a8c
mov dword [esp + 8], eax
mov eax, 0x10006034
mov dword [esp + 4], eax
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x45c]
jmp 0x10003442
mov eax, str._invalid_
jmp 0x1000382c
mov byte [ebp - 0x456], 0x22
lea ecx, [ebp - 0x456]
mov eax, 0x224c
mov word [ebp - 0x458], ax
lea eax, [ecx + 1]
jmp 0x1000381b
mov byte [ebp - 0x456], 0x22
lea ecx, [ebp - 0x456]
mov eax, 0x224c
mov word [ebp - 0x458], ax
lea eax, [ecx + 1]
jmp 0x100037db
jmp sym._driver_add_device_8.cold