Function at 0x4a8690
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c82a0
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 0x4a86db
call fcn.004aa1a6
mov edi, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
cmp edi, dword [ebx + 0x10]
jbe 0x4a86ee
call fcn.004aa1a6
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.004a7ac0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor edi, edi
push edi
push edi
call ebx
mov esi, eax
cmp esi, edi
je 0x4a894a
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.00419770
mov dword [esp + 0x68], edi
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x4a874e
lea eax, [esp + 0x40]
push eax
push esi
call ebx
test eax, eax
je 0x4a891b
push 0x4dd84c
lea ecx, [esp + 0x14]
call fcn.00405900
mov byte [esp + 0x68], 1
cmp dword [esp + 0x54], 8
mov ebx, dword [esp + 0x40]
jae 0x4a877c
lea ebx, [esp + 0x40]
cmp word [ebx], di
je 0x4a890d
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.00419770
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 0xc]
movzx edi, word [ebx]
test esi, esi
jle 0x4a8968
cmp dword [eax - 4], 1
jle 0x4a87d4
mov eax, esi
push eax
lea ecx, [esp + 0x14]
call fcn.0040c2b0
mov eax, dword [esp + 0x10]
mov word [eax], di
test esi, esi
jl 0x4a8968
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x4a8968
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 0x4a880c
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 0x4a88b4
lea ecx, [esp + 0x14]
call fcn.004a7580
mov byte [esp + 0x68], 3
mov eax, ebx
lea edx, [eax + 2]
jmp 0x4a8840
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a8840
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x20]
call fcn.004094e0
cmp dword [esp + 0x38], edi
jb 0x4a886c
mov eax, dword [esp + 0x24]
mov edx, eax
test eax, eax
jne 0x4a8870
jmp 0x4a8884
lea edx, [esp + 0x24]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a8875
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.004094e0
lea ecx, [esp + 0x14]
call fcn.00405a60
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004a8610
mov byte [esp + 0x68], 2
lea ecx, [esp + 0x14]
call fcn.004a7450
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a88c0
sub eax, edx
sar eax, 1
lea ebx, [ebx + eax*2 + 2]
mov byte [esp + 0x68], 1
cmp dword [esp + 0x38], edi
jb 0x4a88eb
mov edx, dword [esp + 0x24]
push edx
call fcn.004a9741
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 0x4a8785
mov byte [esp + 0x68], 0
lea ecx, [esp + 0x10]
call fcn.00405410
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x54], 8
jb 0x4a8937
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004a9741
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.004a974c
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401000
int3