Function at 0x77d00ac5
Capabilities:
Get common file path
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
push ebx
push esi
push edi
push 7
pop ecx
mov dword [ebp - 0x250], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push 0x238
mov dword [ebp - 0x24c], eax
xor eax, eax
lea edi, [ebp - 0x228]
push ebx
rep stosd dword es:[edi], eax
push edx
mov dword [ebp - 0x258], edx
mov dword [ebp - 0x254], ebx
mov esi, 0x800
mov dword [ebp - 0x228], 0x1c
call sub.ntdll.dll_memset
mov edi, dword [ebp - 0x250]
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 0x10]
push 0x77ce0db0
push ebx
push dword [ebp - 0x24c]
call dword [edi + 0x1c]
test eax, eax
jne 0x77d00b5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x248], eax
jmp 0x77d00dcd
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x24c]
push edi
call fcn.77d0060e
cmp eax, ebx
mov dword [ebp - 0x248], eax
jne 0x77d00dac
mov edi, dword [ebp - 0x258]
push 0x100
lea eax, [edi + 0x28]
push eax
push 0xc
lea eax, [ebp - 0x244]
push eax
push dword [ebp - 0x24c]
push dword [ebp - 0x250]
call fcn.77d00825
cmp eax, ebx
mov dword [ebp - 0x248], eax
jne 0x77d00dac
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x77d00bf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x248], eax
jmp 0x77d00dac
mov ax, word [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push dword [ebp - 0x254]
mov word [edi + 0x22e], ax
mov word [edi + 0x230], bx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x24c], eax
je 0x77d00be2
push ebx
lea ecx, [ebp - 0x25c]
push ecx
push 0xc
lea ecx, [ebp - 0x26c]
push ecx
push ebx
push ebx
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x77d00c58
mov eax, dword [ebp - 0x268]
mov dword [edi], eax
jmp 0x77d00c5b
or dword [edi], 0xffffffff
push ebx
lea eax, [ebp - 0x25c]
push eax
push 0x18
lea eax, [ebp - 0x284]
push eax
push ebx
push ebx
push 0x740d4
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x77d00c92
cmp byte [ebp - 0x282], bl
je 0x77d00c92
mov byte [edi + 0x22c], 1
lea eax, [ebp - 0x250]
push eax
push edi
call fcn.77d008fd
cmp eax, ebx
mov dword [ebp - 0x248], eax
jne 0x77d00da0
push 0x800
jmp 0x77d00d0f
push ebx
lea eax, [ebp - 0x25c]
push eax
push esi
push edi
push ebx
push ebx
push 0x70050
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x77d00d35
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x77d00ce4
add esi, esi
jmp 0x77d00cfa
cmp eax, 0xea
jne 0x77d00d5c
mov esi, dword [edi + 4]
imul esi, esi, 0x90
add esi, 0xc0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
cmp edi, ebx
jne 0x77d00cb4
mov dword [ebp - 0x248], 0xe
jmp 0x77d00d88
xor ecx, ecx
cmp dword [edi + 4], ebx
jbe 0x77d00d76
lea eax, [edi + 0x48]
cmp dword [eax], ebx
je 0x77d00d4f
mov edx, dword [ebp - 0x258]
inc dword [edx + 0x228]
inc ecx
add eax, 0x90
cmp ecx, dword [edi + 4]
jae 0x77d00d76
jmp 0x77d00d3f
cmp eax, 0x15
jne 0x77d00d7e
cmp dword [ebp - 0x250], 0xc
je 0x77d00d7e
mov eax, dword [ebp - 0x258]
mov dword [eax + 0x228], ebx
mov dword [ebp - 0x248], ebx
jmp 0x77d00d88
mov dword [ebp - 0x248], 0xf
cmp edi, ebx
je 0x77d00da0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x254], ebx
je 0x77d00dcd
push dword [ebp - 0x254]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x248]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cc744e
leave
ret 0x10