Function at 0x10003cf0
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]
movzx ecx, byte [0x10006034]
mov ebx, dword [eax + 0x28]
mov eax, dword [ebp + 0xc]
and ecx, 8
mov edx, dword [eax + 0x60]
mov esi, dword [ebx + 0x3f8]
movzx eax, byte [edx + 1]
test esi, esi
je 0x10003da0
mov esi, dword [ebp + 8]
mov edi, dword [0x1000602c]
mov esi, dword [esi + 8]
cmp edi, 0x1000602c
jne 0x10003d8a
lea esi, [esi]
xor edi, edi
test cl, cl
jne 0x10003eb0
cmp al, 2
je 0x10003f40
cmp al, 7
je 0x10003e00
test al, al
je 0x10003e80
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [edi + 0x24]
sub esp, 8
mov esi, eax
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov edi, dword [edi]
cmp edi, 0x1000602c
je 0x10003d38
cmp esi, dword [edi + 0xc]
jne 0x10003d80
test cl, cl
je 0x10003d42
jmp 0x10003eb0
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x18], edi
mov edi, dword [ebp + 0xc]
mov edi, dword [edi + 0x18]
mov dword [ebp - 0x14], edi
movzx edi, al
test cl, cl
jne 0x10003ef8
cmp al, 0x17
ja case.0x10003dbe.1
jmp dword [edi*4 + 0x100089b8]
mov esi, dword [ebp - 0x14]
test byte [0x10006034], 1
jne 0x10004430
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x18], esi
mov dword [esp], eax
mov dword [esp + 4], 0
call sym._IoCompleteRequest_8
mov eax, esi
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov esi, dword [edx + 4]
test esi, esi
jne 0x10003d5a
mov dword [esp + 4], 8
mov dword [esp], 1
call sym._ExAllocatePool_8
sub esp, 8
mov esi, eax
test eax, eax
je 0x100045db
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10004270
mov dword [esi + 4], eax
mov ecx, dword [ebx + 0xc]
call sym._ObfReferenceObject_4
mov dword [esi], 1
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], esi
add dword [eax + 0x60], 0x24
add byte [eax + 0x23], 1
mov dword [eax + 0x18], 0
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym._IoCallDriver_8
sub esp, 8
mov esi, eax
jmp 0x10003d6f
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [edi + 0x24]
sub esp, 8
mov esi, eax
test eax, eax
jne 0x10003d6f
mov edx, dword [ebp + 8]
lea eax, [edi + 0x18]
call sym._create_child.isra.0
jmp 0x10003d6f
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], str.irp__p__minor_function__x._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.fdo_pnp
mov dword [esp + 4], 0x10006034
mov dword [esp], 3
mov dword [ebp - 0x14], edx
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 1]
cmp al, 2
jne 0x10003d4a
jmp 0x10003f40
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], str.irp__p__minor_function__x._n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.pdo_pnp
mov dword [esp + 4], 0x10006034
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x1c]
movzx edi, byte [edx + 1]
mov eax, edi
cmp al, 0x17
jbe switch.0x10003dbe
jmp case.0x10003dbe.1
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [edi + 0x24]
mov esi, eax
mov eax, dword [ebx + 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, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
lea eax, [ebx + 0x64]
lea edi, [ebp - 0xd]
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0x14], eax
call sym._KeAcquireSpinLock_8
movzx edx, byte [ebp - 0xd]
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x68], 1
sub esp, 8
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._KeReleaseSpinLock_8
lea eax, [ebx + 0x50]
sub esp, 8
mov dword [ebp - 0x14], eax
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._KeAcquireSpinLock_8
mov eax, dword [ebx + 0x54]
lea edx, [ebx + 0x54]
sub esp, 8
mov edi, dword [eax]
cmp edx, eax
je 0x10003ff3
mov dword [ebp - 0x18], ebx
mov ebx, edi
mov edi, edx
lea esi, [esi]
mov dword [esp], eax
call sym._hid_queue_remove_pending_irps
mov eax, ebx
mov ebx, dword [ebx]
cmp edi, eax
jne 0x10003fe0
mov ebx, 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 [ebx + 0x44]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
sub esp, 4
jmp 0x10003dd8
mov dword [esp + 4], 0x800
mov dword [esp], 1
mov dword [ebp - 0x18], edx
call sym._ExAllocatePool_8
mov edx, dword [ebp - 0x18]
sub esp, 8
test byte [0x10006034], 8
mov edi, eax
jne 0x10004460
mov eax, dword [edx + 4]
cmp eax, 5
ja sym._driver_pnp_8.cold
jmp dword [eax*4 + 0x10008a18]
movzx edx, word [ebx + eax + 0x84]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne case.0x10004058.0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
jmp 0x10003dd8
mov eax, dword [edx + 4]
or byte [eax + 5], 1
jmp 0x10003dd8
mov edx, 2
mov eax, ebx
call sym._send_wm_input_device_change
lea eax, [ebx + 0x5c]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x14], eax
call sym._IoSetDeviceInterfaceState_8
mov edi, dword [ebx + 0x6c]
sub esp, 8
test edi, edi
jne 0x100044b8
mov ecx, dword [ebx + 0x78]
test ecx, ecx
jne 0x10004498
mov edx, dword [ebx + 0x48]
mov eax, dword [ebx + 0x44]
test edx, edx
je 0x100040fb
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetEvent]
sub esp, 4
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebx + 0x48]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [ebx + 0x44]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebx + 0x50]
mov ecx, eax
sub esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xd]
mov dword [esp + 4], eax
mov dword [esp], ecx
call sym._KeAcquireSpinLock_8
mov eax, dword [ebx + 0x54]
lea ecx, [ebx + 0x54]
sub esp, 8
mov edi, dword [eax]
cmp ecx, eax
je 0x1000414b
mov dword [ebp - 0x1c], ebx
mov ebx, edi
mov edi, ecx
lea esi, [esi]
mov dword [esp], eax
call sym._hid_queue_destroy
mov eax, ebx
mov ebx, dword [ebx]
cmp edi, eax
jne 0x10004138
mov ebx, dword [ebp - 0x1c]
movzx eax, byte [ebp - 0xd]
add ebx, 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], ebx
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]
sub esp, 4
mov dword [eax + 0x18], 0
mov dword [esp], eax
mov dword [esp + 4], 0
call sym._IoCompleteRequest_8
mov eax, dword [ebp + 8]
sub esp, 8
mov dword [esp], eax
call sym._IoDeleteDevice_4
sub esp, 4
jmp 0x10003d6f
lea edi, [ebx + 0x5c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], edi
mov eax, dword [ebx + 0x3f4]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._IoRegisterDeviceInterface_16
sub esp, 0x10
mov esi, eax
test eax, eax
jne 0x10004230
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, 0x20001
je 0x1000454c
cmp eax, 0x60001
je 0x10004513
mov dword [esp + 4], 1
mov dword [esp], edi
call sym._IoSetDeviceInterfaceState_8
mov eax, dword [ebx + 0x6c]
sub esp, 8
test eax, eax
jne 0x100044f8
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x100044d8
mov dword [ebx + 0x68], 0
jmp 0x10003dd8
test byte [0x10006034], 2
je 0x10003dd8
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed_to_register_interface__status__lx._n
mov dword [esp + 8], str.pdo_pnp
mov dword [esp + 4], 0x10006034
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_1
jmp 0x10003dd8
mov dword [esi], 0
jmp 0x10003e48
lea eax, [ebx + 0x84]
mov dword [ebp - 0x14], eax
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [ebx + eax + 0x84]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x10004290
cmp word [ebx + 0x84], 0
je 0x100045ca
mov ecx, dword [ebp - 0x14]
lea esi, [esi]
add ecx, 2
cmp word [ecx], 0
jne 0x100042b8
sub ecx, dword [ebp - 0x14]
add ecx, edi
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [eax + 0x1000894a]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x100042d0
lea eax, [ebx + 0x214]
mov dword [ebp - 0x18], eax
xor eax, eax
nop
movzx edx, word [ebx + eax + 0x214]
mov word [ecx + eax + 2], dx
add eax, 2
test dx, dx
jne 0x100042f0
cmp word [ebx + 0x214], 0
mov eax, dword [ebp - 0x18]
je 0x10004321
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10004318
sub eax, dword [ebp - 0x18]
lea ecx, [ecx + eax + 4]
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax + 0x84]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x10004330
cmp word [ebx + 0x84], 0
je 0x100045d1
mov eax, dword [ebp - 0x14]
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10004358
sub eax, dword [ebp - 0x14]
add eax, 2
add ecx, eax
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [eax + 0x10008910]
mov word [ecx + eax], dx
add eax, 2
test dx, dx
jne 0x10004370
mov eax, 0x10008910
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x10004390
sub eax, 0x10008910
xor edx, edx
mov word [ecx + eax + 2], dx
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
jmp 0x10003dd8
cmp word [ebx + 0x3a4], 0
je 0x100045b7
xor eax, eax
movzx edx, word [ebx + eax + 0x3a4]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x100043c0
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
jmp 0x10003dd8
test byte [0x10006034], 1
jne 0x10004586
mov dword [esp], edi
call sym._ExFreePool_4
mov esi, dword [ebp - 0x14]
sub esp, 4
jmp 0x10003dd8
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax + 0x214]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x10004408
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
jmp 0x10003dd8
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.Unhandled_minor_function__x._n
mov dword [esp + 8], str.pdo_pnp
mov dword [esp + 4], 0x10006034
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x10003dd8
mov eax, dword [edx + 4]
mov dword [esp + 0xc], str.IRP_MN_QUERY_ID__i__n
mov dword [esp + 8], str.pdo_pnp
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x10006034
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov edx, dword [ebp - 0x18]
jmp 0x1000404c
lea eax, [ebx + 0x7c]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._IoSetDeviceInterfaceState_8
sub esp, 8
jmp 0x100040cb
lea eax, [ebx + 0x70]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._IoSetDeviceInterfaceState_8
sub esp, 8
jmp 0x100040c0
lea eax, [ebx + 0x7c]
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._IoSetDeviceInterfaceState_8
sub esp, 8
jmp 0x10004221
lea eax, [ebx + 0x70]
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._IoSetDeviceInterfaceState_8
sub esp, 8
jmp 0x10004216
lea eax, [ebx + 0x7c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x10008ab0
mov dword [esp], eax
call sym._IoRegisterDeviceInterface_16
sub esp, 0x10
test eax, eax
jne 0x100041f8
mov dword [ebx + 0x78], 1
jmp 0x100041f8
lea eax, [ebx + 0x70]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x10008ac0
mov dword [esp], eax
call sym._IoRegisterDeviceInterface_16
sub esp, 0x10
test eax, eax
jne 0x1000457c
mov dword [ebx + 0x6c], 1
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
jmp 0x100041ed
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], str.unimplemented_id_type__x_n
mov dword [esp + 8], str.pdo_pnp
mov dword [esp + 4], 0x10006034
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x100043ed
mov dword [esp], edi
call sym._ExFreePool_4
mov esi, dword [ebp - 0x14]
sub esp, 4
jmp 0x10003dd8
mov ecx, edi
jmp 0x100042c6
mov eax, 2
jmp 0x10004367
mov eax, dword [ebp + 0xc]
mov esi, 0xc0000017
mov dword [eax + 0x18], 0xc0000017
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._IoCompleteRequest_8
push ecx
push ecx
jmp 0x10003d6f