Function at 0x4e64c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x4e64c9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0040685c
mov eax, dword [ebp - 8]
call fcn.0040685c
xor eax, eax
push ebp
push 0x4e68c1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4e685c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4e652b
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x3a0]
call fcn.004a6474
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0xc]
call fcn.0041126c
jmp 0x4e6536
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004068c8
lea eax, [ebp - 0x28]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004e6074
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
call fcn.004068c8
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00412324
cmp dword [ebp - 0x10], 0
je 0x4e658b
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.00412420
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00417e28
mov eax, dword [ebp - 0x2c]
call fcn.00406900
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 3
je 0x4e658f
xor eax, eax
jmp 0x4e6591
mov al, 1
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
jne 0x4e65ce
push 0x40
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.004a6474
mov eax, dword [ebp - 0x34]
call fcn.00406900
push eax
push 0x4e68d4
mov eax, ebx
call fcn.004aefa0
push eax
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e686a
mov eax, dword [ebp - 0x10]
call fcn.00411f00
test al, al
jne 0x4e65e2
mov eax, dword [ebp - 0x10]
call fcn.004d9e0c
mov eax, dword [ebp - 0xc]
call fcn.004d7efc
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
jne 0x4e661f
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 0xc]
call fcn.00406900
push eax
call sub.kernel32.dll_CreateFileW
mov esi, eax
push esi
call sub.kernel32.dll_CloseHandle_1
cmp esi, 0xffffffff
setne byte [ebp - 0x19]
cmp byte [ebp - 0x19], 0
jne 0x4e6659
push 0x40
lea edx, [ebp - 0x38]
mov eax, ebx
call fcn.004a6474
mov eax, dword [ebp - 0x38]
call fcn.00406900
push eax
push 0x4e68fc
mov eax, ebx
call fcn.004aefa0
push eax
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e686a
cmp dword [ebp - 4], 0
je 0x4e6684
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
call fcn.004d8e88
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00412420
mov edx, dword [ebp - 0x3c]
xor ecx, ecx
mov eax, ebx
call fcn.004ea740
jmp 0x4e66c7
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x44]
mov eax, ebx
call fcn.004e9dfc
mov edx, dword [ebp - 0x44]
xor ecx, ecx
mov eax, ebx
call fcn.004ea740
cmp dword [ebp - 0x14], 0
jne 0x4e66c7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x4c]
call fcn.004d8e88
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00412420
mov edx, dword [ebp - 0x48]
xor ecx, ecx
mov eax, ebx
call fcn.004ea740
lea eax, [ebp - 0x50]
push eax
mov cl, 1
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004e6074
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0xc]
call fcn.004068c8
mov eax, dword [ebx + 0x3d0]
mov edx, dword [eax]
call dword [edx + 0xec]
sub eax, 1
jb 0x4e66ff
je 0x4e670b
dec eax
je 0x4e671a
dec eax
je 0x4e6729
jmp 0x4e6736
lea eax, [ebp - 0x18]
xor edx, edx
call fcn.004068c8
jmp 0x4e6736
lea eax, [ebp - 0x18]
mov edx, 0x4e6928
call fcn.004068c8
jmp 0x4e6736
lea eax, [ebp - 0x18]
mov edx, 0x4e6940
call fcn.004068c8
jmp 0x4e6736
lea eax, [ebp - 0x18]
mov edx, 0x4e6958
call fcn.004068c8
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004e19cc
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0
jne 0x4e675b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e686a
mov dl, 1
mov eax, dword [0x427864]
call fcn.004331e0
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x4e684b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 0x3c8]
mov edx, dword [eax]
call dword [edx + 0xec]
push eax
lea ecx, [ebp - 0x60]
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.004ea5a8
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x64]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004e6074
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x5c]
mov ecx, 1
mov eax, ebx
call fcn.004e5ca8
xor al, 1
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x68]
xor edx, edx
mov eax, ebx
call fcn.004e9c78
lea eax, [ebp - 0x68]
mov edx, 0x4e6970
call fcn.00406c98
mov edx, dword [ebp - 0x68]
movzx ecx, byte [ebx + 0x6cc]
mov eax, ebx
call fcn.004e928c
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea ecx, [ebp - 0x6c]
xor edx, edx
mov eax, ebx
call fcn.004e9c78
lea eax, [ebp - 0x6c]
mov edx, 0x4e6990
call fcn.00406c98
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x7c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6852
mov eax, dword [ebp - 0x20]
call fcn.00404da0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e68c8
lea eax, [ebp - 0x6c]
mov edx, 4
call fcn.0040686c
lea eax, [ebp - 0x54]
mov edx, 7
call fcn.0040686c
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0040686c
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040686c
lea eax, [ebp - 0x24]
call fcn.00406864
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.0040686c
ret