Function at 0x10056a93
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, 0x10138864
call fcn.1007db34
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0xf
xor esi, esi
push str.._tsd_volume_
push ebx
mov dword [ebp - 0x18], esi
call fcn.1007f884
add esp, 0xc
test eax, eax
je 0x10056d0a
push 0xf
push str.__tsd_volume_
push ebx
call fcn.1007f884
add esp, 0xc
test eax, eax
je 0x10056d0a
push 0xf
push str.___tsd_volume_
push ebx
call fcn.1007f884
add esp, 0xc
test eax, eax
je 0x10056d0a
push ebx
call fcn.1007e283
cmp eax, 2
pop ecx
jb 0x10056de6
cmp word [ebx + 2], 0x3a
jne 0x10056de6
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10053bab
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.10094cc0
mov eax, dword [0x101b04b8]
cmp eax, esi
je 0x10056b57
push dword [ebp - 0x1c]
mov ecx, 0x101ad158
push ebx
call fcn.100aa1c0
push eax
push str.__s__CSDMatch::IsSafeDiskDirectory_x2__lpszFileName__s__dwSafeDiskVolumeSN__lu_
push str.OutSendOead
push 4
call fcn.1007bb15
add esp, 0x18
cmp dword [ebp - 0x1c], esi
je 0x10056c10
push 9
mov esi, str.__tsd_volume_c:_
pop ecx
lea edi, [ebp - 0xc0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1e
xor eax, eax
pop ecx
lea edi, [ebp - 0x9a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [ebx]
xor esi, esi
push esi
mov word [ebp - 0xa2], ax
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
lea eax, [ebp - 0xc0]
push esi
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp dword [0x101b04b8], esi
je 0x10056c02
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc0]
push dword [ebp - 0x14]
push eax
push ebx
push str.CSDMatch::IsDecryptDirectory:_File__s___Root__s___MemVolumeSN__x___GetVolumeSN__x__n
push str.procmon
push 4
call fcn.1007bb15
add esp, 0x1c
cmp dword [0x101b04b8], esi
je 0x10056c02
push dword [ebp - 0x14]
lea eax, [ebp - 0xc0]
mov ecx, 0x101ad158
push eax
call fcn.100aa1c0
push eax
push str.__s__CSDMatch::IsSafeDiskDirectory_x3__szRoot__s__dwVolumeSN__lu_
push str.OutSendOead
push 4
call fcn.1007bb15
add esp, 0x18
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
je 0x10056ddf
xor esi, esi
mov eax, dword [0x101421f0]
mov dword [ebp + 8], eax
movzx eax, word [ebx]
push str.__OeaSDPolicy
push eax
mov edi, str._c:_s
lea eax, [ebp + 8]
push edi
push eax
mov dword [ebp - 4], esi
call fcn.10097c40
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
push dword [ebp + 8]
call esi
cmp dword [0x101b04b8], 0
mov dword [ebp - 0x10], eax
je 0x10056c70
push eax
mov ecx, 0x101ad158
push dword [ebp + 8]
call fcn.100aa1c0
push eax
push str.__s__CSDMatch::IsSafeDiskDirectory_x4__dir__s__dwAttr1__lu_
push str.OutSendOead
push 4
call fcn.1007bb15
add esp, 0x18
cmp dword [ebp - 0x10], 0xffffffff
je 0x10056c7c
test byte [ebp - 0x10], 0x10
jne 0x10056cf8
mov eax, dword [0x101421f0]
mov dword [ebp - 0x20], eax
movzx eax, word [ebx]
push str.__SDRightPolicy
push eax
lea eax, [ebp - 0x20]
push edi
push eax
mov byte [ebp - 4], 1
call fcn.10097c40
add esp, 0x10
push dword [ebp - 0x20]
call esi
cmp dword [0x101b04b8], 0
mov ebx, eax
je 0x10056cd1
push ebx
mov ecx, 0x101ad158
push dword [ebp - 0x20]
call fcn.100aa1c0
push eax
push str.__s__CSDMatch::IsSafeDiskDirectory_x5__dir__s__dwAttr2__lu_
push str.OutSendOead
push 4
call fcn.1007bb15
add esp, 0x18
cmp ebx, 0xffffffff
je 0x10056cdb
test bl, 0x10
jne 0x10056d01
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.10094cc0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.10094cc0
jmp 0x10056de6
mov dword [ebp - 0x18], 1
jmp 0x10056ce7
mov dword [ebp - 0x18], 1
jmp 0x10056cdb
cmp dword [0x101b04b8], esi
je 0x10056d32
push ebx
mov ecx, 0x101ad158
call fcn.100aa1c0
push eax
push str.__s__CSDMatch::IsSafeDiskDirectory_x1__lpszFileName__s_
push str.OutSendOead
push 4
call fcn.1007bb15
add esp, 0x14
push ebx
call fcn.1007e283
cmp eax, 0x10
pop ecx
jb 0x10056de6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10053bab
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
call fcn.10094cc0
cmp dword [ebp - 0x14], esi
je 0x10056de6
push 9
mov esi, str.__tsd_volume_c:_
pop ecx
lea edi, [ebp - 0xc0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x1e
xor eax, eax
pop ecx
lea edi, [ebp - 0x9a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [ebx + 0x1e]
xor esi, esi
push esi
mov word [ebp - 0xa2], ax
push esi
push esi
lea eax, [ebp - 0x10]
push esi
push eax
push esi
lea eax, [ebp - 0xc0]
push esi
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp dword [0x101b04b8], esi
je 0x10056dd7
push dword [ebp - 0x14]
lea eax, [ebp - 0xc0]
push dword [ebp - 0x10]
push eax
push ebx
push str.CSDMatch::IsDecryptDirectory:_File__s___Root__s___MemVolumeSN__x___GetVolumeSN__x__n
push str.procmon
push 4
call fcn.1007bb15
add esp, 0x1c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x10056de6
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret