Function at 0x10003b20
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x264
mov dword [ebp - 0x250], eax
mov edi, dword [edx + 0x28]
xor eax, eax
xor edx, edx
mov dword [ebp + eax - 0x22c], edx
mov dword [ebp + eax - 0x228], edx
add eax, 8
cmp eax, 0x20
jb 0x10003b3b
mov dword [esp + 4], ebx
xor eax, eax
xor esi, esi
mov dword [ebp - 0x231], eax
lea eax, [ebp - 0x240]
mov dword [esp + 0x18], eax
mov eax, 0x20
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x22c]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp], 0xb0027
mov dword [ebp - 0x235], esi
mov byte [ebp - 0x22d], 0
call sym._call_minidriver
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x10003bc0
test byte [0x10006034], 2
jne 0x10003db0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi]
mov esi, str.DeviceHID_p_p
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 8]
mov dword [esp + 8], esi
lea esi, [ebp - 0x20a]
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 0xff
mov dword [esp + 4], eax
call sym._swprintf
mov dword [esp + 4], esi
lea esi, [ebp - 0x248]
mov dword [esp], esi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x24c]
sub esp, 8
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, 0x3fc
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym._IoCreateDevice_28
sub esp, 0x1c
test eax, eax
je 0x10003c88
test byte [0x10006034], 2
je 0x10003bb8
mov eax, dword [ebp - 0x240]
mov edx, str.create_child
mov ecx, 0x10006034
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 1
mov dword [esp + 0x10], eax
mov eax, str.Failed_to_create_child_PDO__status__lx._n
mov dword [esp + 0xc], eax
call sym._wine_dbg_log.constprop.0_1
jmp 0x10003bb8
mov eax, dword [ebp - 0x24c]
mov edx, dword [sym.imp.ntoskrnl.exe_wcscpy]
mov dword [edi + 0xc], eax
mov dword [ebp - 0x254], edx
mov esi, dword [eax + 0x28]
mov dword [esi], ebx
lea eax, [esi + 0x54]
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], eax
lea eax, [edi + 0x84]
mov dword [esi + 0x50], 0
mov dword [esp + 4], eax
lea eax, [esi + 0x84]
mov dword [esp], eax
call edx
lea eax, [edi + 0x214]
mov edx, dword [ebp - 0x254]
mov dword [esp + 4], eax
lea eax, [esi + 0x214]
mov dword [esp], eax
call edx
lea eax, [edi + 0x3a4]
mov edx, dword [ebp - 0x254]
mov dword [esp + 4], eax
lea eax, [esi + 0x3a4]
mov dword [esp], eax
call edx
mov eax, dword [edi + 0x3f4]
mov dword [esi + 0x3f4], eax
mov eax, dword [ebp - 0x228]
mov word [esi + 0xa], ax
mov eax, dword [ebp - 0x226]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x250]
movzx eax, byte [eax]
mov byte [esi + 8], al
lea eax, [ebp - 0x240]
mov dword [esp + 0x18], eax
mov eax, 9
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x235]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], 0xb0003
call sym._call_minidriver
mov eax, dword [ebp - 0x240]
test eax, eax
jne 0x10003de8
cmp byte [ebp - 0x230], 0
je 0x10003d81
cmp byte [ebp - 0x22f], 0x22
je 0x10003e23
test byte [0x10006034], 2
jne 0x10003f40
mov eax, dword [ebp - 0x24c]
mov dword [esp], eax
call sym._IoDeleteDevice_4
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, str.Minidriver_failed_to_get_attributes__status__lx._n
mov ecx, str.create_child
mov dword [esp + 0x10], eax
mov ebx, 0x10006034
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x10006034], 2
je 0x10003d8e
xor edx, edx
mov ecx, str.Cannot_get_Device_Descriptor__status__lx_n
mov dword [esp + 0x10], edx
mov ebx, str.create_child
mov esi, 0x10006034
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10003d8e
movzx ecx, word [ebp - 0x22e]
mov dword [esp], ecx
mov dword [ebp - 0x250], ecx
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x250]
mov dword [esp + 4], ebx
mov dword [esp], 0xb0007
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov edx, eax
mov dword [esp + 0x10], edx
lea eax, [ebp - 0x240]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [ebp - 0x250], edx
call sym._call_minidriver
mov eax, dword [ebp - 0x240]
mov edx, dword [ebp - 0x250]
test eax, eax
je 0x10003eb8
test byte [0x10006034], 2
jne 0x10004015
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x24c]
mov dword [esp], eax
call sym._IoDeleteDevice_4
sub esp, 4
jmp 0x10003bb8
mov dword [esp], edx
lea eax, [esi + 0x10]
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], eax
movzx eax, word [ebp - 0x22e]
mov dword [ebp - 0x250], edx
mov dword [esp + 4], eax
call sym._HidP_GetCollectionDescription_16
mov edx, dword [ebp - 0x250]
mov dword [ebp - 0x240], eax
sub esp, 0x10
mov ebx, eax
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
cmp ebx, 0x110000
je 0x10003f70
test byte [0x10006034], 2
je 0x10003d8e
mov esi, str.Cannot_parse_Report_Descriptor_n
mov edi, str.create_child
mov dword [esp + 0xc], esi
mov eax, 0x10006034
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10003d8e
mov dword [esp], 1
mov eax, str.No_Report_Descriptor_found_in_reply_n
mov dword [esp + 0xc], eax
mov eax, str.create_child
mov dword [esp + 8], eax
mov eax, 0x10006034
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0_1
jmp 0x10003d8e
mov eax, dword [esi + 0x10]
movzx edx, word [eax + 0x1a]
mov dword [esi + 4], edx
movzx edx, word [eax + 2]
cmp word [eax], 1
sete al
cmp edx, 2
jne 0x1000404d
test al, al
je 0x1000404d
mov dword [esi + 0x4c], 1
xor ebx, ebx
mov dword [esp + 4], ebx
mov eax, dword [edi]
mov dword [esp], eax
call sym._IoInvalidateDeviceRelations_8
mov eax, dword [ebp - 0x24c]
mov dword [esi + 0x40], 0xc8
sub esp, 8
mov dword [esp], eax
call sym._HID_StartDeviceThread
mov edx, 1
mov eax, esi
call sym._send_wm_input_device_change
test byte [0x10006034], 8
je 0x10003bb8
mov eax, dword [esi + 0x4c]
mov edx, str.create_child
mov ecx, 0x10006034
mov dword [esp + 0x10], esi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp + 0x14], eax
mov eax, str.created_device__p__rawinput_handle__x_n
mov dword [esp + 0xc], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10003bb8
mov dword [esp], 1
xor eax, eax
mov edx, 0x10006034
mov dword [esp + 0x10], eax
mov eax, str.Cannot_get_Report_Descriptor__status__lx_n
mov dword [esp + 0xc], eax
mov eax, str.create_child
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x250]
jmp 0x10003e92
cmp edx, 6
jne 0x10004062
test al, al
je 0x10004062
mov dword [esi + 0x4c], 2
jmp 0x10003f9d
mov eax, 1
lock xadd dword [0x10006028], eax
inc eax
mov dword [esi + 0x4c], eax
jmp 0x10003f9d