Function at 0x4fbf78
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57163f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1300
call fcn.0054cd40
push edi
mov ax, word [0x5db774]
mov word [ebp - 0x8c], ax
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x8a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [0x5b1208]
mov dword [ebp - 0x4c], ecx
mov edx, dword [0x5b120c]
mov dword [ebp - 0x48], edx
mov ax, word [0x5b1210]
mov word [ebp - 0x44], ax
mov ecx, 0xd
xor eax, eax
lea edi, [ebp - 0x42]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x90]
call fcn.004013e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x29bc], 6
push 0x5b1214
mov edx, dword [ebp + 8]
push edx
call fcn.005031b7
add esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.0050d4a7
add esp, 4
push 0x20
push 0
lea ecx, [ebp - 0x8c]
push ecx
call fcn.0054bfb0
add esp, 0xc
push 0x20
lea edx, [ebp - 0x8c]
push edx
mov eax, dword [ebp + 8]
add eax, 0x2a80
push eax
call fcn.0054c3e0
add esp, 4
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x2a80
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call fcn.004fbed2
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jne 0x4fc09c
mov dword [ebp - 0x1304], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00560ea1
mov eax, dword [ebp - 0x1304]
jmp 0x4fc2e0
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0x4760]
push eax
push 0x5b121c
lea ecx, [ebp - 0xd8]
push ecx
call fcn.0054c45b
add esp, 0xc
push 0x104
lea edx, [ebp - 0x2e0]
push edx
push 3
lea eax, [ebp - 0xd8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov word [ebp - 0x2dc], 0x5c
mov word [ebp - 0x2da], 0
mov dword [ebp - 0x2e4], 0x10000
mov dword [ebp - 0x94], 0xc
lea ecx, [ebp - 0x2e0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x2ec], eax
push 0x400
lea edx, [ebp - 0xaf0]
push edx
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0xafc]
push ecx
lea edx, [ebp - 0xaf8]
push edx
push 0x400
lea eax, [ebp - 0x1300]
push eax
lea ecx, [ebp - 0x2e0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov dword [0x5da75c], 0
push 0x4fbe98
mov edx, dword [ebp - 0x2e4]
push edx
push 0
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x94]
push edx
lea eax, [ebp - 0x2e0]
push eax
call dword [0x5db764]
cmp dword [0x5da75c], 0
jne 0x4fc197
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4fc184
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2f0], eax
mov ecx, dword [ebp - 0x98]
push ecx
call fcn.004fbf4f
add esp, 4
push 0x400
lea edx, [ebp - 0xaf0]
push edx
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0xafc]
push ecx
lea edx, [ebp - 0xaf8]
push edx
push 0x400
lea eax, [ebp - 0x1300]
push eax
lea ecx, [ebp - 0x2e0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea edx, [ebp - 0xaf0]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xb00], eax
mov eax, dword [ebp - 0xb00]
add eax, 1
push eax
push 1
call fcn.0054d6ae
add esp, 8
mov dword [ebp - 0xaf4], eax
push 0
push 0
mov ecx, dword [ebp - 0xb00]
push ecx
mov edx, dword [ebp - 0xaf4]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0xaf0]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x5b1224
mov ecx, dword [ebp - 0xaf4]
push ecx
call fcn.0054d7f0
add esp, 8
test eax, eax
je 0x4fc2a3
mov edx, dword [ebp - 0xaf4]
push edx
call fcn.0054c543
add esp, 4
mov eax, dword [ebp + 8]
push eax
call fcn.0050d447
add esp, 4
mov dword [ebp - 0x1308], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00560ea1
mov eax, dword [ebp - 0x1308]
jmp 0x4fc2e0
mov ecx, dword [ebp - 0xaf4]
push ecx
call fcn.0054c543
add esp, 4
mov edx, dword [ebp + 8]
push edx
call fcn.0050d447
add esp, 4
mov dword [ebp - 0x130c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.00560ea1
mov eax, dword [ebp - 0x130c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret