Function at 0x4a9590
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c9250
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5000f4]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x5000f4]
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 0x4a95db
call fcn.004ab09b
mov edi, dword [ebx + 0xc]
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
cmp edi, dword [ebx + 0x10]
jbe 0x4a95ee
call fcn.004ab09b
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.004a8950
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor edi, edi
push edi
push edi
call ebx
mov esi, eax
cmp esi, edi
je 0x4a984a
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.00419fd0
mov dword [esp + 0x68], edi
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x4a964e
lea eax, [esp + 0x40]
push eax
push esi
call ebx
test eax, eax
je 0x4a981b
push 0x4de84c
lea ecx, [esp + 0x14]
call fcn.004054b0
mov byte [esp + 0x68], 1
cmp dword [esp + 0x54], 8
mov ebx, dword [esp + 0x40]
jae 0x4a967c
lea ebx, [esp + 0x40]
cmp word [ebx], di
je 0x4a980d
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.00419fd0
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 0xc]
movzx edi, word [ebx]
test esi, esi
jle 0x4a9868
cmp dword [eax - 4], 1
jle 0x4a96d4
mov eax, esi
push eax
lea ecx, [esp + 0x14]
call fcn.0040b700
mov eax, dword [esp + 0x10]
mov word [eax], di
test esi, esi
jl 0x4a9868
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x4a9868
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 0x4a970c
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 0x4a97b4
lea ecx, [esp + 0x14]
call fcn.004a83b0
mov byte [esp + 0x68], 3
mov eax, ebx
lea edx, [eax + 2]
jmp 0x4a9740
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a9740
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x20]
call fcn.00408e90
cmp dword [esp + 0x38], edi
jb 0x4a976c
mov eax, dword [esp + 0x24]
mov edx, eax
test eax, eax
jne 0x4a9770
jmp 0x4a9784
lea edx, [esp + 0x24]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a9775
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00408e90
lea ecx, [esp + 0x14]
call fcn.00405610
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.004a9510
mov byte [esp + 0x68], 2
lea ecx, [esp + 0x14]
call fcn.004a8210
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a97c0
sub eax, edx
sar eax, 1
lea ebx, [ebx + eax*2 + 2]
mov byte [esp + 0x68], 1
cmp dword [esp + 0x38], edi
jb 0x4a97eb
mov edx, dword [esp + 0x24]
push edx
call fcn.0045a597
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 0x4a9685
mov byte [esp + 0x68], 0
lea ecx, [esp + 0x10]
call fcn.00405020
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x54], 8
jb 0x4a9837
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0045a597
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.004aa641
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401000
int3