Function at 0x1c05c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [esi + 0x14]
lea ebx, [edi + 0x30]
push ebx
mov dword [ebp - 0x18], eax
mov byte [ebp - 1], 0
mov byte [ebp + 0xf], 0
call sub.SCSIPORT.SYS_ScsiPortReadRegisterUlong
push eax
push ebx
mov dword [ebp - 0xc], eax
call sub.SCSIPORT.SYS_ScsiPortWriteRegisterUlong
lea eax, [edi + 0x38]
push eax
mov dword [ebp - 0x20], eax
call sub.SCSIPORT.SYS_ScsiPortReadRegisterUlong
mov ebx, eax
lea eax, [edi + 0x34]
push eax
call sub.SCSIPORT.SYS_ScsiPortReadRegisterUlong
mov dword [ebp - 8], eax
lea eax, [edi + 0x18]
push eax
call sub.SCSIPORT.SYS_ScsiPortReadRegisterUlong
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 0xd0]
push eax
push esi
call fcn.00019e2e
add edi, 0x10
push edi
mov dword [ebp - 0x1c], edi
call sub.SCSIPORT.SYS_ScsiPortReadRegisterUlong
test byte [esi + 8], 1
mov dword [ebp - 0x10], eax
je 0x1c0eb
mov eax, dword [ebp - 8]
not eax
and eax, dword [esi + 0xc8]
mov ebx, eax
jmp 0x1c0f6
not ebx
and ebx, dword [esi + 0xc8]
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], 0
je 0x1c105
push dword [ebp - 0xc]
push esi
call fcn.0001ae30
mov eax, dword [ebp - 0x10]
and eax, 0xffffffd0
mov edi, eax
and edi, 0x40000000
mov dword [ebp - 0xc], eax
jne 0x1c120
test al, 0xc0
je 0x1c266
push ebx
push dword [ebp - 0x10]
push eax
push 0x1bfa8
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x10
test edi, edi
mov edi, dword [ebp - 0x14]
je 0x1c17b
shr edi, 8
and edi, 0x1f
test byte [esi + 8], 8
mov byte [ebp - 1], 1
jne 0x1c177
xor eax, eax
inc eax
mov ecx, edi
shl eax, cl
cmp ebx, eax
jne 0x1c17b
mov eax, dword [esi + edi*4 + 0x48]
test eax, eax
jne 0x1c15d
int3
movzx eax, word [eax + 8]
push 4
cdq
pop ecx
idiv ecx
imul edx, edx, 0x2e0
test byte [edx + esi + 0xd2], 1
je 0x1c17b
mov byte [ebp + 0xf], 1
and dword [ebp - 0xc], 0xbfffff3f
cmp byte [ebp + 0xf], 0
je 0x1c247
test byte [esi + 8], 1
je 0x1c193
int3
xor eax, eax
inc eax
mov ecx, edi
shl eax, cl
cmp ebx, eax
je 0x1c19f
int3
cmp dword [esi + 0xc8], ebx
je 0x1c1a8
int3
mov ecx, dword [esi + edi*4 + 0x48]
test ecx, ecx
jne 0x1c1b1
int3
movzx eax, word [ecx + 8]
cdq
push 4
pop ebx
idiv ebx
imul edx, edx, 0x2e0
lea edx, [edx + esi + 0xd0]
lea eax, [edx + 0x80]
cmp ecx, eax
jne 0x1c1ec
lea eax, [ecx + 0x23c]
cmp dword [eax], 0
je 0x1c1ec
test byte [edx + 2], 1
jne 0x1c1e4
int3
mov ecx, dword [eax]
mov byte [ecx + 0xc], 8
jmp 0x1c202
mov eax, dword [ecx + 0x254]
and eax, 0x80000
neg eax
sbb al, al
and al, 0x7a
add al, 8
mov byte [ecx + 0xc], al
push edi
lea eax, [ebp - 0x30]
push eax
push ecx
push esi
push dword [ebp + 8]
call fcn.0001b9ca
mov cl, byte [esi + 4]
xor eax, eax
inc eax
shl eax, cl
push eax
mov eax, dword [ebp - 0x18]
add eax, 8
push eax
call sub.SCSIPORT.SYS_ScsiPortWriteRegisterUlong
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call sub.SCSIPORT.SYS_ScsiPortWriteRegisterUlong
cmp dword [ebp - 0xc], 0
je 0x1c240
push dword [ebp - 0xc]
push esi
call fcn.0001bd8e
pop edi
pop esi
pop ebx
leave
ret 8
cmp byte [ebp - 1], 0
je 0x1c266
test byte [esi + 8], 1
jne 0x1c266
xor eax, eax
inc eax
mov ecx, edi
shl eax, cl
cmp ebx, eax
je 0x1c25f
int3
and dword [ebp - 8], 0
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x1c328
mov byte [ebp + 0xc], 0
movzx ecx, byte [ebp + 0xc]
xor eax, eax
inc eax
shl eax, cl
test ebx, eax
je 0x1c31b
mov edi, dword [esi + ecx*4 + 0x48]
not eax
and ebx, eax
movzx eax, word [edi + 8]
push 4
cdq
pop ecx
idiv ecx
mov dword [ebp - 8], ebx
imul edx, edx, 0x2e0
cmp byte [edi + 0xc], 0x81
lea ebx, [edx + esi + 0xd0]
jne 0x1c2be
push 0x1bfe8
call sub.ntoskrnl.exe_DbgPrint
pop ecx
push 0
push edi
call fcn.00011f88
lea eax, [ebx + 0x80]
cmp edi, eax
jne 0x1c2fd
lea eax, [edi + 0x23c]
cmp dword [eax], 0
je 0x1c2fd
test byte [ebx + 2], 1
jne 0x1c2da
int3
mov ebx, dword [eax]
movzx eax, byte [ebx + 0x14]
mov ecx, dword [edi + 0x18]
cmp eax, ecx
jb 0x1c2e9
mov eax, ecx
push eax
push dword [edi + 0x2c]
push dword [ebx + 0x30]
call fcn.00011dd0
mov byte [ebx + 0xc], 7
mov edi, ebx
jmp 0x1c301
mov byte [edi + 0xc], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push eax
push edi
push esi
push dword [ebp + 8]
call fcn.0001b9ca
cmp dword [ebp - 8], 0
je 0x1c328
mov ebx, dword [ebp - 8]
inc byte [ebp + 0xc]
cmp byte [ebp + 0xc], 0x20
jb 0x1c272
cmp byte [ebp - 1], 0
je 0x1c211
mov eax, dword [esi + 0x14]
add eax, 0x18
push eax
call sub.SCSIPORT.SYS_ScsiPortReadRegisterUlong
mov edi, eax
mov eax, dword [esi + 0x14]
and edi, 0xfffffffe
push edi
add eax, 0x18
push eax
call sub.SCSIPORT.SYS_ScsiPortWriteRegisterUlong
xor ebx, ebx
inc ebx
push ebx
push dword [ebp + 8]
call fcn.000114ec
mov eax, dword [esi + 0x14]
or edi, ebx
push edi
add eax, 0x18
push eax
call sub.SCSIPORT.SYS_ScsiPortWriteRegisterUlong
push ebx
push dword [ebp + 8]
call fcn.000114ec
movzx eax, byte [esi + 4]
push eax
push 0x1c008
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
mov cl, byte [esi + 4]
shl ebx, cl
add eax, 8
mov dword [ebp - 0x18], eax
push ebx
push eax
call sub.SCSIPORT.SYS_ScsiPortWriteRegisterUlong
and dword [ebp - 0xc], 0
mov byte [ebp + 0xc], 0
lea ebx, [esi + 0x48]
mov edi, dword [ebx]
test edi, edi
je 0x1c406
mov ecx, dword [ebp - 0xc]
and dword [edi + 0x254], 0xff
push dword [ebp + 0xc]
xor eax, eax
inc eax
shl eax, cl
mov byte [edi + 0xc], 0x81
and dword [ebx], 0
not eax
and dword [esi + 0xc8], eax
lea eax, [esi + 0xc50]
push eax
call fcn.000120b8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3e94]
add eax, 0x3e90
mov dword [ecx], edi
mov dword [edi + 4], ecx
mov dword [edi], eax
push 0x1c03c
mov dword [eax + 4], edi
call sub.ntoskrnl.exe_DbgPrint
pop ecx
push 0
push edi
call fcn.00011f88
inc byte [ebp + 0xc]
inc dword [ebp - 0xc]
add ebx, 4
cmp byte [ebp + 0xc], 0x20
jb 0x1c3a5
push dword [ebp - 0x20]
call sub.SCSIPORT.SYS_ScsiPortReadRegisterUlong
test eax, eax
je 0x1c422
int3
push dword [ebp - 0x1c]
call sub.SCSIPORT.SYS_ScsiPortReadRegisterUlong
test eax, eax
je 0x1c42f
int3
push dword [ebp - 0x18]
call sub.SCSIPORT.SYS_ScsiPortReadRegisterUlong
mov cl, byte [esi + 4]
xor edx, edx
inc edx
shl edx, cl
test edx, eax
je 0x1c444
int3
push 4
lea edi, [esi + 0xdc]
pop ebx
test byte [edi - 0xa], 1
jne 0x1c464
test byte [edi], 0x40
je 0x1c464
lea eax, [edi - 0xc]
push eax
push esi
call fcn.0001ef18
jmp 0x1c46c
push dword [ebp + 8]
call fcn.0001b302
add edi, 0x2e0
dec ebx
jne 0x1c44d
jmp 0x1c240