Function at 0x4633c0
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 0x46345d
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.00462f40
add esp, 0xc
test eax, eax
setne al
test al, al
jne 0x46342d
push 0x64
call esi
jmp 0x46340a
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 0x463568
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.00463280
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.0046b7b1
lea edx, [esp + 0x28]
push 3
push edx
call fcn.00463280
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
add esp, 0x20
cmp eax, ebx
jne 0x4634da
cmp ecx, ebx
je 0x4634f3
push ecx
push eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x48]
push eax
push str._s_X_X
push ecx
call fcn.0046b7b1
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 0x463536
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 0x46356a
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 0x46356a
xor ebx, ebx
mov al, byte [esp + 0xe80]
test al, al
je 0x4635fc
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 0x5ff638
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.0046b7b1
add esp, 0x10
mov al, byte [esp + 0xe84]
test al, al
je 0x463739
mov eax, dword [0x5ff620]
mov ecx, dword [0x5ff624]
mov edx, dword [str..PhysicalDrive0]
mov dword [esp + 0x2c], eax
mov ax, word [0x5ff62c]
mov dword [esp + 0x30], ecx
mov cl, byte [0x5ff62e]
mov dword [esp + 0x28], edx
mov edx, dword [0x5ff628]
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 0x463739
lea eax, [esp + 0x24]
push 0
push eax
push 0x1000
push 0x610760
lea ecx, [esp + 0x20]
push 0xc
push ecx
push 0x2d1400
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x463739
mov ebx, dword [0x610778]
test ebx, ebx
jbe 0x46371d
lea esi, [ebx + 0x610760]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4636ea
cmp byte [edx + esi], 0x20
jne 0x4636ea
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 0x4636d3
lea edi, [edx + ebx + 0x610760]
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 0x463665
mov bl, byte [esp + 0xe8c]
pop ebp
test bl, bl
je 0x46377e
lea ecx, [esp + 0xa6c]
push ecx
call fcn.004632f0
add esp, 4
test al, al
je 0x46377e
lea edx, [esp + 0xa6c]
lea eax, [esp + 0x29c]
push edx
push eax
lea ecx, [esp + 0x2a4]
push str._s_s
push ecx
call fcn.0046b7b1
add esp, 0x10
mov al, byte [esp + 0xe78]
test al, al
jne 0x4637ef
mov al, byte [esp + 0xe84]
test al, al
jne 0x4637ef
mov al, byte [esp + 0xe7c]
test al, al
jne 0x4637ef
mov al, byte [esp + 0xe80]
test al, al
jne 0x4637ef
test bl, bl
jne 0x4637ef
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.00463280
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.0046b7b1
add esp, 0x18
mov al, byte [0x611880]
test al, al
jne 0x4637ff
mov byte [0x5ff588], 0
mov ebx, dword [esp + 0xe70]
test ebx, ebx
je 0x463889
lea ecx, [esp + 0x140]
push ecx
call fcn.00465580
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.004655b0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x150]
push ecx
push edx
call fcn.00465670
add esp, 0x18
mov edi, ebx
mov ebx, dword [esp + 0xe74]
xor esi, esi
cmp esi, ebx
jae 0x463879
mov al, byte [esp + esi + 0xc]
push edi
push eax
call fcn.00463240
add esp, 8
inc esi
add edi, 2
cmp esi, 0x10
jb 0x46385e
mov al, byte [0x611880]
test al, al
jne 0x463889
mov byte [0x5ff589], 6
pop edi
pop esi
pop ebx
add esp, 0xe60
ret