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

Disassembly:
sub esp, 0x198
mov eax, dword [0x514d34]
xor eax, esp
mov dword [esp + 0x194], eax
mov eax, dword [esp + 0x1a0]
push ebx
mov ebx, dword [esp + 0x1a0]
push ebp
xor ebp, ebp
mov dword [esp + 0x10], eax
push ebp
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0xa8]
push eax
push ebx
call fcn.0040d952
add esp, 0x1c
cmp byte [esp + 0x94], 0
jne 0x4a75c4
lea eax, [esp + 0x94]
push eax
call fcn.0045dc88
pop ecx
push 0x40
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x5c]
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0xb0]
push 0x5c
push eax
call fcn.0040970e
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4a75fb
xor eax, eax
jmp 0x4a77f0
test byte [esp + 0x24], 8
je 0x4a75f4
push esi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x4a761e
mov eax, 0xa9f
jmp 0x4a77ef
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSecurityInfo
push esi
call edi
mov ebp, eax
test ebp, ebp
je 0x4a774a
push str.SetEntriesInAclA
push esi
call edi
mov dword [esp + 0x34], eax
test eax, eax
je 0x4a774a
push str.SetSecurityInfo
push esi
call edi
mov esi, eax
mov dword [esp + 0x30], esi
test esi, esi
je 0x4a774a
xor eax, eax
push eax
push 0x2000000
push 3
push eax
push eax
push 0x60000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a76a1
lea eax, [esp + 0x28]
xor ebx, ebx
push eax
push ebx
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push 4
push 1
push edi
call ebp
test eax, eax
je 0x4a76b3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d63f
pop ecx
jmp 0x4a77ee
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebx
push eax
push ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebx
push eax
push ebx
push ebp
push 0x4c060e
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x4a775a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4a7743
push dword [esp + 0x14]
call fcn.00441cd2
push dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0x20], esi
call fcn.00441cd2
mov ebx, eax
pop ecx
pop ecx
test esi, esi
je 0x4a7743
test ebx, ebx
je 0x4a7743
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
push ebx
lea eax, [esp + 0x20]
push eax
push esi
push ebp
push 0x4c060e
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
push dword [esp + 0x18]
mov esi, eax
call fcn.00441cdb
push ebx
call fcn.00441cdb
pop ecx
pop ecx
test esi, esi
jne 0x4a7754
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xa9f
jmp 0x4a77ee
mov esi, dword [esp + 0x30]
xor ebx, ebx
mov eax, dword [esp + 0x1b4]
xor ecx, ecx
mov dword [esp + 0x38], eax
inc ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x24]
lea eax, [esp + 0x40]
mov dword [esp + 0x44], ecx
push eax
push ecx
mov dword [esp + 0x50], 3
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x64], ebp
call dword [esp + 0x44]
test eax, eax
jne 0x4a77d4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
movzx eax, word [ecx + 2]
cmp word [edx + 2], ax
jne 0x4a77c9
push eax
push ecx
push edx
call fcn.0045b836
add esp, 0xc
test ax, ax
je 0x4a77d4
mov ecx, dword [esp + 0x24]
push ebx
push ecx
push ebx
push ebx
push 4
push 1
push edi
call esi
cmp dword [esp + 0x28], 0
je 0x4a77e5
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x19c]
pop ebp
pop ebx
xor ecx, esp
call fcn.00441a5e
add esp, 0x198
ret