Function at 0x10004440
Capabilities:
Complete processing asynchronous io request

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x28]
mov eax, dword [ebp + 0xc]
mov edi, dword [esi + 0x3f8]
mov edx, dword [eax + 0x60]
movzx eax, byte [0x10006034]
and al, 8
test edi, edi
mov byte [ebp - 0x14], al
movzx eax, byte [edx + 1]
je 0x10004140
mov ebx, dword [0x1000602c]
mov edi, dword [ebp + 8]
cmp ebx, 0x1000602c
mov ecx, dword [edi + 8]
jne 0x1000412a
lea esi, [esi]
nop
xor ebx, ebx
cmp byte [ebp - 0x14], 0
jne 0x10004250
cmp al, 2
je 0x100042f0
cmp al, 7
je 0x100041a8
test al, al
nop
je 0x10004220
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [ebx + 0x24]
sub esp, 8
mov edi, eax
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov ebx, dword [ebx]
cmp ebx, 0x1000602c
je 0x100040d0
cmp ecx, dword [ebx + 0xc]
jne 0x10004120
cmp byte [ebp - 0x14], 0
je 0x100040dc
jmp 0x10004250
mov ecx, dword [esi + 0x10]
cmp byte [ebp - 0x14], 0
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x18], ecx
movzx ecx, al
jne 0x100042a0
cmp al, 0x17
ja case.0x10004160.1
jmp dword [ecx*4 + 0x100089b8]
test byte [0x10006034], 1
mov edi, dword [ebp - 0x18]
jne 0x10004820
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax + 0x18], edi
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._IoCompleteRequest_8
mov eax, edi
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov eax, dword [edx + 4]
test eax, eax
jne 0x100040f6
mov dword [esp], 1
mov edi, 8
mov dword [esp + 4], edi
call sym._ExAllocatePool_8
sub esp, 8
test eax, eax
mov ebx, eax
je 0x100049d6
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10004628
mov dword [ebx + 4], eax
mov ecx, dword [esi + 0xc]
call sym._ObfReferenceObject_4
mov dword [ebx], 1
mov eax, dword [ebp + 0xc]
add dword [eax + 0x60], 0x24
inc byte [eax + 0x23]
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x18], 0
mov dword [esp + 4], eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym._IoCallDriver_8
sub esp, 8
mov edi, eax
jmp 0x1000410b
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [ebx + 0x24]
sub esp, 8
test eax, eax
mov edi, eax
jne 0x1000410b
mov edx, dword [ebp + 8]
lea eax, [ebx + 0x18]
call sym._create_child.isra.0
jmp 0x1000410b
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], 3
mov dword [ebp - 0x14], edx
mov dword [esp + 0x10], eax
mov eax, str.irp__p__minor_function__x._n
mov dword [esp + 0xc], eax
mov eax, str.fdo_pnp
mov dword [esp + 8], eax
mov eax, 0x10006034
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 1]
cmp al, 2
jne 0x100040e4
jmp 0x100042f0
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0xc]
mov edx, str.irp__p__minor_function__x._n
mov dword [esp + 0x14], ecx
mov ebx, 0x10006034
mov ecx, str.pdo_pnp
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 4], ebx
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x14]
movzx ecx, byte [edx + 1]
mov eax, ecx
cmp al, 0x17
jbe switch.0x10004160
jmp case.0x10004160.1
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [ebx + 0x24]
mov edi, eax
mov eax, dword [esi + 4]
sub esp, 8
mov dword [esp], eax
call sym._IoDetachDevice_4
mov eax, dword [ebp + 8]
sub esp, 4
mov dword [esp], eax
call sym._IoDeleteDevice_4
mov eax, edi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
lea edx, [esi + 0x64]
mov dword [esp], edx
lea ebx, [ebp - 0xd]
mov dword [esp + 4], ebx
mov dword [ebp - 0x14], edx
call sym._KeAcquireSpinLock_8
mov edx, dword [ebp - 0x14]
mov dword [esi + 0x68], 1
movzx eax, byte [ebp - 0xd]
sub esp, 8
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._KeReleaseSpinLock_8
lea eax, [esi + 0x50]
mov dword [ebp - 0x14], eax
sub esp, 8
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._KeAcquireSpinLock_8
mov eax, dword [esi + 0x54]
lea edx, [esi + 0x54]
mov ebx, dword [eax]
sub esp, 8
cmp edx, eax
je 0x100043a3
mov dword [ebp - 0x18], esi
mov esi, ebx
mov ebx, edx
lea esi, [esi]
mov dword [esp], eax
call sym._hid_queue_remove_pending_irps
mov eax, esi
mov esi, dword [esi]
cmp ebx, eax
jne 0x10004390
mov esi, dword [ebp - 0x18]
movzx eax, byte [ebp - 0xd]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._KeReleaseSpinLock_8
mov eax, dword [esi + 0x44]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
sub esp, 4
jmp 0x10004180
mov dword [esp], 1
mov eax, 0x800
mov dword [esp + 4], eax
mov dword [ebp - 0x14], edx
call sym._ExAllocatePool_8
mov edx, dword [ebp - 0x14]
sub esp, 8
mov ebx, eax
test byte [0x10006034], 8
jne 0x10004850
mov eax, dword [edx + 4]
cmp eax, 5
ja sym._driver_pnp_8.cold
jmp dword [eax*4 + 0x10008a18]
movzx edx, word [esi + eax + 0x84]
mov word [ebx + eax], dx
add eax, 2
test edx, edx
jne case.0x10004409.0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], ebx
jmp 0x10004180
mov eax, dword [edx + 4]
or byte [eax + 5], 1
jmp 0x10004180
mov edx, 2
mov eax, esi
call sym._send_wm_input_device_change
lea eax, [esi + 0x5c]
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x14], eax
call sym._IoSetDeviceInterfaceState_8
mov ecx, dword [esi + 0x6c]
sub esp, 8
test ecx, ecx
jne 0x100048b0
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x10004890
mov ebx, dword [esi + 0x48]
mov eax, dword [esi + 0x44]
test ebx, ebx
je 0x100044aa
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
mov ecx, 0xffffffff
sub esp, 4
mov dword [esp + 4], ecx
mov eax, dword [esi + 0x48]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x44]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [esi + 0x50]
mov dword [ebp - 0x18], eax
mov edx, eax
lea eax, [ebp - 0xd]
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._KeAcquireSpinLock_8
mov eax, dword [esi + 0x54]
lea ecx, [esi + 0x54]
mov ebx, dword [eax]
sub esp, 8
cmp ecx, eax
je 0x10004503
mov dword [ebp - 0x1c], esi
mov esi, ebx
mov ebx, ecx
lea esi, [esi]
lea esi, [esi]
mov dword [esp], eax
call sym._hid_queue_destroy
mov eax, esi
mov esi, dword [esi]
cmp ebx, eax
jne 0x100044f0
mov esi, dword [ebp - 0x1c]
movzx eax, byte [ebp - 0xd]
add esi, 0x10
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._KeReleaseSpinLock_8
sub esp, 8
mov dword [esp], esi
call sym._HidP_FreeCollectionDescription_4
mov eax, dword [ebp - 0x14]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax + 0x18], 0
sub esp, 4
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._IoCompleteRequest_8
mov eax, dword [ebp + 8]
sub esp, 8
mov dword [esp], eax
call sym._IoDeleteDevice_4
sub esp, 4
jmp 0x1000410b
lea ebx, [esi + 0x5c]
xor eax, eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov eax, dword [esi + 0x3f4]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._IoRegisterDeviceInterface_16
sub esp, 0x10
test eax, eax
mov edi, eax
jne 0x100045e8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, 0x20001
je 0x10004944
cmp eax, 0x60001
je 0x1000490c
mov dword [esp], ebx
mov eax, 1
mov dword [esp + 4], eax
call sym._IoSetDeviceInterfaceState_8
mov eax, dword [esi + 0x6c]
sub esp, 8
test eax, eax
jne 0x100048f0
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x100048d0
mov dword [esi + 0x68], 0
jmp 0x10004180
test byte [0x10006034], 2
je 0x10004180
mov dword [esp + 0x10], eax
mov eax, str.Failed_to_register_interface__status__lx._n
mov dword [esp + 0xc], eax
mov eax, str.pdo_pnp
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
jmp 0x10004180
mov dword [ebx], 0
jmp 0x100041f1
lea eax, [esi + 0x84]
mov dword [ebp - 0x14], eax
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [esi + eax + 0x84]
mov word [ebx + eax], dx
add eax, 2
test edx, edx
jne 0x10004650
cmp word [esi + 0x84], 0
je 0x100049c5
mov ecx, dword [ebp - 0x14]
lea esi, [esi]
lea esi, [esi]
nop
add ecx, 2
cmp word [ecx], 0
jne 0x10004680
mov eax, dword [ebp - 0x14]
sub ecx, eax
add ecx, ebx
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [eax + 0x1000894a]
mov word [ecx + eax], dx
add eax, 2
test edx, edx
jne 0x100046a0
lea eax, [esi + 0x214]
mov dword [ebp - 0x18], eax
xor eax, eax
lea esi, [esi]
movzx edx, word [esi + eax + 0x214]
mov word [ecx + eax + 2], dx
add eax, 2
test edx, edx
jne 0x100046c0
cmp word [esi + 0x214], 0
mov eax, dword [ebp - 0x18]
je 0x100046f9
lea esi, [esi]
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x100046f0
mov edx, dword [ebp - 0x18]
sub eax, edx
lea ecx, [ecx + eax + 4]
xor eax, eax
lea esi, [esi]
lea esi, [esi]
nop
movzx edx, word [esi + eax + 0x84]
mov word [ecx + eax], dx
add eax, 2
test edx, edx
jne 0x10004710
cmp word [esi + 0x84], 0
je 0x100049cc
mov eax, dword [ebp - 0x14]
lea esi, [esi]
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x10004740
mov edx, dword [ebp - 0x14]
sub eax, edx
add eax, 2
add ecx, eax
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [eax + 0x10008910]
mov word [ecx + eax], dx
add eax, 2
test edx, edx
jne 0x10004760
mov eax, 0x10008910
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x10004780
sub eax, 0x10008910
mov word [ecx + eax + 2], 0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], ebx
jmp 0x10004180
cmp word [esi + 0x3a4], 0
je 0x100049b2
xor eax, eax
movzx edx, word [esi + eax + 0x3a4]
mov word [ebx + eax], dx
add eax, 2
test edx, edx
jne 0x100047b0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], ebx
jmp 0x10004180
test byte [0x10006034], 1
jne 0x1000497d
mov dword [esp], ebx
call sym._ExFreePool_4
mov edi, dword [ebp - 0x18]
sub esp, 4
jmp 0x10004180
xor eax, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, word [esi + eax + 0x214]
mov word [ebx + eax], dx
add eax, 2
test edx, edx
jne 0x10004800
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], ebx
jmp 0x10004180
mov dword [esp + 0x10], ecx
mov ebx, str.pdo_pnp
mov ecx, str.Unhandled_minor_function__x._n
mov dword [esp + 0xc], ecx
mov esi, 0x10006034
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004180
mov eax, dword [edx + 4]
mov dword [esp], 3
mov dword [esp + 0x10], eax
mov eax, str.IRP_MN_QUERY_ID__i__n
mov dword [esp + 0xc], eax
mov eax, str.pdo_pnp
mov dword [esp + 8], eax
mov eax, 0x10006034
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x14]
jmp 0x100043fd
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esi + 0x7c]
mov dword [esp], eax
call sym._IoSetDeviceInterfaceState_8
sub esp, 8
jmp 0x10004479
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esi + 0x70]
mov dword [esp], eax
call sym._IoSetDeviceInterfaceState_8
sub esp, 8
jmp 0x1000446e
lea eax, [esi + 0x7c]
mov ebx, 1
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._IoSetDeviceInterfaceState_8
sub esp, 8
jmp 0x100045d8
mov eax, 1
mov dword [esp + 4], eax
lea eax, [esi + 0x70]
mov dword [esp], eax
call sym._IoSetDeviceInterfaceState_8
sub esp, 8
jmp 0x100045cd
lea eax, [esi + 0x7c]
mov edx, 0x10008ab0
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._IoRegisterDeviceInterface_16
sub esp, 0x10
test eax, eax
jne 0x100045ae
mov dword [esi + 0x78], 1
jmp 0x100045ae
lea eax, [esi + 0x70]
xor ecx, ecx
mov dword [esp + 0xc], eax
mov eax, 0x10008ac0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], ecx
mov dword [esp], eax
call sym._IoRegisterDeviceInterface_16
sub esp, 0x10
test eax, eax
jne 0x10004973
mov dword [esi + 0x6c], 1
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
jmp 0x100045a3
mov edx, 4
mov ecx, str.unimplemented_id_type__x_n
mov dword [esp + 0x10], edx
mov esi, str.pdo_pnp
mov edi, 0x10006034
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x100047dd
mov dword [esp], ebx
call sym._ExFreePool_4
mov edi, dword [ebp - 0x18]
sub esp, 4
jmp 0x10004180
mov ecx, ebx
jmp 0x10004690
mov eax, 2
jmp 0x10004751
mov eax, dword [ebp + 0xc]
mov edi, 0xc0000017
mov dword [eax + 0x18], 0xc0000017
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._IoCompleteRequest_8
push esi
push esi
jmp 0x1000410b