Function at 0x461c30
Capabilities:
Get disk information
Get storage device properties

Disassembly:
sub esp, 0xe60
push ebx
push esi
push edi
mov ecx, 0x1f3
xor eax, eax
lea edi, [esp + 0x29d]
mov byte [esp + 0x29c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [esp + 0xe84]
test al, al
je 0x461ccd
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3d]
mov byte [esp + 0x3c], 0
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
lea eax, [esp + 0x40]
push 0x104
push eax
call fcn.004617b0
add esp, 0xc
test eax, eax
setne al
test al, al
jne 0x461c9d
push 0x64
call esi
jmp 0x461c7a
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x29c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0xe78]
push ebp
test al, al
je 0x461dd8
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0x18], eax
push 1
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], eax
call fcn.00461af0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x50]
push str._X_X
push ecx
call fcn.0046d1bd
lea edx, [esp + 0x28]
push 3
push edx
call fcn.00461af0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
add esp, 0x20
cmp eax, ebx
jne 0x461d4a
cmp ecx, ebx
je 0x461d63
push ecx
push eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x48]
push eax
push str._s_X_X
push ecx
call fcn.0046d1bd
add esp, 0x14
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xd
jb 0x461da6
lea edi, [esp + 0x45]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2a0]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x461dda
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2a0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x461dda
xor ebx, ebx
mov al, byte [esp + 0xe80]
test al, al
je 0x461e6c
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19d]
mov byte [esp + 0x19c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x40]
push 0x104
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
lea ecx, [esp + 0x1b0]
push 0x104
push ecx
push 0x49073c
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2a0]
push edx
push eax
lea ecx, [esp + 0x2a8]
push str._s_X
push ecx
call fcn.0046d1bd
add esp, 0x10
mov al, byte [esp + 0xe84]
test al, al
je 0x461fa9
mov eax, dword [0x490724]
mov ecx, dword [0x490728]
mov edx, dword [str..PhysicalDrive0]
mov dword [esp + 0x2c], eax
mov ax, word [0x490730]
mov dword [esp + 0x30], ecx
mov cl, byte [0x490732]
mov dword [esp + 0x28], edx
mov edx, dword [0x49072c]
mov word [esp + 0x38], ax
mov byte [esp + 0x3a], cl
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x10], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ecx
push 0
push 0
push 3
push 0
push 3
lea edx, [esp + 0x3c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x461fa9
lea eax, [esp + 0x24]
push 0
push eax
push 0x1000
push 0x4a57d8
lea ecx, [esp + 0x20]
push 0xc
push ecx
push 0x2d1400
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x461fa9
mov ebx, dword [0x4a57f0]
test ebx, ebx
jbe 0x461f8d
lea esi, [ebx + 0x4a57d8]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x461f5a
cmp byte [edx + esi], 0x20
jne 0x461f5a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x461f43
lea edi, [edx + ebx + 0x4a57d8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2a0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
mov cl, byte [esp + eax + 0x27]
lea eax, [esp + eax + 0x27]
inc cl
mov byte [eax], cl
jmp 0x461ed5
mov bl, byte [esp + 0xe8c]
pop ebp
test bl, bl
je 0x461fee
lea ecx, [esp + 0xa6c]
push ecx
call fcn.00461b60
add esp, 4
test al, al
je 0x461fee
lea edx, [esp + 0xa6c]
lea eax, [esp + 0x29c]
push edx
push eax
lea ecx, [esp + 0x2a4]
push str._s_s
push ecx
call fcn.0046d1bd
add esp, 0x10
mov al, byte [esp + 0xe78]
test al, al
jne 0x46205f
mov al, byte [esp + 0xe84]
test al, al
jne 0x46205f
mov al, byte [esp + 0xe7c]
test al, al
jne 0x46205f
mov al, byte [esp + 0xe80]
test al, al
jne 0x46205f
test bl, bl
jne 0x46205f
xor edx, edx
lea eax, [esp + 0xc]
mov dword [esp + 0x10], edx
push 1
mov dword [esp + 0x18], edx
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], edx
call fcn.00461af0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x2ac]
push str._08X_08X
push eax
call fcn.0046d1bd
add esp, 0x18
mov al, byte [0x4a68f8]
test al, al
jne 0x46206f
mov byte [0x49068c], 0
mov ebx, dword [esp + 0xe70]
test ebx, ebx
je 0x4620f9
lea ecx, [esp + 0x140]
push ecx
call fcn.00465280
lea edi, [esp + 0x2a0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2a0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x144]
push ecx
push edx
push eax
call fcn.004652b0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x150]
push ecx
push edx
call fcn.00465370
add esp, 0x18
mov edi, ebx
mov ebx, dword [esp + 0xe74]
xor esi, esi
cmp esi, ebx
jae 0x4620e9
mov al, byte [esp + esi + 0xc]
push edi
push eax
call fcn.00461ab0
add esp, 8
inc esi
add edi, 2
cmp esi, 0x10
jb 0x4620ce
mov al, byte [0x4a68f8]
test al, al
jne 0x4620f9
mov byte [0x49068d], 6
pop edi
pop esi
pop ebx
add esp, 0xe60
ret