Function at 0x460490
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4f61f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
mov al, byte [esp + 3]
push ebx
xor ebx, ebx
push esi
push ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], al
call fcn.00403b70
mov cl, byte [esp + 0xb]
push ebx
mov byte [esp + 0x10], cl
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x38], bl
call fcn.00403b70
mov eax, dword [0x4fdbfc]
mov byte [esp + 0x140], 1
cmp eax, 1
jne 0x460501
call fcn.004d1833
push 1
push 1
lea ecx, [esp + 0x14]
call fcn.00403be0
test al, al
je 0x46052d
movsx edx, byte [esp + 0x14c]
mov eax, dword [esp + 0x10]
mov dh, dl
push 1
lea ecx, [esp + 0x10]
mov byte [eax], dl
call fcn.00403bc0
push ebp
push edi
mov edi, 0x52b1cc
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4fdbfc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp edx, esi
ja 0x460555
call fcn.004d1833
cmp esi, ebx
jbe 0x460599
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x18]
lea ebp, [eax + esi]
push ebp
call fcn.00403be0
test al, al
je 0x460599
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, esi
mov esi, 0x52b1cc
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00403bc0
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4605a6
mov eax, 0x4fdc00
push ebx
lea ecx, [esp + 0x3c]
push ebx
lea edx, [esp + 0x3c]
push ecx
push edx
push ebx
lea ecx, [esp + 0x50]
push 0x104
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
test eax, eax
je 0x4605f0
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.00403be0
test al, al
je 0x460635
mov ecx, ebp
lea esi, [esp + 0x3c]
jmp 0x460618
mov edi, 0x536ec0
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x28]
push ebp
call fcn.00403be0
test al, al
je 0x460635
mov ecx, ebp
mov esi, 0x536ec0
mov edi, dword [esp + 0x28]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov byte [eax + ebp], bl
mov esi, dword [esp + 0x150]
mov cl, byte [esp + 0x24]
push ebx
mov byte [esi], cl
mov ecx, esi
call fcn.00403b70
mov edx, dword [0x4fdbfc]
lea eax, [esp + 0x24]
push edx
push ebx
push eax
mov ecx, esi
call fcn.004051a0
mov ecx, dword [esp + 0x18]
pop edi
cmp ecx, ebx
pop ebp
je 0x460684
mov al, byte [ecx - 1]
cmp al, bl
je 0x46067a
cmp al, 0xff
je 0x46067a
dec al
mov byte [ecx - 1], al
jmp 0x460684
dec ecx
push ecx
call fcn.004dae3e
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
cmp ecx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
je 0x4606b4
mov al, byte [ecx - 1]
cmp al, bl
je 0x4606aa
cmp al, 0xff
je 0x4606aa
dec al
mov byte [ecx - 1], al
jmp 0x4606b4
dec ecx
push ecx
call fcn.004dae3e
add esp, 4
mov ecx, dword [esp + 0x138]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret