Function at 0x126fb
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4f984]
and dword [ebp - 0x34], 0
and dword [ebp - 0x2c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
lea ecx, [ebx + 4]
push edi
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x1d], 0
mov dword [ebp - 0x28], ecx
call dword [sym.imp.HAL.dll_KfAcquireSpinLock]
mov dl, al
mov ecx, 0x50200
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
test byte [edi + 0xc], 1
je 0x1278b
mov ax, word [ebp + 0x18]
mov ch, al
push esi
mov cl, ah
movzx eax, cx
mov cx, 0x11
mov dh, cl
mov dl, ch
movzx ecx, dx
add eax, ecx
movzx ecx, word [edi + 2]
add eax, ecx
movzx ecx, word [edi]
add eax, ecx
movzx ecx, word [ebp + 0xe]
add eax, ecx
movzx ecx, word [ebp + 0xc]
add eax, ecx
push eax
call fcn.000122b4
cmp ax, 0xffff
jne 0x3d630
mov ecx, dword [ebx + 0x24]
test cl, cl
jns 0x29bba
mov eax, dword [edi + 0xc]
mov esi, eax
and esi, 2
je 0x127a9
test ch, 4
je 0x3d786
test esi, esi
je 0x127b5
test al, 4
jne 0x168e3
lea eax, [ebx + 0x1c]
mov esi, dword [eax]
cmp esi, eax
jne 0x3d63f
mov eax, dword [ebx + 0xd4]
test eax, eax
mov dword [ebp - 0x5c], eax
je 0x29bba
mov dl, byte [ebp + 0x20]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebx + 0xd8]
inc word [ebx + 0x34]
mov dword [ebp - 0x24], 0x200
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
push dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push dword [ebp + 0xc]
push eax
call fcn.000128ab
inc dword [0x549a0]
test byte [edi + 0xc], 2
je 0x12820
mov al, byte [edi]
and al, 0xf0
sub al, 0xe0
neg al
sbb eax, eax
and eax, 0xfffffffc
add eax, 0x208
mov dword [ebp - 0x24], eax
test byte [ebx + 0x25], 0x20
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
movzx eax, byte [eax + 8]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x3c], eax
jne 0x29c90
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
add ecx, 8
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff8
push ecx
sub eax, 8
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x28]
push dword [ebp - 0x3c]
push eax
push 0x16
push esi
call dword [ebp - 0x5c]
cmp byte [ebp - 0x1d], 0
mov esi, eax
jne 0x29baa
cmp esi, 0xc0000016
je 0x21f73
mov eax, dword [0x54984]
test eax, eax
jne 0x3d747
push ebx
call fcn.00012aa2
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00010eee
leave
ret 0x20
cmp byte [ebx + 0x38], 0
jne 0x127b5
jmp 0x3d786
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + 0x60]
push 0
lea ecx, [edx + 8]
push ecx
mov ecx, dword [ebp + 0x18]
sub ecx, edx
sub ecx, 8
push ecx
push dword [eax + 4]
add esi, 4
push dword [ebp - 0x38]
call fcn.00021fde
push dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
push dword [ebp + 0xc]
push dword [ebp - 0x30]
push dword [esi + 8]
call fcn.0001af4e
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x18], eax
mov eax, dword [0x54984]
test eax, eax
jne 0x3d661
mov ecx, dword [ebp - 0x2c]
mov dl, 2
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
jmp 0x12891
push 0
push dword [ebp - 0x28]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x12878
inc dword [0x549a8]
jmp 0x3d786
lea eax, [ebp - 0x3c]
push eax
push dword [edi + 4]
push dword [edi]
call fcn.00029cbb
test eax, eax
mov dword [ebp - 0x28], eax
je 0x12839
or byte [ebp - 0x23], 0x10
mov byte [ebp - 0x1d], 1
jmp 0x12839
inc dword [0x549a8]
and dword [edi + 0xc], 0xfffffffe
jmp 0x3d786
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x3d64b
cmp ecx, dword [ebp + 0xc]
jne 0x3d65a
mov cx, word [esi + 0x1c]
test cx, cx
je 0x3d6a2
cmp cx, word [ebp + 0x10]
je 0x3d6a2
mov esi, dword [esi]
jmp 0x127ba
mov dx, word [ebp + 0x10]
mov word [ebp - 0x46], dx
mov edx, dword [ebp + 0xc]
movzx ecx, cx
add ecx, dword [ebp - 0x34]
mov dword [ebp - 0x4c], edx
mov dx, word [edi + 8]
push 0
mov word [ebp - 0x48], dx
mov edx, dword [edi]
mov dword [ebp - 0x54], ecx
push 0x1c
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x50], edx
mov edx, dword [ebx + 0x148]
push ecx
push 0x80b
mov dword [ebp - 0x58], edx
call eax
jmp 0x21fc9
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dl, byte [ebp + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x28]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
movzx eax, word [esi + 0x1e]
push 0
push 8
push eax
push dword [esi + 8]
push dword [ebp - 0x38]
call fcn.0004f0b8
push dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
push dword [ebp + 0xc]
push dword [ebp - 0x30]
push dword [esi + 0xc]
call fcn.0001af4e
inc dword [0x549a0]
mov dword [ebp - 0x30], eax
mov eax, dword [0x54984]
test eax, eax
je 0x3d730
mov cx, word [ebp + 0x10]
mov word [ebp - 0x46], cx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4c], ecx
mov cx, word [edi + 8]
mov word [ebp - 0x48], cx
mov ecx, dword [edi]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebx + 0x148]
push 0
mov dword [ebp - 0x58], ecx
push 0x1c
lea ecx, [ebp - 0x58]
push ecx
push 0x80b
call eax
push dword [ebp - 0x24]
push dword [ebp - 0x30]
push dword [esi + 0x14]
call dword [esi + 0x10]
push esi
call fcn.00020bcd
jmp 0x12897
mov cx, word [ebp + 0x10]
mov word [ebp - 0x46], cx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4c], ecx
mov cx, word [edi + 8]
mov word [ebp - 0x48], cx
mov ecx, dword [edi]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebx + 0x148]
mov dword [ebp - 0x58], ecx
movzx ecx, word [ebp - 0x34]
push 0
mov dword [ebp - 0x54], ecx
push 0x1c
lea ecx, [ebp - 0x58]
push ecx
push 0x80b
call eax
jmp 0x12891
mov ecx, dword [ebp - 0x28]
mov dl, byte [ebp + 0x20]
call dword [sym.imp.HAL.dll_KfReleaseSpinLock]
jmp 0x12897