Function at 0x462210
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 0x4622ad
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.00461d90
add esp, 0xc
test eax, eax
setne al
test al, al
jne 0x46227d
push 0x64
call esi
jmp 0x46225a
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 0x4623b8
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.004620d0
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.00469331
lea edx, [esp + 0x28]
push 3
push edx
call fcn.004620d0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
add esp, 0x20
cmp eax, ebx
jne 0x46232a
cmp ecx, ebx
je 0x462343
push ecx
push eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x48]
push eax
push str._s_X_X
push ecx
call fcn.00469331
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 0x462386
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 0x4623ba
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 0x4623ba
xor ebx, ebx
mov al, byte [esp + 0xe80]
test al, al
je 0x46244c
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 0x50d6b8
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.00469331
add esp, 0x10
mov al, byte [esp + 0xe84]
test al, al
je 0x462589
mov eax, dword [0x50d6a0]
mov ecx, dword [0x50d6a4]
mov edx, dword [str..PhysicalDrive0]
mov dword [esp + 0x2c], eax
mov ax, word [0x50d6ac]
mov dword [esp + 0x30], ecx
mov cl, byte [0x50d6ae]
mov dword [esp + 0x28], edx
mov edx, dword [0x50d6a8]
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 0x462589
lea eax, [esp + 0x24]
push 0
push eax
push 0x1000
push 0x51e788
lea ecx, [esp + 0x20]
push 0xc
push ecx
push 0x2d1400
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x462589
mov ebx, dword [0x51e7a0]
test ebx, ebx
jbe 0x46256d
lea esi, [ebx + 0x51e788]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x46253a
cmp byte [edx + esi], 0x20
jne 0x46253a
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 0x462523
lea edi, [edx + ebx + 0x51e788]
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 0x4624b5
mov bl, byte [esp + 0xe8c]
pop ebp
test bl, bl
je 0x4625ce
lea ecx, [esp + 0xa6c]
push ecx
call fcn.00462140
add esp, 4
test al, al
je 0x4625ce
lea edx, [esp + 0xa6c]
lea eax, [esp + 0x29c]
push edx
push eax
lea ecx, [esp + 0x2a4]
push str._s_s
push ecx
call fcn.00469331
add esp, 0x10
mov al, byte [esp + 0xe78]
test al, al
jne 0x46263f
mov al, byte [esp + 0xe84]
test al, al
jne 0x46263f
mov al, byte [esp + 0xe7c]
test al, al
jne 0x46263f
mov al, byte [esp + 0xe80]
test al, al
jne 0x46263f
test bl, bl
jne 0x46263f
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.004620d0
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.00469331
add esp, 0x18
mov al, byte [0x51f8a8]
test al, al
jne 0x46264f
mov byte [0x50d608], 0
mov ebx, dword [esp + 0xe70]
test ebx, ebx
je 0x4626d9
lea ecx, [esp + 0x140]
push ecx
call fcn.004636e0
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.00463710
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x150]
push ecx
push edx
call fcn.004637d0
add esp, 0x18
mov edi, ebx
mov ebx, dword [esp + 0xe74]
xor esi, esi
cmp esi, ebx
jae 0x4626c9
mov al, byte [esp + esi + 0xc]
push edi
push eax
call fcn.00462090
add esp, 8
inc esi
add edi, 2
cmp esi, 0x10
jb 0x4626ae
mov al, byte [0x51f8a8]
test al, al
jne 0x4626d9
mov byte [0x50d609], 6
pop edi
pop esi
pop ebx
add esp, 0xe60
ret