Function at 0x4765e0
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 0x47667d
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.004761b0
add esp, 0xc
test eax, eax
setne al
test al, al
jne 0x47664d
push 0x64
call esi
jmp 0x47662a
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 0x476788
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.004764f0
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.00497c24
lea edx, [esp + 0x28]
push 3
push edx
call fcn.004764f0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
add esp, 0x20
cmp eax, ebx
jne 0x4766fa
cmp ecx, ebx
je 0x476713
push ecx
push eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x48]
push eax
push str._s_X_X
push ecx
call fcn.00497c24
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 0x476756
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 0x47678a
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 0x47678a
xor ebx, ebx
mov al, byte [esp + 0xe80]
test al, al
je 0x47681c
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 0x523344
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.00497c24
add esp, 0x10
mov al, byte [esp + 0xe84]
test al, al
je 0x476959
mov eax, dword [0x52332c]
mov ecx, dword [0x523330]
mov edx, dword [str..PhysicalDrive0]
mov dword [esp + 0x2c], eax
mov ax, word [0x523338]
mov dword [esp + 0x30], ecx
mov cl, byte [0x52333a]
mov dword [esp + 0x28], edx
mov edx, dword [0x523334]
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 0x476959
lea eax, [esp + 0x24]
push 0
push eax
push 0x1000
push 0x5463c8
lea ecx, [esp + 0x20]
push 0xc
push ecx
push 0x2d1400
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x476959
mov ebx, dword [0x5463e0]
test ebx, ebx
jbe 0x47693d
lea esi, [ebx + 0x5463c8]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x47690a
cmp byte [edx + esi], 0x20
jne 0x47690a
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 0x4768f3
lea edi, [edx + ebx + 0x5463c8]
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 0x476885
mov bl, byte [esp + 0xe8c]
pop ebp
test bl, bl
je 0x47699e
lea ecx, [esp + 0xa6c]
push ecx
call fcn.00476510
add esp, 4
test al, al
je 0x47699e
lea edx, [esp + 0xa6c]
lea eax, [esp + 0x29c]
push edx
push eax
lea ecx, [esp + 0x2a4]
push str._s_s
push ecx
call fcn.00497c24
add esp, 0x10
mov al, byte [esp + 0xe78]
test al, al
jne 0x476a0f
mov al, byte [esp + 0xe84]
test al, al
jne 0x476a0f
mov al, byte [esp + 0xe7c]
test al, al
jne 0x476a0f
mov al, byte [esp + 0xe80]
test al, al
jne 0x476a0f
test bl, bl
jne 0x476a0f
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.004764f0
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.00497c24
add esp, 0x18
mov al, byte [0x5474e8]
test al, al
jne 0x476a1f
mov byte [0x523294], 0
mov ebx, dword [esp + 0xe70]
test ebx, ebx
je 0x476aa9
lea ecx, [esp + 0x140]
push ecx
call fcn.00478680
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.004786b0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x150]
push ecx
push edx
call fcn.00478770
add esp, 0x18
mov edi, ebx
mov ebx, dword [esp + 0xe74]
xor esi, esi
cmp esi, ebx
jae 0x476a99
mov al, byte [esp + esi + 0xc]
push edi
push eax
call fcn.004764b0
add esp, 8
inc esi
add edi, 2
cmp esi, 0x10
jb 0x476a7e
mov al, byte [0x5474e8]
test al, al
jne 0x476aa9
mov byte [0x523295], 6
pop edi
pop esi
pop ebx
add esp, 0xe60
ret