Function at 0x4a8b50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c8850
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4ff0f4]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x4ff0f4]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, dword [ecx + 0x20]
lea ebx, [ecx + 0x10]
mov dword [esp + 0x1c], ebx
cmp dword [ebx + 0xc], esi
jbe 0x4a8b9b
call fcn.004aa693
mov edi, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
cmp edi, dword [ebx + 0x10]
jbe 0x4a8bae
call fcn.004aa693
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx]
push esi
push ecx
push edi
push eax
lea edx, [esp + 0x24]
push edx
mov ecx, ebx
call fcn.004a7f10
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor edi, edi
push edi
push edi
call ebx
mov esi, eax
cmp esi, edi
je 0x4a8e0a
push edi
lea ecx, [esi + 1]
xor eax, eax
push ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], edi
mov word [esp + 0x48], ax
call fcn.00419c10
mov dword [esp + 0x68], edi
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x4a8c0e
lea eax, [esp + 0x40]
push eax
push esi
call ebx
test eax, eax
je 0x4a8ddb
push 0x4dd84c
lea ecx, [esp + 0x14]
call fcn.00405480
mov byte [esp + 0x68], 1
cmp dword [esp + 0x54], 8
mov ebx, dword [esp + 0x40]
jae 0x4a8c3c
lea ebx, [esp + 0x40]
cmp word [ebx], di
je 0x4a8dcd
push edi
xor edx, edx
push 0x105
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], dx
call fcn.00419c10
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 0xc]
movzx edi, word [ebx]
test esi, esi
jle 0x4a8e28
cmp dword [eax - 4], 1
jle 0x4a8c94
mov eax, esi
push eax
lea ecx, [esp + 0x14]
call fcn.0040b520
mov eax, dword [esp + 0x10]
mov word [eax], di
test esi, esi
jl 0x4a8e28
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x4a8e28
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov word [edx + esi*2], cx
mov eax, dword [esp + 0x24]
mov edi, 8
cmp dword [esp + 0x38], edi
jae 0x4a8ccc
lea eax, [esp + 0x24]
push 0x104
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4a8d74
lea ecx, [esp + 0x14]
call fcn.004a7970
mov byte [esp + 0x68], 3
mov eax, ebx
lea edx, [eax + 2]
jmp 0x4a8d00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a8d00
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x20]
call fcn.00408cb0
cmp dword [esp + 0x38], edi
jb 0x4a8d2c
mov eax, dword [esp + 0x24]
mov edx, eax
test eax, eax
jne 0x4a8d30
jmp 0x4a8d44
lea edx, [esp + 0x24]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a8d35
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00408cb0
lea ecx, [esp + 0x14]
call fcn.004055e0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004a8ad0
mov byte [esp + 0x68], 2
lea ecx, [esp + 0x14]
call fcn.004a77d0
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a8d80
sub eax, edx
sar eax, 1
lea ebx, [ebx + eax*2 + 2]
mov byte [esp + 0x68], 1
cmp dword [esp + 0x38], edi
jb 0x4a8dab
mov edx, dword [esp + 0x24]
push edx
call fcn.004a9c11
add esp, 4
xor eax, eax
xor edi, edi
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
cmp word [ebx], di
jne 0x4a8c45
mov byte [esp + 0x68], 0
lea ecx, [esp + 0x10]
call fcn.00404f30
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x54], 8
jb 0x4a8df7
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004a9c11
add esp, 4
xor edx, edx
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], edi
mov word [esp + 0x40], dx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.004a9c1c
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401000
int3