Function at 0x1003ed1
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xe7c
mov eax, dword [0x10060d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xe54], eax
test al, 0xe
je 0x1003f05
mov eax, 0xa0
jmp 0x1004234
cmp dword [ebp + 0xc], 1
jne 0x1003efb
call fcn.01003ce4
cmp eax, 0x4c7
jne 0x1003f1e
xor eax, eax
jmp 0x1004234
push esi
xor esi, esi
cmp eax, esi
jne 0x1004233
push esi
lea eax, [ebp - 0xe68]
push eax
push 1
push edi
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x1004222
lea eax, [ebp - 0xe7c]
push eax
lea eax, [ebp - 0xe60]
push eax
lea eax, [ebp - 0xe74]
push eax
push dword [ebp - 0xe68]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x100420c
cmp dword [ebp - 0xe74], esi
je 0x1004205
push esi
lea ecx, [ebp - 0xe50]
call fcn.010025b7
lea eax, [ebp - 0xe78]
push eax
lea eax, [ebp - 0xe70]
push eax
push dword [ebp - 0xe68]
mov dword [ebp - 0xe5c], 4
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
je 0x1003fc0
test dword [ebp - 0xe70], 0x1000
je 0x1003fc0
mov dword [ebp - 0xe5c], 0x80000004
lea eax, [ebp - 0xe64]
push eax
lea eax, [ebp - 0xe58]
push eax
push ebx
lea ecx, [ebp - 0xe50]
call fcn.01002e14
mov ebx, eax
cmp ebx, esi
jne 0x10041f8
cmp ebx, esi
je 0x1004003
cmp ebx, 5
je 0x1003ff6
cmp ebx, 0x20
jne 0x10041f1
test byte [ebp - 0xe54], 0x20
je 0x10041f1
test byte [ebp - 0xe54], 0x40
je 0x1004146
cmp dword [ebp - 0xe64], esi
je 0x10041af
mov eax, dword [ebp - 0xe58]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1004025
sub eax, edx
sar eax, 1
lea edi, [eax + 0xa]
lea eax, [edi + edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xe6c], eax
cmp eax, esi
je 0x10041ee
push dword [ebp - 0xe58]
push edi
push eax
call sub.msvcrt.dll_wcscpy_s
push 0x10011cc
push edi
push dword [ebp - 0xe6c]
call sub.msvcrt.dll_wcscat_s
add esp, 0x18
push 0x3de
lea eax, [ebp - 0x7d4]
push eax
push dword [ebp - 0xe6c]
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x1004110
push dword [ebp - 0xe58]
push 0x10014cc
call fcn.010033f7
test byte [ebp - 0xe54], 0x10
pop ecx
pop ecx
lea eax, [ebp - 0x7d4]
je 0x10040db
push dword [ebp - 0xe54]
push 2
push 0x1003e64
push esi
push esi
push dword [ebp - 0xe60]
push esi
push esi
push dword [ebp - 0xe5c]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_TreeResetNamedSecurityInfoW]
mov ebx, eax
jmp 0x1004108
push esi
push dword [ebp - 0xe60]
push esi
push esi
push dword [ebp - 0xe5c]
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov ebx, eax
push ebx
push dword [ebp - 0xe64]
lea eax, [ebp - 0x7d4]
push eax
call fcn.01003dfe
mov dword [0x10060f0], esi
jmp 0x1004115
call fcn.01003418
push dword [ebp - 0xe6c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebx, esi
je 0x10041ce
test byte [ebp - 0xe54], 0x20
je 0x10041f1
cmp ebx, 5
je 0x10041af
cmp ebx, 0x20
jne 0x10041f1
jmp 0x10041af
test byte [ebp - 0xe54], 0x10
je 0x100417e
push dword [ebp - 0xe54]
push 2
push 0x1003e64
push esi
push esi
push dword [ebp - 0xe60]
push esi
push esi
push dword [ebp - 0xe5c]
push 1
push dword [ebp - 0xe58]
call dword [sym.imp.ADVAPI32.dll_TreeResetNamedSecurityInfoW]
mov ebx, eax
jmp 0x10041af
push esi
push dword [ebp - 0xe60]
push esi
push esi
push dword [ebp - 0xe5c]
push 1
push dword [ebp - 0xe58]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov ebx, eax
push ebx
push dword [ebp - 0xe64]
push dword [ebp - 0xe58]
call fcn.01003dfe
cmp ebx, esi
je 0x10041ce
cmp ebx, 5
je 0x10041c1
cmp ebx, 0x20
jne 0x1003fe4
test byte [ebp - 0xe54], 0x20
je 0x1003fe4
lea eax, [ebp - 0xe64]
push eax
lea eax, [ebp - 0xe58]
push eax
lea ecx, [ebp - 0xe50]
call fcn.01002d37
mov ebx, eax
jmp 0x1003fe4
push 8
pop ebx
cmp ebx, 0x12
jne 0x10041f8
xor ebx, ebx
lea ecx, [ebp - 0xe50]
call fcn.010025f7
jmp 0x1004214
mov ebx, 0xa0
jmp 0x1004214
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push dword [ebp - 0xe68]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x100422a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x12
jne 0x1004231
xor ebx, ebx
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01005019
leave
ret 0x10