Function at 0x1016a460
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x1dc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1f4]
push edi
mov edi, dword [esp + 0x1fc]
lea eax, [esp + 0x18]
mov byte [esi], 0
mov dword [esp + 0x34], eax
mov al, byte [edi + 0x10b]
xor ebp, ebp
mov byte [edi + 0x11c], 1
test al, al
mov dword [esp + 0x38], ebp
je 0x1016a4ae
mov byte [edi + 0x11c], 0x36
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1dc
ret
mov ebx, dword [esp + 0x200]
lea ecx, [esp + 0x170]
push ebx
push ecx
push 0
call sym.ITEuDllvMgr.dll_VDR_ReadWriteLUNConfig
add esp, 0xc
cmp eax, 1
jne 0x1016ad09
push ebx
call sym.ITEuDllvMgr.dll_VDR_GetSecurityStatus
add esp, 4
test eax, eax
jne 0x1016a50d
mov dword [esp + 0x38], 1
lea eax, [esp + 0x18c]
mov ecx, 3
mov edx, dword [esp + 0x1f4]
mov ebx, dword [eax]
add eax, 4
mov edx, dword [edx + 0x1c]
sub ebx, edx
dec ecx
mov dword [eax - 4], ebx
jne 0x1016a4f2
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x1f0]
xor edi, edi
xor cl, cl
mov byte [esp + 0x14], cl
mov eax, dword [esp + 0x14]
and eax, 0xff
test byte [eax + ebx + 4], 0x70
je 0x1016a543
test cl, cl
jne 0x1016a534
test ebp, ebp
jne 0x1016a543
mov edx, dword [esp + 0x1f4]
cmp dword [edx + eax*4 + 8], 0
je 0x1016a543
inc edi
inc cl
cmp cl, 4
mov byte [esp + 0x14], cl
jb 0x1016a51c
mov eax, 0x64
xor edx, edx
div edi
xor cl, cl
mov dword [esp + 0x1c], 0
mov byte [esp + 0x14], cl
mov byte [esp + 0x10], al
mov ebp, dword [esp + 0x14]
and ebp, 0xff
mov al, byte [ebx + ebp + 4]
test al, 0x70
je 0x1016aaf3
test cl, cl
jne 0x1016a58f
mov ecx, dword [esp + 0x38]
test ecx, ecx
jne 0x1016aaf3
mov ecx, dword [esp + 0x1f4]
mov edi, dword [ecx + ebp*4 + 8]
test edi, edi
je 0x1016aaf3
mov cl, al
mov dword [esp + 0x67], 0
shl cl, 7
test al, 2
mov byte [esp + 0x61], cl
je 0x1016a5bf
mov dword [esp + 0x67], 1
mov edx, dword [esp + ebp*4 + 0x188]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x5c], edx
mov dl, al
shr dl, 4
and dl, 7
mov dword [esp + 0x63], 0
test al, 0x80
mov byte [esp + 0x62], dl
jne 0x1016a5ea
test cl, cl
je 0x1016a5f2
mov dword [esp + 0x63], 1
mov ecx, dword [esp + 0x1c]
mov dl, byte [esp + 0x10]
mov al, cl
mov dword [esp + 0x20], esi
imul dl
mov byte [esi], al
mov eax, dword [esp + 0x1fc]
add eax, 0x10b
inc ecx
mov dword [esp + 0x28], eax
mov al, byte [ebx + ebp]
cmp al, 2
mov dword [esp + 0x1c], ecx
jne 0x1016a670
mov al, cl
mov ebp, dword [ebx + ebp*4 + 0x44]
imul dl
test ebp, ebp
mov byte [esp + 0x25], dl
mov byte [esp + 0x24], al
mov dword [esp + 0x40], edi
je 0x1016aaf3
mov ecx, dword [esp + 0x200]
lea edx, [esp + 0x3c]
push ecx
push edx
push ebp
mov ecx, 6
sub esp, 0x18
lea esi, [esp + 0x44]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.1016f130
add esp, 0x24
cmp eax, 1
jne 0x1016ab63
jmp 0x1016aaec
cmp al, 4
jne 0x1016a788
mov edi, dword [ebx + ebp*4 + 0x44]
test edi, edi
je 0x1016a69f
mov ecx, dword [esp + 0x10]
mov eax, 0x66666667
and ecx, 0xff
imul ecx
sar edx, 2
mov eax, edx
mov ecx, edx
shr eax, 0x1f
add ecx, eax
jmp 0x1016a6a1
mov cl, dl
mov byte [esp + 0x25], cl
mov edx, dword [esp + 0x25]
and edx, 0xff
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x200]
mov byte [esp + 0x26], dl
mov dl, byte [esi]
add dl, cl
lea ecx, [esp + 0x1b0]
push eax
mov byte [esp + 0x28], dl
push ecx
lea edx, [esp + 0x44]
lea eax, [ebp + ebp*4]
lea ecx, [ebx + ebp]
push edx
push edi
lea edx, [ecx + eax*2 + 0x18]
mov eax, dword [ebx + ebp*4 + 8]
push edx
push eax
sub esp, 0x18
mov ecx, 6
lea esi, [esp + 0x50]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.1016dc80
add esp, 0x30
test eax, eax
je 0x1016aba5
mov eax, dword [esp + 0x10]
mov ebp, dword [ebx + ebp*4 + 0x44]
and eax, 0xff
lea ecx, [eax + eax*8]
mov eax, 0x66666667
imul ecx
mov al, byte [esp + 0x1c]
imul byte [esp + 0x10]
sar edx, 2
mov ecx, edx
mov byte [esp + 0x24], al
shr ecx, 0x1f
add edx, ecx
test ebp, ebp
mov byte [esp + 0x25], dl
je 0x1016aaec
mov edx, dword [esp + 0x200]
lea eax, [esp + 0x1b0]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
push ebp
mov ecx, 6
sub esp, 0x18
lea esi, [esp + 0x48]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.1016db60
add esp, 0x28
cmp eax, 1
jne 0x1016abe7
jmp 0x1016aaec
cmp al, 1
jne 0x1016a88f
mov edx, dword [esp + 0x1f4]
cmp dword [edx + ebp*4 + 8], 0x80000
jbe 0x1016a88f
lea eax, [esp + 0x3c]
push eax
call fcn.1016b770
mov eax, dword [ebx + ebp*4 + 0x44]
add esp, 4
test eax, eax
je 0x1016a7d9
mov ecx, dword [esp + 0x10]
mov eax, 0x66666667
and ecx, 0xff
imul ecx
sar edx, 2
mov eax, edx
mov ecx, edx
shr eax, 0x1f
add ecx, eax
jmp 0x1016a7dd
mov cl, byte [esp + 0x10]
mov byte [esp + 0x25], cl
mov edx, dword [esp + 0x25]
and edx, 0xff
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x200]
mov byte [esp + 0x26], dl
mov dl, byte [esi]
add dl, cl
push eax
mov byte [esp + 0x28], dl
lea ecx, [esp + 0x40]
lea edx, [ebp + ebp*4]
lea eax, [ebx + ebp]
push ecx
lea esi, [esp + 0x28]
lea ecx, [eax + edx*2 + 0x18]
mov edx, dword [ebx + ebp*4 + 8]
push ecx
push edx
sub esp, 0x18
mov ecx, 6
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.1016b9f0
add esp, 0x28
test eax, eax
je 0x1016ac29
mov eax, dword [esp + 0x10]
and eax, 0xff
lea ecx, [eax + eax*8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
mov ecx, dword [esp + 0x54]
shr eax, 0x1f
add edx, eax
mov al, byte [esp + 0x1c]
imul byte [esp + 0x10]
mov byte [esp + 0x25], dl
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x3c]
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x58]
sub eax, edx
sub eax, dword [esp + 0x4c]
sub eax, ecx
jmp 0x1016a988
mov eax, dword [esp + 0x1f4]
cmp dword [eax + ebp*4 + 8], 0x400000
jae 0x1016a9cc
lea ecx, [esp + 0x3c]
push ecx
call fcn.1016b1e0
mov eax, dword [ebx + ebp*4 + 0x44]
add esp, 4
test eax, eax
je 0x1016a8d8
mov ecx, dword [esp + 0x10]
mov eax, 0x66666667
and ecx, 0xff
imul ecx
sar edx, 2
mov eax, edx
mov ecx, edx
shr eax, 0x1f
add ecx, eax
jmp 0x1016a8dc
mov cl, byte [esp + 0x10]
mov byte [esp + 0x25], cl
mov edx, dword [esp + 0x25]
and edx, 0xff
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x200]
mov byte [esp + 0x26], dl
mov dl, byte [esi]
add dl, cl
push eax
mov byte [esp + 0x28], dl
lea ecx, [esp + 0x40]
lea edx, [ebp + ebp*4]
lea eax, [ebx + ebp]
push ecx
lea esi, [esp + 0x28]
lea ecx, [eax + edx*2 + 0x18]
mov edx, dword [ebx + ebp*4 + 8]
push ecx
push edx
sub esp, 0x18
mov ecx, 6
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.1016b400
add esp, 0x28
test eax, eax
je 0x1016ac68
mov eax, dword [esp + 0x10]
and eax, 0xff
lea ecx, [eax + eax*8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
mov ecx, dword [esp + 0x54]
shr eax, 0x1f
add edx, eax
mov al, byte [esp + 0x1c]
imul byte [esp + 0x10]
mov byte [esp + 0x25], dl
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x3c]
lea edx, [ecx + ecx]
sub eax, edx
mov edx, dword [esp + 0x58]
sub eax, edx
sub eax, 0x20
mov ebp, dword [ebx + ebp*4 + 0x44]
mov dword [esp + 0x40], eax
test ebp, ebp
je 0x1016aaec
mov ecx, dword [esp + 0x200]
lea edx, [esp + 0x3c]
push ecx
push edx
push ebp
mov ecx, 6
sub esp, 0x18
lea esi, [esp + 0x44]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.1016f5f0
add esp, 0x24
cmp eax, 1
jne 0x1016aca7
jmp 0x1016aaec
lea eax, [esp + 0x3c]
push eax
call fcn.1016b770
mov eax, dword [ebx + ebp*4 + 0x44]
add esp, 4
test eax, eax
je 0x1016aa00
mov ecx, dword [esp + 0x10]
mov eax, 0x66666667
and ecx, 0xff
imul ecx
sar edx, 2
mov eax, edx
mov ecx, edx
shr eax, 0x1f
add ecx, eax
jmp 0x1016aa04
mov cl, byte [esp + 0x10]
mov byte [esp + 0x25], cl
mov edx, dword [esp + 0x25]
and edx, 0xff
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x200]
mov byte [esp + 0x26], dl
mov dl, byte [esi]
add dl, cl
push eax
mov byte [esp + 0x28], dl
lea ecx, [esp + 0x40]
lea edx, [ebp + ebp*4]
lea eax, [ebx + ebp]
push ecx
lea esi, [esp + 0x28]
lea ecx, [eax + edx*2 + 0x18]
mov edx, dword [ebx + ebp*4 + 8]
push ecx
push edx
sub esp, 0x18
mov ecx, 6
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.1016b9f0
add esp, 0x28
test eax, eax
je 0x1016ac29
mov eax, dword [esp + 0x10]
mov ebp, dword [ebx + ebp*4 + 0x44]
and eax, 0xff
lea ecx, [eax + eax*8]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
mov ecx, dword [esp + 0x54]
shr eax, 0x1f
add edx, eax
mov al, byte [esp + 0x1c]
imul byte [esp + 0x10]
mov byte [esp + 0x25], dl
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x3c]
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x58]
sub eax, edx
sub eax, dword [esp + 0x4c]
sub eax, ecx
test ebp, ebp
mov dword [esp + 0x40], eax
je 0x1016aaec
mov ecx, dword [esp + 0x200]
lea edx, [esp + 0x3c]
push ecx
push edx
push ebp
mov ecx, 6
sub esp, 0x18
lea esi, [esp + 0x44]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.1016f5f0
add esp, 0x24
cmp eax, 1
jne 0x1016aca7
mov esi, dword [esp + 0x1f8]
mov cl, byte [esp + 0x14]
inc cl
cmp cl, 4
mov byte [esp + 0x14], cl
jb 0x1016a569
mov eax, dword [esp + 0x200]
push eax
call sym.ITEuDllvMgr.dll_VDR_FlushCache
mov edx, dword [esp + 0x200]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
xor ecx, ecx
add esp, 4
mov cl, byte [edx + 0x113]
lea eax, [esp + 0x6c]
push ecx
push str.__d__FMT_Format_:_Format_Success_..._n
push eax
call fcn.1003399c
add esp, 0xc
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [esi], 0x64
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1dc
ret
mov esi, dword [esp + 0x1fc]
mov edx, dword [esp + 0x18]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
mov byte [esi + 0x11c], dl
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
and edx, 0xff
and eax, 0xff
push edx
push eax
xor eax, eax
mov al, byte [esi + 0x113]
push eax
push str.__d__FMT_Format_:_RawCopy_fail__Lun_ld___ErrorCode_ld_n
jmp 0x1016ace4
mov esi, dword [esp + 0x1fc]
mov edx, dword [esp + 0x18]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
mov byte [esi + 0x11c], dl
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
and edx, 0xff
and eax, 0xff
push edx
push eax
xor eax, eax
mov al, byte [esi + 0x113]
push eax
push str.__d__FMT_Format_:_Write_exFAT_fail__Lun_ld___ErrorCode_ld_n
jmp 0x1016ace4
mov esi, dword [esp + 0x1fc]
mov edx, dword [esp + 0x18]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
mov byte [esi + 0x11c], dl
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
and edx, 0xff
and eax, 0xff
push edx
push eax
xor eax, eax
mov al, byte [esi + 0x113]
push eax
push str.__d__FMT_Format_:_Copyfile_for_exFAT_fail__Lun_ld___ErrorCode_ld_n
jmp 0x1016ace4
mov esi, dword [esp + 0x1fc]
mov edx, dword [esp + 0x18]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
mov byte [esi + 0x11c], dl
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
and edx, 0xff
and eax, 0xff
push edx
push eax
xor eax, eax
mov al, byte [esi + 0x113]
push eax
push str.__d__FMT_Format_:_Write_FAT32_fail__Lun_ld___ErrorCode_ld_n
jmp 0x1016ace4
mov esi, dword [esp + 0x1fc]
mov edx, dword [esp + 0x18]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
mov byte [esi + 0x11c], dl
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
and edx, 0xff
and eax, 0xff
push edx
push eax
xor eax, eax
mov al, byte [esi + 0x113]
push eax
push str.__d__FMT_Format_:_Write_FAT16_fail__Lun_ld___ErrorCode_ld_n
jmp 0x1016ace4
mov esi, dword [esp + 0x1fc]
mov edx, dword [esp + 0x18]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x6c]
mov byte [esi + 0x11c], dl
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
and edx, 0xff
and eax, 0xff
push edx
push eax
xor eax, eax
mov al, byte [esi + 0x113]
push eax
push str.__d__FMT_Format_:_Copyfile_fail__Lun_ld___ErrorCode_ld_n
lea ecx, [esp + 0x7c]
push ecx
call fcn.1003399c
add esp, 0x14
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1dc
ret
mov byte [edi + 0x11c], 0x44
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1dc
ret