Function at 0x13c06
Capabilities:
Complete processing asynchronous io request

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.HAL.dll_KfAcquireSpinLock]
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esi + 0x1f0]
lea ecx, [edi + 0xc0]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ecx
call ebx
cmp word [esi + 0x130], 0xffff
mov byte [esp + 0x1c], al
je 0x13c42
push esi
push edi
call fcn.000137de
mov ebp, dword [sym.imp.HAL.dll_KfReleaseSpinLock]
lea eax, [esi + 0x148]
mov edi, dword [eax]
test edi, edi
je 0x13c79
mov dl, byte [esp + 0x1c]
mov ecx, dword [esp + 0x10]
and dword [eax], 0
call ebp
and dword [edi + 0x18], 0
mov dl, 2
mov ecx, edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov ecx, dword [esp + 0x10]
call ebx
mov byte [esp + 0x1c], al
xor edx, edx
inc edx
push 0xe
xor eax, eax
mov dword [esi + 0x14], edx
pop ecx
lea edi, [esi + 0x230]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov word [esi + 0x118], dx
mov word [esi + 0x11a], dx
mov eax, dword [eax + 0x3d4]
xor edx, edx
push 0x64
pop ecx
div ecx
xor edx, edx
cmp dword [esi + 0xc], edx
mov dword [esi + 0x238], edx
mov dword [esi + 0x240], edx
mov dword [esi + 0x23c], edx
mov dword [esi + 0x244], edx
mov dword [esi + 0x104], eax
jne 0x13d6d
lea eax, [esi + 0x134]
mov ecx, dword [eax]
cmp ecx, edx
mov dword [esp + 0x14], ecx
je 0x13d6d
mov edi, dword [esi + 0x1e0]
test edi, edi
mov ecx, dword [esp + 0x10]
mov dword [eax], edx
mov dl, byte [esp + 0x1c]
je 0x13d54
or dword [esi + 0x1e0], 0xffffffff
call ebp
mov eax, dword [edi + 0x1c]
add eax, 0x10
mov ecx, eax
mov dword [esp + 0x1c], eax
call ebx
lea ecx, [esi + 0x1ec]
cmp dword [ecx], 0
je 0x13d31
and dword [ecx], 0
lea ecx, [esi + 0x1e4]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ecx], edx
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x1c]
and dword [esi + 0x1e0], 0
mov dl, al
call ebp
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x13d56
push edi
call fcn.000108fe
jmp 0x13d56
call ebp
mov ecx, dword [esp + 0x14]
cmp ecx, 0xffffffff
je 0x13d77
and dword [ecx + 0x18], 0
mov dl, 2
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
jmp 0x13d77
mov dl, byte [esp + 0x1c]
mov ecx, dword [esp + 0x10]
call ebp
mov ecx, dword [esp + 0x10]
call ebx
mov edx, dword [esi + 0xc]
test edx, edx
jne 0x13e51
lea ecx, [esi + 0x138]
mov edi, dword [ecx]
test edi, edi
mov dword [esp + 0x14], edi
je 0x13e43
mov edi, dword [esi + 0x1e0]
and dword [ecx], edx
test edi, edi
je 0x13e0b
cmp edi, 0xffffffff
je 0x13e0b
mov ecx, dword [esp + 0x10]
or dword [esi + 0x1e0], 0xffffffff
mov dl, al
call ebp
mov eax, dword [edi + 0x1c]
add eax, 0x10
mov ecx, eax
mov dword [esp + 0x1c], eax
call ebx
lea ecx, [esi + 0x1ec]
cmp dword [ecx], 0
je 0x13de8
and dword [ecx], 0
lea ecx, [esi + 0x1e4]
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x1c]
mov dl, al
call ebp
and dword [esi + 0x1e0], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x13e13
push edi
call fcn.000108fe
jmp 0x13e13
mov ecx, dword [esp + 0x10]
mov dl, al
call ebp
push dword [esp + 0x10]
lea ecx, [esi + 0x154]
or edx, 0xffffffff
call dword [sym.imp.ntoskrnl.exe_ExfInterlockedAddUlong]
cmp eax, 1
jne 0x13e31
push esi
call fcn.00013bb4
mov ecx, dword [esp + 0x14]
and dword [ecx + 0x18], 0
mov dl, 2
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
jmp 0x13e5f
test edx, edx
jne 0x13e51
mov dword [esi + 0x150], 1
mov ecx, dword [esp + 0x10]
dec dword [esi + 0x154]
mov dl, al
call ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4