Function at 0x4a4780
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x52e0d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e4
push ebx
push ebp
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
lea ecx, [esp + 0x14]
mov dword [edi + 0x3c], eax
xor ebp, ebp
mov esi, 1
call fcn.0050c47e
mov eax, dword [0x66f704]
mov dword [esp + 0x2fc], ebp
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 0x1c]
mov ebx, dword [0x671be8]
push ebp
push ebp
push 0x146
push ecx
mov byte [esp + 0x30c], 1
call ebx
test eax, eax
jle 0x4a4802
lea edx, [esp + 0x10]
mov ecx, edi
push edx
call fcn.004a5010
mov eax, dword [edi + 0x1c]
push ebp
push ebp
push 0x14b
push eax
call ebx
push 0x4011
lea ecx, [esp + 0x44]
push 0x2b4
push ecx
push 0
push 0x64029c
mov dword [esp + 0x30], 0x27
mov dword [esp + 0x34], 0xffffffff
call dword [0x671b14]
push eax
lea ecx, [esp + 0x18]
call fcn.0050c56b
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [edi + 0x1c]
push eax
push 0
push 0x402
push edx
call ebx
push eax
call fcn.0050c510
lea ecx, [esp + 0x14]
call fcn.0050c4d0
mov ecx, dword [edi + 0x3c]
mov eax, 0x1a
test esi, ecx
je 0x4a4870
inc ebp
shl esi, 1
dec eax
jne 0x4a486b
lea eax, [ebp*8 + 2]
push eax
call fcn.00422c40
add esp, 4
mov esi, eax
lea ecx, [ebp*4 + 1]
mov dword [edi + 0x44], eax
push esi
push ecx
call dword [0x671a64]
mov ax, word [esi]
test ax, ax
je 0x4a49de
mov ebp, dword [esp + 0x304]
mov ebx, dword [0x671a4c]
cmp ax, 0x5a
jbe 0x4a48be
add eax, 0xffffffe0
mov word [esi], ax
push 0x4211
lea edx, [esp + 0x44]
push 0x2b4
push edx
push 0x10
push esi
call dword [0x671b14]
lea eax, [esp + 0x4c]
push esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
call ebx
cmp ebp, 2
jne 0x4a4920
cmp eax, 5
jne 0x4a49c8
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x4a4995
mov cx, word [esi]
push ecx
call fcn.004d3330
add esp, 4
test eax, eax
je 0x4a49c8
jmp 0x4a4995
cmp ebp, 3
jne 0x4a4946
mov ax, word [esi]
cmp ax, 0x41
je 0x4a4995
cmp ax, 0x61
je 0x4a4995
cmp ax, 0x42
je 0x4a4995
cmp ax, 0x62
jne 0x4a49c8
jmp 0x4a4995
cmp ebp, 4
jne 0x4a495d
mov dx, word [esi]
push edx
call fcn.0045b090
add esp, 4
test eax, eax
je 0x4a49c8
jmp 0x4a4995
cmp ebp, 6
jne 0x4a4976
mov ax, word [esi]
push 0
push eax
call fcn.004a45e0
add esp, 8
test eax, eax
je 0x4a49c8
jmp 0x4a4995
cmp ebp, 7
jne 0x4a4990
mov cx, word [esi]
push 0
push eax
push ecx
call fcn.004a46d0
add esp, 0xc
test eax, eax
je 0x4a49c8
jmp 0x4a4995
cmp ebp, 5
je 0x4a49c8
lea edx, [esp + 0x1c]
mov ecx, edi
push edx
call fcn.0050c5e0
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.004f5afd
add esp, 8
test eax, eax
jne 0x4a49c8
mov ecx, dword [edi + 0x1c]
push eax
push eax
push 0x146
push ecx
call dword [0x671be8]
dec eax
mov dword [edi + 0x40], eax
mov ax, word [esi + 8]
add esi, 8
test ax, ax
jne 0x4a48b2
mov ebx, dword [0x671be8]
mov eax, dword [edi + 0x40]
test eax, eax
jl 0x4a49f3
mov edx, dword [edi + 0x1c]
push 0
push eax
push 0x14e
push edx
call ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x2fc], 0
call fcn.0050dfa8
lea ecx, [esp + 0x14]
mov dword [esp + 0x2fc], 0xffffffff
call fcn.0050c4a7
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2f0
ret 4