Function at 0x77d0d7d9
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 [0x77d260c4]
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 0x77cef5b0
push ebx
push dword [ebp - 0x24c]
call dword [edi + 0x1c]
test eax, eax
jne 0x77d0d873
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x248], eax
jmp 0x77d0dae1
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.77d0d324
cmp eax, ebx
mov dword [ebp - 0x248], eax
jne 0x77d0dac0
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.77d0d53b
cmp eax, ebx
mov dword [ebp - 0x248], eax
jne 0x77d0dac0
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x77d0d907
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x248], eax
jmp 0x77d0dac0
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 0x77d0d8f6
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 0x77d0d96c
mov eax, dword [ebp - 0x268]
mov dword [edi], eax
jmp 0x77d0d96f
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 0x77d0d9a6
cmp byte [ebp - 0x282], bl
je 0x77d0d9a6
mov byte [edi + 0x22c], 1
lea eax, [ebp - 0x250]
push eax
push edi
call fcn.77d0d613
cmp eax, ebx
mov dword [ebp - 0x248], eax
jne 0x77d0dab4
push 0x800
jmp 0x77d0da23
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 0x77d0da49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x77d0d9f8
add esi, esi
jmp 0x77d0da0e
cmp eax, 0xea
jne 0x77d0da70
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 0x77d0d9c8
mov dword [ebp - 0x248], 0xe
jmp 0x77d0da9c
xor ecx, ecx
cmp dword [edi + 4], ebx
jbe 0x77d0da8a
lea eax, [edi + 0x48]
cmp dword [eax], ebx
je 0x77d0da63
mov edx, dword [ebp - 0x258]
inc dword [edx + 0x228]
inc ecx
add eax, 0x90
cmp ecx, dword [edi + 4]
jae 0x77d0da8a
jmp 0x77d0da53
cmp eax, 0x15
jne 0x77d0da92
cmp dword [ebp - 0x250], 0xc
je 0x77d0da92
mov eax, dword [ebp - 0x258]
mov dword [eax + 0x228], ebx
mov dword [ebp - 0x248], ebx
jmp 0x77d0da9c
mov dword [ebp - 0x248], 0xf
cmp edi, ebx
je 0x77d0dab4
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 0x77d0dae1
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.77cd6011
leave
ret 0x10