Function at 0x4d9e3f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57547e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1300
call fcn.0054c740
push edi
mov ax, word [0x6857a8]
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 [0x5c73ec]
mov dword [ebp - 0x4c], ecx
mov edx, dword [0x5c73f0]
mov dword [ebp - 0x48], edx
mov ax, word [0x5c73f4]
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.00401420
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x67c4], 6
push 0x5c73f8
mov edx, dword [ebp + 8]
add edx, 0x5ea4
push edx
call fcn.0054c6e3
add esp, 8
cmp dword [0x5ea000], 0
jle 0x4d9f3e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x7188], 0
je 0x4d9f3e
mov ecx, dword [0x5ea000]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x59dc]
push eax
push 6
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x7188]
call fcn.00417fc6
mov edx, dword [ebp + 8]
add edx, 0x5ea4
push edx
mov eax, dword [0x5ea000]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x59dc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x7188]
call fcn.0041805c
push 0x20
push 0
lea ecx, [ebp - 0x8c]
push ecx
call fcn.0054bf90
add esp, 0xc
push 0x20
lea edx, [ebp - 0x8c]
push edx
mov eax, dword [ebp + 8]
add eax, 0x503f
push eax
call fcn.0054ce70
add esp, 4
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x503f
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call fcn.004d9d5f
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jne 0x4d9fbb
mov dword [ebp - 0x1304], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.0056206c
mov eax, dword [ebp - 0x1304]
jmp 0x4da20c
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 0x5938]
push eax
push 0x5c7400
lea ecx, [ebp - 0xd8]
push ecx
call fcn.0054c6e3
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]
push 0x4d9e05
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 [0x6857a0]
cmp dword [0x68129c], 0
jne 0x4da0ac
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4da099
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2f0], eax
xor ecx, ecx
test ecx, ecx
je 0x4da0cd
push 1
lea edx, [ebp - 0x2e0]
push edx
call dword [0x68579c]
mov eax, dword [ebp - 0x98]
push eax
call fcn.004d9ddc
add esp, 4
push 0x400
lea ecx, [ebp - 0xaf0]
push ecx
lea edx, [ebp - 0x2e8]
push edx
lea eax, [ebp - 0xafc]
push eax
lea ecx, [ebp - 0xaf8]
push ecx
push 0x400
lea edx, [ebp - 0x1300]
push edx
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0xaf0]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0xb00], eax
mov edx, dword [ebp - 0xb00]
add edx, 1
push edx
push 1
call fcn.0054e4ad
add esp, 8
mov dword [ebp - 0xaf4], eax
push 0
push 0
mov eax, dword [ebp - 0xb00]
push eax
mov ecx, dword [ebp - 0xaf4]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0xaf0]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x5c7408
mov eax, dword [ebp - 0xaf4]
push eax
call fcn.0054cf00
add esp, 8
test eax, eax
je 0x4da1c1
mov ecx, dword [ebp - 0xaf4]
push ecx
call fcn.0054ccb2
add esp, 4
mov dword [ebp - 0x1308], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.0056206c
mov eax, dword [ebp - 0x1308]
jmp 0x4da20c
mov edx, dword [ebp - 0xaf4]
push edx
call fcn.0054ccb2
add esp, 4
xor eax, eax
test eax, eax
je 0x4da1ea
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x2e0]
push edx
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
mov dword [ebp - 0x130c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.0056206c
mov eax, dword [ebp - 0x130c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret