Function at 0x478ea0
Capabilities:
Get disk information
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
xor ebx, ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x49], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x479265
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004092e8
test al, al
jne 0x478eea
mov byte [ebp - 6], 1
jmp 0x479237
mov byte [ebp - 6], 0
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00409700
lea ecx, [ebp - 0x84]
mov dl, 1
mov eax, dword [ebp - 0x28]
call fcn.00475b80
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x28]
call fcn.00404430
push 0xa
lea eax, [ebp - 0x32]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x28]
call fcn.00404858
push eax
call sub.kernel32.dll_GetVolumeInformationA
lea eax, [ebp - 0x88]
lea edx, [ebp - 0x32]
mov ecx, 0xa
call fcn.00404608
mov eax, dword [ebp - 0x88]
mov edx, 0x47927c
call fcn.00408a40
test eax, eax
je 0x478f69
mov byte [ebp - 6], 1
jmp 0x479237
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 4]
call fcn.00404c1c
mov dword [ebp - 0x14], 0x60
mov dword [ebp - 0x18], 0x10
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x479237
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x6a]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0x479284
push 0
call sub.advapi32.dll_LookupAccountNameW
test eax, eax
jne 0x47902d
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x4791f2
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapReAlloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4791f2
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x6a]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0x479284
push 0
call sub.advapi32.dll_LookupAccountNameW
test eax, eax
je 0x4791f2
mov dword [ebp - 0x14], 0x60
mov eax, dword [ebp - 0x14]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x479237
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x6a]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x479298
push 0
call sub.advapi32.dll_LookupAccountNameW
test eax, eax
jne 0x4790dc
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x4791f2
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapReAlloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4791f2
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x6a]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x479298
push 0
call sub.advapi32.dll_LookupAccountNameW
test eax, eax
je 0x4791f2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetLengthSid
mov ebx, eax
add ebx, 0x20
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetLengthSid
add ebx, eax
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp - 0x24]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4791f2
push 2
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_InitializeAcl
test eax, eax
je 0x4791f2
mov eax, dword [ebp - 0xc]
push eax
push 0x10000000
push 2
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_AddAccessAllowedAce
test eax, eax
je 0x4791f2
mov eax, dword [ebp - 0x10]
push eax
push 0x10000000
push 2
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_AddAccessAllowedAce
test eax, eax
je 0x4791f2
lea eax, [ebp - 0x38]
push eax
push 0
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_GetAce
test eax, eax
je 0x479185
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov byte [eax + 1], 3
lea eax, [ebp - 0x38]
push eax
push 1
mov eax, dword [ebp - 0x20]
push eax
call sub.advapi32.dll_GetAce
test eax, eax
je 0x4791a5
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov byte [eax + 1], 3
push 1
lea eax, [ebp - 0x80]
push eax
call sub.advapi32.dll_InitializeSecurityDescriptor
test eax, eax
je 0x4791f2
cmp byte [ebp - 5], 0
je 0x4791cf
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x80]
push eax
call sub.advapi32.dll_SetSecurityDescriptorDacl
test eax, eax
je 0x4791f2
cmp byte [ebp - 5], 0
je 0x4791f2
lea eax, [ebp - 0x80]
push eax
push 4
mov eax, dword [ebp - 0x48]
call fcn.00404c2c
push eax
call sub.advapi32.dll_SetFileSecurityW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
cmp dword [ebp - 0x20], 0
je 0x479209
mov eax, dword [ebp - 0x20]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
cmp dword [ebp - 0xc], 0
je 0x479220
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
cmp dword [ebp - 0x10], 0
je 0x479237
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47926c
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.004043bc
lea eax, [ebp - 0x48]
call fcn.00404aa4
lea eax, [ebp - 0x28]
call fcn.00404398
ret