Function at 0x10001490
Capabilities:
Complete processing asynchronous io request

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
add esp, 0xffffff80
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x28]
mov eax, dword [edi + 0x10]
movzx esi, byte [edi + 8]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x58], eax
movzx eax, word [eax + 0x14]
mov dword [ebp - 0x50], esi
add eax, 0xc
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x6c], eax
call eax
mov edx, dword [edi + 0x1c]
mov dword [ebp - 0x48], eax
add eax, 0xc
mov dword [ebp - 0x44], eax
mov eax, dword [edi + 0x18]
lea edx, [eax + edx*8]
cmp eax, edx
jne 0x100014eb
jmp 0x10001ad7
add eax, 8
cmp eax, edx
je 0x10001ad7
cmp word [eax + 2], 0
je 0x100014e0
movzx eax, byte [eax]
mov byte [ebp - 0x51], al
mov dword [ebp - 0x5c], eax
jmp 0x1000157c
lea edx, [esi + 0xd]
sub eax, 1
lea ecx, [ebp - 0x30]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [eax]
mov dword [esp], 0xb000b
mov dword [esp + 4], eax
call sym._call_minidriver
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x100016c0
mov ebx, dword [ebp - 0x50]
test ebx, ebx
je 0x10001660
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x44]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
cmp eax, 0x102
jne 0x10001930
mov esi, dword [ebp - 0x48]
movzx eax, byte [ebp - 0x51]
mov edx, dword [ebp - 0x5c]
mov byte [esi + 0xc], al
mov byte [esi + 8], al
mov eax, dword [ebp - 0x44]
mov dword [esi], eax
mov eax, dword [ebp - 0x58]
movzx eax, word [eax + 0x14]
mov dword [esi + 4], eax
test edx, edx
je 0x10001500
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x30]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [eax]
mov dword [esp], 0xb000b
mov dword [esp + 4], eax
call sym._call_minidriver
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x1000154a
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x48]
mov edx, dword [ecx + 0x1c]
movzx ebx, byte [eax + 0xc]
mov eax, dword [ecx + 0x18]
lea ecx, [eax + edx*8]
cmp eax, ecx
je 0x1000161b
lea esi, [esi]
movzx edx, byte [eax]
test dl, dl
je 0x1000160b
cmp bl, dl
jne 0x10001614
movzx edx, word [eax + 2]
test dx, dx
jne 0x10001670
add eax, 8
cmp eax, ecx
jne 0x10001600
test byte [0x10006018], 4
je 0x1000154a
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.dropping_unknown_input_id__u_n
mov dword [esp + 8], str.hid_device_thread
mov dword [esp + 4], 0x10006018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
mov ebx, dword [ebp - 0x50]
test ebx, ebx
jne 0x10001555
lea esi, [esi]
nop
xor eax, eax
jmp 0x1000155b
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x2c]
movzx eax, byte [0x10006018]
test ecx, ecx
jne 0x100016d0
cmp esi, edx
jae 0x100016d0
test al, 4
je 0x10001660
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.dropping_short_report__len__Iu_expected__u_n
mov dword [esp + 8], str.hid_device_thread
mov dword [esp + 4], 0x10006018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
xor eax, eax
jmp 0x1000155b
add dword [ebp - 0x2c], 1
jmp 0x100015e5
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov byte [ecx + 8], bl
mov dword [ecx], edx
mov dword [ecx + 4], esi
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x28]
movzx ecx, byte [ebx + 8]
mov dword [ebp - 0x38], ecx
test ecx, ecx
jne 0x100016f6
mov edx, dword [ebx + 0x10]
movzx esi, word [edx + 0x14]
test al, 8
jne 0x10001a33
mov eax, dword [ebx + 0x3f4]
mov edi, dword [0x100090d0]
cmp dword [eax], edi
je 0x1000194c
lea eax, [esi + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x6c]
call eax
mov dword [ebp - 0x40], eax
test eax, eax
je 0x10001a6a
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x48]
mov dword [eax + 4], esi
mov edi, dword [edx + 4]
lea ecx, [eax + 8]
mov dword [eax], 1
mov eax, dword [edx]
mov dword [esp], ecx
sub esi, edi
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [ebp - 0x4c], ecx
call sym._memcpy
mov eax, dword [ebp - 0x4c]
mov dword [esp + 8], esi
mov dword [esp + 4], 0
add eax, edi
mov dword [esp], eax
call sym._memset
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
lea eax, [ebx + 0x50]
mov ecx, eax
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x32]
mov dword [esp + 4], eax
mov dword [esp], ecx
call sym._KeAcquireSpinLock_8
mov esi, dword [ebx + 0x54]
lea eax, [ebx + 0x54]
mov dword [ebp - 0x60], eax
sub esp, 8
cmp eax, esi
je 0x10001833
lea esi, [esi]
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x100017ff
jmp 0x100018a8
lea eax, [eax + 8]
mov ecx, dword [ebx + 0xc]
mov edx, dword [edi + 4]
mov dword [esp + 4], eax
add ebx, 0x58
mov dword [esp], ecx
mov dword [esp + 8], edx
call sym._memcpy
mov eax, dword [edi + 4]
mov dword [ebx - 0x40], 0
mov dword [ebx - 0x3c], eax
mov eax, edi
call sym._hid_report_decref.part.0
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp - 0x38]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov dword [eax], ebx
mov dword [ebp - 0x24], ebx
test edi, edi
je 0x10001828
mov eax, esi
call sym._hid_queue_pop_irp
mov ebx, eax
test eax, eax
je 0x10001828
mov eax, esi
call sym._hid_queue_pop_report
mov edi, eax
test eax, eax
jne 0x100017b8
mov edi, dword [ebp - 0x40]
lock add dword [edi], 1
mov eax, dword [ebp - 0x4c]
jmp 0x100017bb
mov esi, dword [esi]
cmp esi, dword [ebp - 0x60]
jne 0x100017a8
movzx eax, byte [ebp - 0x32]
lea esi, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call sym._KeReleaseSpinLock_8
mov eax, dword [ebp - 0x28]
sub esp, 8
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov dword [edx], ecx
cmp eax, esi
je 0x10001898
lea esi, [esi]
mov dword [eax + 4], 0
sub eax, 0x58
mov dword [eax + 0x58], 0
mov dword [esp], eax
mov dword [esp + 4], 0
call sym._IoCompleteRequest_8
mov eax, dword [ebp - 0x28]
sub esp, 8
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov dword [edx], ecx
lea ecx, [ebp - 0x28]
cmp eax, ecx
jne 0x10001860
mov eax, dword [ebp - 0x40]
call sym._hid_report_decref.part.0
jmp 0x1000154a
mov eax, dword [esi + 0x14]
mov edi, dword [ebp - 0x40]
lea ebx, [eax + 1]
mov dword [ebp - 0x68], eax
cmp ebx, dword [esi + 0xc]
mov eax, 0
cmovae ebx, eax
lock add dword [edi], 1
lea edx, [esi + 8]
lea ecx, [ebp - 0x31]
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [ebp - 0x64], edx
call sym._KeAcquireSpinLock_8
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x64]
sub esp, 8
lea eax, [esi + eax*4]
mov ecx, dword [eax + 0x18]
mov dword [eax + 0x18], edi
mov eax, dword [esi + 0x10]
cmp eax, ebx
jne 0x100018f7
add eax, 1
mov dword [esi + 0x10], eax
cmp eax, dword [esi + 0xc]
jb 0x10001903
mov dword [esi + 0x10], 0
movzx eax, byte [ebp - 0x31]
mov dword [esp], edx
mov dword [ebp - 0x64], ecx
mov dword [esp + 4], eax
call sym._KeReleaseSpinLock_8
mov ecx, dword [ebp - 0x64]
sub esp, 8
test ecx, ecx
je 0x10001927
mov eax, ecx
call sym._hid_report_decref.part.0
mov dword [esi + 0x14], ebx
jmp 0x100017ff
test byte [0x10006018], 8
jne 0x10001aa0
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov edx, dword [0x100090d4]
cmp dword [eax + 4], edx
jne 0x10001712
mov edx, dword [0x100090d8]
cmp dword [eax + 8], edx
jne 0x10001712
mov edx, dword [0x100090dc]
cmp dword [eax + 0xc], edx
jne 0x10001712
lea edi, [esi + 0x18]
mov eax, dword [ebp - 0x6c]
mov dword [esp], edi
call eax
mov edx, eax
test eax, eax
je 0x10001b1c
mov dword [eax + 4], edi
lea edi, [edx + 0x18]
mov dword [eax], 2
mov eax, dword [ebx + 0x4c]
mov dword [edx + 0x10], esi
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x48]
mov dword [edx + 0xc], 0
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [edx + 0x14], 1
mov dword [esp], edi
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x40], ecx
call sym._memcpy
mov ecx, dword [ebp - 0x40]
mov eax, esi
mov dword [esp + 4], 0
sub eax, ecx
add ecx, edi
mov dword [esp], ecx
mov dword [esp + 8], eax
call sym._memset
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 0xff
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x20], 0
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.win32u.dll___wine_send_input]
mov edx, dword [ebp - 0x40]
sub esp, 0xc
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10001712
mov eax, dword [ebp - 0x48]
mov dword [esp + 0xc], str.device__p__packet__p_n
mov dword [esp + 8], str.hid_device_queue_input
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x10006018
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x100016fe
test byte [0x10006018], 2
je 0x1000154a
mov dword [esp + 0xc], str.Failed_to_allocate_hid_report__n
mov dword [esp + 8], str.hid_device_queue_input
mov dword [esp + 4], 0x10006018
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x1000154a
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.device_thread_exiting__res__lx_n
mov dword [esp + 8], str.hid_device_thread
mov dword [esp + 4], 0x10006018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 4
movzx eax, byte [0x10006018]
and eax, 4
mov byte [ebp - 0x51], al
jne 0x10001af2
mov dword [ebp - 0x5c], 0
jmp 0x1000157c
mov dword [esp + 0xc], str.no_input_report_found._n
mov dword [esp + 8], str.hid_device_thread
mov dword [esp + 4], 0x10006018
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
mov byte [ebp - 0x51], 0
jmp 0x10001ae6
test byte [0x10006018], 2
je 0x10001712
mov dword [esp + 0xc], str.Failed_to_allocate_rawinput_data__n
mov dword [esp + 8], str.hid_device_queue_input
mov dword [esp + 4], 0x10006018
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x10001712