Function at 0x4e78cc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x4e78d5
push ecx
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 0x4e7c2f
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4e7be4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4e7938
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x3a0]
call fcn.004a6474
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0xc]
call fcn.0041126c
jmp 0x4e7943
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004068c8
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004e6074
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.004068c8
cmp dword [ebp - 4], 0
je 0x4e7989
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
call fcn.004d8e88
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00412420
mov edx, dword [ebp - 0x28]
xor ecx, ecx
mov eax, ebx
call fcn.004ea740
jmp 0x4e79cc
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.004e9dfc
mov edx, dword [ebp - 0x30]
xor ecx, ecx
mov eax, ebx
call fcn.004ea740
cmp dword [ebp - 0x14], 0
jne 0x4e79cc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
call fcn.004d8e88
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00412420
mov edx, dword [ebp - 0x34]
xor ecx, ecx
mov eax, ebx
call fcn.004ea740
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
call fcn.00412420
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00417e28
mov eax, dword [ebp - 0x3c]
call fcn.00406900
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 3
je 0x4e7aa5
mov eax, dword [ebp - 0xc]
call fcn.004d778c
push edx
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.004ea5a8
mov edx, dword [ebp - 0x4c]
mov cl, 1
mov eax, ebx
call fcn.004ea3fc
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.00417e28
mov eax, dword [ebp - 0x44]
push eax
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0xc]
call fcn.004125f8
mov ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x10]
pop edx
call fcn.00406d58
mov eax, dword [ebp - 0xc]
call fcn.004d778c
push edx
push eax
mov eax, dword [ebp - 0x10]
call fcn.004d778c
cmp edx, dword [esp + 4]
jne 0x4e7a61
cmp eax, dword [esp]
sete al
add esp, 8
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x4e7a87
push 1
mov eax, ebx
call fcn.004aefa0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004d8774
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x4e7a9a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e7bf2
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.004068c8
lea eax, [ebp - 0x54]
push eax
mov cl, 1
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004e6074
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0xc]
call fcn.004068c8
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004e19cc
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x4e7ae5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e7bf2
mov dl, 1
mov eax, dword [0x427864]
call fcn.004331e0
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4e7bd3
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebx + 0x3c8]
mov edx, dword [eax]
call dword [edx + 0xec]
push eax
lea ecx, [ebp - 0x64]
mov edx, dword [ebp - 0x14]
mov eax, ebx
call fcn.004ea5a8
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x68]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004e6074
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x5c], eax
lea edx, [ebp - 0x60]
mov ecx, 1
mov eax, ebx
call fcn.004e5ca8
xor al, 1
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x6c]
xor edx, edx
mov eax, ebx
call fcn.004e9c78
lea eax, [ebp - 0x6c]
mov edx, 0x4e7c50
call fcn.00406c98
mov edx, dword [ebp - 0x6c]
movzx ecx, byte [ebx + 0x6cc]
mov eax, ebx
call fcn.004e928c
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea ecx, [ebp - 0x70]
xor edx, edx
mov eax, ebx
call fcn.004e9c78
lea eax, [ebp - 0x70]
mov edx, 0x4e7c70
call fcn.00406c98
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x7c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7bda
mov eax, dword [ebp - 0x1c]
call fcn.00404da0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7c36
lea eax, [ebp - 0x70]
mov edx, 4
call fcn.0040686c
lea eax, [ebp - 0x58]
mov edx, 0xe
call fcn.0040686c
lea eax, [ebp - 0x20]
call fcn.00406864
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.0040686c
ret