Function at 0x7c8cc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x44], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x7cc64
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
call sub.kernel32.dll_SetLastError
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 8]
call fcn.00013ec0
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x44]
call fcn.0007c804
mov eax, dword [ebp - 0x44]
call fcn.00013ef8
test eax, eax
jle 0x7c9a1
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x44]
call fcn.000768e8
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x44]
call fcn.00013d10
mov eax, dword [ebp - 0x44]
call fcn.000140bc
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x7c969
mov eax, dword [0xf6520]
or dword [ebp - 0x2c], eax
push 0x104
push 0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0x104
push 0
mov eax, dword [ebp - 0x44]
call fcn.000140bc
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x7c9a1
test byte [ebp - 0x54], 8
jne 0x7c9a1
mov eax, dword [0xf651c]
or dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x7cc26
mov eax, 0x400
call fcn.0007b580
mov dword [ebp - 0x48], eax
mov eax, 0x400
call fcn.0007b580
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
mov edx, 0x800
call fcn.000763a0
xor eax, eax
push ebp
push 0x7cc1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x48]
call fcn.0007ac04
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
call fcn.0007ac04
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x50], eax
xor eax, eax
push ebp
push 0x7cbed
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
call fcn.000140bc
push eax
call sub.advapi32.dll_ConvertStringSidToSidA_1
test eax, eax
je 0x7cb8a
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x20]
call fcn.0007ac40
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x48]
call fcn.0007ac40
push eax
mov eax, dword [ebp - 0x50]
push eax
push 0
call sub.advapi32.dll_LookupAccountSidW_1
test eax, eax
je 0x7cb76
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x20]
call fcn.0007ac20
push dword [ebp - 0x60]
push 0x7cc7c
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x48]
call fcn.0007ac20
push dword [ebp - 0x64]
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.000145ac
cmp byte [ebp - 9], 0
je 0x7cac9
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 4
push 1
mov eax, dword [ebp - 8]
call fcn.000144cc
push eax
call sub.advapi32.dll_GetNamedSecurityInfoW
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x7cace
mov eax, dword [0xf6508]
or dword [ebp - 0x2c], eax
jmp 0x7cace
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
push eax
xor eax, eax
mov al, byte [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x38]
call fcn.000144cc
push eax
mov eax, dword [ebp - 0x3c]
push eax
call sub.advapi32.dll_BuildExplicitAccessWithNameW
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x3c]
push eax
push 1
call sub.advapi32.dll_SetEntriesInAclW
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x7cb62
cmp byte [ebp - 9], 0
je 0x7cb1d
mov dword [ebp - 0x34], 4
jmp 0x7cb28
mov eax, dword [0xf6848]
or eax, 4
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x40], eax
push 0
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 0x34]
push eax
push 1
mov eax, dword [ebp - 8]
call fcn.000144cc
push eax
call sub.advapi32.dll_SetNamedSecurityInfoW
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x7cb9c
mov eax, dword [0xf650c]
or dword [ebp - 0x2c], eax
jmp 0x7cb9c
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [0xf6510]
or dword [ebp - 0x2c], eax
jmp 0x7cb9c
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [0xf6514]
or dword [ebp - 0x2c], eax
jmp 0x7cb9c
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [0xf6518]
or dword [ebp - 0x2c], eax
push 0
call sub.kernel32.dll_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7cbf4
cmp dword [ebp - 0x28], 0
je 0x7cbbf
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x50], 0
je 0x7cbd3
mov eax, dword [ebp - 0x50]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x14], 0
je 0x7cbe7
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
mov dword [ebp - 0x14], eax
ret
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7cc6b
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.000142c0
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00013c9c
lea eax, [ebp - 0x44]
call fcn.00013c78
lea eax, [ebp - 0x38]
call fcn.000142a8
ret