Function at 0x45fec0
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cebfd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [str..A:]
mov dl, byte [0x4e9db6]
push ebx
push esi
mov esi, ecx
push edi
mov cx, word [0x4e9db4]
mov dword [ebp - 0xf8], eax
mov word [ebp - 0xf4], cx
mov ecx, 0xe
xor eax, eax
lea edi, [ebp - 0xf1]
mov byte [ebp - 0xf2], dl
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [0x4e9dac]
mov ecx, 0xf
mov dword [ebp - 0xb0], eax
xor eax, eax
lea edi, [ebp - 0xac]
mov dword [ebp - 0x1c], esi
rep stosd dword es:[edi], eax
mov ecx, esi
call fcn.00460900
lea ecx, [esi + 4]
push 0xa
push ecx
mov ecx, esi
call fcn.00460630
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x34], eax
cmp eax, 0x1a
jge 0x46036e
test byte [ebp - 0x2c], 1
je 0x460275
lea esi, [eax + 0x41]
lea edx, [ebp - 0xb0]
push esi
push str._c:_
push edx
call fcn.00467d68
add esp, 0xc
lea eax, [ebp - 0xf8]
push esi
push str.._c:
push eax
call fcn.00467d68
add esp, 0xc
mov esi, 0x4e9dac
lea eax, [ebp - 0xb0]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x45ffce
test cl, cl
je 0x45ffca
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x45ffce
add eax, 2
add esi, 2
test cl, cl
jne 0x45ffaa
xor eax, eax
jmp 0x45ffd3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x460275
mov esi, 0x4e9da8
lea eax, [ebp - 0xb0]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x46000a
test cl, cl
je 0x460006
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x46000a
add eax, 2
add esi, 2
test cl, cl
jne 0x45ffe6
xor eax, eax
jmp 0x46000f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x460275
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x460032
cmp eax, 3
jne 0x460275
lea ecx, [ebp - 0xf8]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.00460580
cmp eax, 7
jne 0x460275
push ebx
push 0x80
push 3
push ebx
push 3
lea edx, [ebp - 0xf8]
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x28], edi
je 0x460275
lea eax, [ebp - 0x38]
push ebx
push eax
lea ecx, [ebp - 0x50]
push 0xc
push ecx
push ebx
push ebx
push 0x2d1080
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x46026e
cmp dword [ebp - 0x38], 0xc
jne 0x46026e
mov edx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x3c]
push eax
lea ecx, [esi + 0x8d4]
push edx
call fcn.00460f70
mov eax, dword [esi + 0x8d8]
mov esi, dword [ebp - 0x3c]
cmp eax, esi
jne 0x46028c
push 0x74
call fcn.00467824
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x460159
mov al, byte [ebp - 0x11]
lea ecx, [esi + 4]
push ebx
mov byte [ecx], al
call fcn.00403b70
mov dl, byte [ebp - 0x11]
lea ecx, [esi + 0x14]
push ebx
mov byte [ebp - 4], 2
mov byte [ecx], dl
call fcn.00403b70
lea eax, [ebp - 0x11]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.00416b70
lea ecx, [ebp - 0x2e]
mov byte [ebp - 4], 4
push ecx
lea ecx, [esi + 0x34]
call fcn.00416b70
lea edx, [ebp - 0x21]
lea ecx, [esi + 0x44]
push edx
mov byte [ebp - 4], 5
call fcn.00416b70
lea eax, [ebp - 0x2d]
lea ecx, [esi + 0x54]
push eax
mov byte [ebp - 4], 6
call fcn.00416b70
lea ecx, [ebp - 0x2f]
mov byte [ebp - 4], 7
push ecx
lea ecx, [esi + 0x64]
call fcn.00416b70
mov dword [ebp - 0x18], esi
jmp 0x46015e
mov dword [ebp - 0x18], ebx
mov esi, ebx
cmp esi, ebx
mov byte [ebp - 4], 0
je 0x46026e
lea edi, [ebp - 0xb0]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esi + 0x64]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov edi, ecx
mov ecx, ebx
push edi
mov dword [ebp - 0x20], edi
call fcn.00404fd0
test al, al
je 0x4601b8
mov eax, dword [ebx + 4]
mov ecx, edi
mov edx, ecx
lea esi, [ebp - 0xb0]
mov edi, eax
mov eax, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00404fb0
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x138]
push ecx
push str.PHYSICALDRIVE_d
push edx
call fcn.00467d68
lea edi, [ebp - 0x138]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [esi + 4]
mov esi, ecx
push 1
push esi
mov ecx, ebx
mov dword [ebp - 0x20], esi
call fcn.00404fd0
test al, al
je 0x460219
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
lea esi, [ebp - 0x138]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
push ecx
mov ecx, ebx
call fcn.00404fb0
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
push esi
mov ecx, edi
call fcn.0045fb90
cmp eax, 7
je 0x46024a
mov ecx, esi
call fcn.004566a0
push esi
call fcn.00463c78
mov edx, dword [ebp - 0x28]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x460275
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
lea edx, [ebp - 0xb8]
push ecx
push edx
lea ecx, [edi + 0x8d4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], esi
call fcn.00460d30
mov edi, dword [ebp - 0x28]
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
inc eax
shr ecx, 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ecx
jmp 0x45ff5f
mov eax, dword [esi + 0x10]
push 0x4e88b4
add eax, 0x64
lea ecx, [ebp - 0x70]
push eax
push ecx
call fcn.004618c0
add esp, 0xc
lea edx, [ebp - 0xb0]
mov byte [ebp - 4], 8
push edx
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004618c0
add esp, 0xc
mov edx, dword [0x4d174c]
mov ecx, dword [esi + 0x10]
push edx
push ebx
add ecx, 0x64
push eax
mov byte [ebp - 4], 9
call fcn.004040a0
mov eax, dword [ebp - 0x5c]
cmp eax, ebx
je 0x4602f8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4602ef
cmp al, 0xff
je 0x4602ef
dec al
mov byte [ecx], al
jmp 0x4602f8
push ecx
call fcn.00463c78
add esp, 4
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x5c], ebx
cmp eax, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov byte [ebp - 4], 0
je 0x460335
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x46032c
cmp al, 0xff
je 0x46032c
dec al
mov byte [ecx], al
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
jmp 0x46026e
push ecx
call fcn.00463c78
add esp, 4
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
jmp 0x46026e
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00460a00
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret