Function at 0x100015c0
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 dword [ebp - 0x44], edi
mov eax, dword [edi + 0x10]
movzx ecx, byte [edi + 8]
mov dword [ebp - 0x60], eax
movzx eax, word [eax + 0x14]
mov dword [ebp - 0x58], ecx
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 - 0x50], eax
add eax, 0xc
mov dword [ebp - 0x4c], eax
mov eax, dword [edi + 0x18]
lea edx, [eax + edx*8]
cmp eax, edx
jne 0x1000161b
jmp 0x10001d55
add eax, 8
cmp eax, edx
je 0x10001d55
cmp word [eax + 2], 0
je 0x10001610
movzx eax, byte [eax]
mov byte [ebp - 0x59], al
mov dword [ebp - 0x64], eax
jmp 0x100016a6
lea edx, [esi + 0xd]
dec eax
mov dword [esi + 4], eax
lea ecx, [ebp - 0x30]
mov dword [esi], edx
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
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 0x10001800
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x10001790
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x44]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
cmp eax, 0x102
jne 0x10001af8
mov esi, dword [ebp - 0x50]
movzx eax, byte [ebp - 0x59]
mov edx, dword [ebp - 0x64]
mov byte [esi + 0xc], al
mov byte [esi + 8], al
mov eax, dword [ebp - 0x4c]
test edx, edx
mov dword [esi], eax
mov eax, dword [ebp - 0x60]
movzx eax, word [eax + 0x14]
mov dword [esi + 4], eax
je 0x10001630
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x30]
mov dword [esp + 0x18], ecx
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
mov dword [esp], 0xb000b
mov dword [esp + 4], eax
call sym._call_minidriver
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jne 0x10001674
mov eax, dword [ebp - 0x50]
mov edi, dword [ebp - 0x44]
movzx edx, byte [eax + 0xc]
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea ebx, [eax + ecx*8]
cmp eax, ebx
je 0x1000174a
lea esi, [esi]
lea esi, [esi]
movzx ecx, byte [eax]
test cl, cl
je 0x1000173b
cmp dl, cl
jne 0x10001743
movzx ecx, word [eax + 2]
test ecx, ecx
jne 0x100017a0
add eax, 8
cmp eax, ebx
jne 0x10001730
test byte [0x10006018], 4
je 0x10001674
mov ebx, str.dropping_unknown_input_id__u_n
mov esi, str.hid_device_thread
mov dword [esp + 0x10], edx
mov edi, 0x10006018
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x58]
test eax, eax
jne 0x1000167f
lea esi, [esi]
xor eax, eax
jmp 0x10001685
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x2c]
test ebx, ebx
mov dword [ebp - 0x38], eax
movzx eax, byte [0x10006018]
jne 0x10001810
cmp dword [ebp - 0x38], ecx
jae 0x10001810
and al, 4
je 0x10001790
mov dword [esp + 0x14], ecx
mov eax, dword [ebp - 0x38]
mov edx, str.hid_device_thread
mov dword [esp + 8], edx
mov ecx, 0x10006018
mov dword [esp + 4], ecx
mov dword [esp], 2
mov dword [esp + 0x10], eax
mov eax, str.dropping_short_report__len__Iu_expected__u_n
mov dword [esp + 0xc], eax
call sym._wine_dbg_log.constprop.0
xor eax, eax
jmp 0x10001685
inc dword [ebp - 0x2c]
jmp 0x1000170b
mov ecx, dword [ebp - 0x50]
mov byte [ecx + 8], dl
mov edx, dword [ebp - 0x4c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x38]
mov dword [ecx + 4], edx
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x28]
movzx edx, byte [ebx + 8]
mov dword [ebp - 0x40], edx
test edx, edx
jne 0x1000183c
mov edx, dword [ebx + 0x10]
movzx ecx, word [edx + 0x14]
mov dword [ebp - 0x38], ecx
and al, 8
jne 0x10001ca8
mov eax, dword [ebx + 0x3f4]
mov edi, dword [0x100090d0]
cmp dword [eax], edi
je 0x10001ba0
mov eax, dword [ebp - 0x38]
add eax, 8
mov dword [esp], eax
mov eax, dword [ebp - 0x6c]
call eax
mov dword [ebp - 0x48], eax
test eax, eax
je 0x10001ce2
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x38]
mov dword [edx], 1
lea edi, [edx + 8]
mov dword [ebp - 0x54], edi
mov dword [edx + 4], eax
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
cmp eax, 8
mov ecx, eax
mov esi, edx
jae 0x10001b7b
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x54]
sub edx, eax
lea ecx, [edi + eax]
cmp edx, 8
mov edi, ecx
jae 0x10001b43
test dl, 4
jne 0x10001b2f
test dl, 2
jne 0x10001b1c
test dl, 1
jne 0x10001b14
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
lea eax, [ebx + 0x50]
mov dword [ebp - 0x70], eax
mov edi, eax
mov dword [esp], edi
lea eax, [ebp - 0x32]
mov dword [esp + 4], eax
lea edi, [ebx + 0x54]
call sym._KeAcquireSpinLock_8
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x38], eax
sub esp, 8
cmp edi, eax
je 0x100019d1
lea esi, [esi]
lea esi, [esi]
mov ebx, dword [ebp - 0x40]
test ebx, ebx
jne 0x10001951
jmp 0x10001a70
mov ecx, dword [ebp - 0x3c]
add ebx, 0x58
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x28]
mov edx, dword [eax + 4]
mov dword [ebx - 0x40], 0
mov dword [ebx - 0x3c], edx
call sym._hid_report_decref.part.0
mov eax, dword [ebp - 0x24]
mov dword [ebx], edi
mov ecx, dword [ebp - 0x40]
mov dword [ebx + 4], eax
mov dword [eax], ebx
test ecx, ecx
mov dword [ebp - 0x24], ebx
je 0x100019c0
mov eax, dword [ebp - 0x38]
call sym._hid_queue_pop_irp
test eax, eax
mov ebx, eax
je 0x100019c0
mov eax, dword [ebp - 0x38]
call sym._hid_queue_pop_report
test eax, eax
je 0x100019b0
lea esi, [eax + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebx + 0xc]
mov dword [ebp - 0x3c], ecx
cmp ecx, 8
mov edi, edx
jb 0x10001920
test dl, 1
jne 0x10001a60
test edi, 2
jne 0x10001a48
test edi, 4
je 0x10001920
mov edx, dword [esi]
add edi, 4
add esi, 4
mov dword [edi - 4], edx
sub dword [ebp - 0x3c], 4
jmp 0x10001920
mov eax, dword [ebp - 0x48]
lock inc dword [eax]
mov esi, dword [ebp - 0x54]
jmp 0x1000196e
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x68]
mov dword [ebp - 0x38], eax
jne 0x10001910
movzx eax, byte [ebp - 0x32]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], eax
call sym._KeReleaseSpinLock_8
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 4]
mov ecx, dword [eax]
sub esp, 8
mov dword [ecx + 4], edx
mov dword [edx], ecx
lea edx, [ebp - 0x28]
cmp eax, edx
je 0x10001a36
lea esi, [esi]
nop
mov dword [eax + 4], 0
xor edx, edx
sub eax, 0x58
mov dword [eax + 0x58], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._IoCompleteRequest_8
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
sub esp, 8
mov dword [ecx + 4], edx
mov dword [edx], ecx
lea ecx, [ebp - 0x28]
cmp eax, ecx
jne 0x10001a00
mov eax, dword [ebp - 0x48]
call sym._hid_report_decref.part.0
jmp 0x10001674
movzx edx, word [esi]
add edi, 2
add esi, 2
mov word [edi - 2], dx
sub dword [ebp - 0x3c], 2
jmp 0x10001993
movzx ecx, byte [esi]
inc edi
inc esi
mov byte [edx], cl
dec dword [ebp - 0x3c]
jmp 0x10001987
mov eax, dword [ebp - 0x38]
mov edi, dword [eax + 0x14]
lea ebx, [edi + 1]
cmp ebx, dword [eax + 0xc]
jb 0x10001a80
xor ebx, ebx
mov eax, dword [ebp - 0x48]
lock inc dword [eax]
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x31]
mov dword [esp + 4], eax
lea esi, [ecx + 8]
mov dword [esp], esi
call sym._KeAcquireSpinLock_8
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x48]
lea eax, [ecx + edi*4]
mov edi, dword [eax + 0x18]
mov dword [eax + 0x18], edx
sub esp, 8
mov eax, dword [ecx + 0x10]
cmp eax, ebx
jne 0x10001aba
lea eax, [ebx + 1]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp - 0x38]
cmp eax, dword [ecx + 0xc]
jb 0x10001ac9
mov dword [ecx + 0x10], 0
mov dword [esp], esi
movzx eax, byte [ebp - 0x31]
mov dword [esp + 4], eax
call sym._KeReleaseSpinLock_8
sub esp, 8
test edi, edi
je 0x10001ae7
mov eax, edi
call sym._hid_report_decref.part.0
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x14], ebx
jmp 0x10001951
test byte [0x10006018], 8
jne 0x10001d1b
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov byte [edi], 0
jmp 0x100018ce
mov word [edi], 0
add edi, 2
test dl, 1
je 0x100018ce
jmp 0x10001b14
mov dword [edi], 0
add edi, 4
test dl, 2
je 0x100018c5
jmp 0x10001b1c
test cl, 1
jne 0x10001de1
test edi, 2
jne 0x10001deb
test edi, 4
jne 0x10001dfb
mov ecx, edx
and edx, 3
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
test dl, 4
je 0x100018bc
jmp 0x10001b2f
test edi, 4
je 0x1000189b
mov edi, dword [ebp - 0x48]
lea ecx, [eax - 4]
add esi, 4
mov edx, dword [edx]
add edi, 0xc
mov dword [edi - 4], edx
jmp 0x1000189b
mov edx, dword [0x100090d4]
cmp dword [eax + 4], edx
jne 0x10001858
mov edx, dword [0x100090d8]
cmp dword [eax + 8], edx
jne 0x10001858
mov edx, dword [0x100090dc]
cmp dword [eax + 0xc], edx
jne 0x10001858
mov eax, dword [ebp - 0x38]
lea esi, [eax + 0x18]
mov eax, dword [ebp - 0x6c]
mov dword [esp], esi
call eax
test eax, eax
mov edx, eax
je 0x10001e2e
mov dword [eax + 4], esi
mov ecx, dword [ebp - 0x50]
lea edi, [edx + 0x18]
mov dword [eax], 2
mov dword [ebp - 0x3c], edi
mov eax, dword [ebx + 0x4c]
mov dword [edx + 0xc], 0
mov dword [edx + 0x14], 1
mov esi, dword [ecx]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], esi
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 4]
cmp eax, 8
mov ecx, eax
jae 0x10001d9c
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
sub esi, eax
add ecx, eax
cmp esi, 8
mov edi, ecx
jae 0x10001dbb
test esi, 4
je 0x10001c4c
mov dword [edi], 0
add edi, 4
test esi, 2
je 0x10001c5c
mov word [edi], 0
add edi, 2
and esi, 1
je 0x10001c64
mov byte [edi], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x28]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 0xff
call dword [sym.imp.win32u.dll___wine_send_input]
mov edx, dword [ebp - 0x3c]
sub esp, 0xc
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10001858
mov dword [esp], 3
mov eax, dword [ebp - 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov eax, str.device__p__packet__p_n
mov dword [esp + 0xc], eax
mov eax, str.hid_device_queue_input
mov dword [esp + 8], eax
mov eax, 0x10006018
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x10001844
test byte [0x10006018], 2
je 0x10001674
mov esi, str.Failed_to_allocate_hid_report__n
mov edi, str.hid_device_queue_input
mov dword [esp + 0xc], esi
mov eax, 0x10006018
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x10001674
mov dword [esp + 0x10], eax
mov esi, str.device_thread_exiting__res__lx_n
mov edi, str.hid_device_thread
mov dword [esp + 0xc], esi
mov eax, 0x10006018
mov dword [esp + 8], edi
mov dword [esp + 4], eax
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 al, 4
mov byte [ebp - 0x59], al
jne 0x10001d6f
mov dword [ebp - 0x64], 0
jmp 0x100016a6
mov ecx, str.no_input_report_found._n
mov ebx, str.hid_device_thread
mov dword [esp + 0xc], ecx
mov esi, 0x10006018
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0
mov byte [ebp - 0x59], 0
jmp 0x10001d63
test edi, 4
je 0x10001c24
mov ecx, dword [esi]
lea edi, [edx + 0x1c]
add esi, 4
mov dword [edx + 0x18], ecx
lea ecx, [eax - 4]
jmp 0x10001c24
test cl, 1
jne 0x10001e27
test edi, 2
jne 0x10001e1a
test edi, 4
jne 0x10001e0c
mov ecx, esi
xor eax, eax
shr ecx, 2
and esi, 3
rep stosd dword es:[edi], eax
jmp 0x10001c3b
mov byte [ecx], 0
inc edi
dec edx
jmp 0x10001b4c
mov word [edi], 0
sub edx, 2
add edi, 2
jmp 0x10001b58
mov dword [edi], 0
sub edx, 4
add edi, 4
jmp 0x10001b64
mov dword [edi], 0
sub esi, 4
add edi, 4
jmp 0x10001dd0
mov word [edi], 0
sub esi, 2
add edi, 2
jmp 0x10001dc8
mov byte [ecx], 0
inc edi
dec esi
jmp 0x10001dc0
test byte [0x10006018], 2
je 0x10001858
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 0x10001858