Function at 0x40ffb0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.00424380
movsx eax, word [0x42bce6]
push ebx
push ebp
push esi
push edi
push eax
mov ebp, ecx
push 0xd517ffff
call fcn.0040e580
mov edx, dword [0x42bd18]
mov byte [0x42bcdd], al
mov eax, dword [0x42bd0c]
add esp, 8
imul edx, eax
lea ecx, [eax - 1]
xor ebx, ebx
mov word [0x42bce4], cx
mov cl, byte [0x42bcdc]
inc cl
xor edi, edi
mov dword [esp + 0x10], ebx
mov dword [0x42bd18], edx
mov byte [0x42bcd9], cl
mov dword [esp + 0x14], edi
jmp 0x410019
mov eax, dword [0x42bd0c]
push eax
push 0xda11ffff
call fcn.0040e500
mov edx, dword [0x42bcfc]
mov byte [0x42bce0], al
movsx eax, byte [0x42bcdb]
push edx
push eax
call fcn.0040e500
add esp, 0x10
lea ecx, [esp + 0x2c]
mov dword [0x42bd18], eax
push edi
push str..PhysicalDrive_d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
movsx ax, byte [0x42bcdd]
mov edx, dword [0x42bd08]
mov esi, dword [0x42bd04]
add esp, 0xc
inc eax
mov word [0x42bce2], ax
mov word [0x42bcea], ax
push ebx
push ebx
push 3
push ebx
push 3
lea eax, [esp + 0x40]
or edx, esi
push ebx
push eax
mov dword [0x42bd10], edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
movsx ecx, word [0x42bcf2]
movsx edx, byte [0x42bcd9]
mov esi, eax
or ecx, 0x44a5ffff
movsx eax, word [0x42bcee]
push edx
push eax
mov dword [esp + 0x20], esi
mov dword [0x42bcfc], ecx
call fcn.0040e480
add esp, 8
cmp esi, 0xffffffff
mov word [0x42bce2], ax
je 0x410511
xor ecx, ecx
mov dl, byte [0x42bd14]
mov dword [esp + 0x20], ecx
xor eax, eax
mov dword [esp + 0x24], ecx
lea edi, [esp + 0x514]
mov dword [esp + 0x28], ecx
mov ecx, 0x9c4
rep stosd dword es:[edi], eax
mov al, byte [0x42bcd8]
push ebx
or dl, al
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x51c]
mov byte [0x42bce0], dl
push 0x2710
push ecx
lea edx, [esp + 0x30]
push 0xc
push edx
push 0x2d1400
push esi
mov dword [esp + 0x3c], ebx
mov word [0x42bce4], 0xffff
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x41048a
movsx ecx, byte [0x42bce0]
movsx edx, byte [0x42bcd8]
mov al, byte [0x42bd0c]
push ecx
dec al
push edx
mov byte [0x42bcda], al
call fcn.0040e6b0
mov dword [0x42bcfc], eax
push 0xd5ddffff
movsx eax, word [0x42bce8]
push eax
call fcn.0040e540
mov edx, dword [esp + 0x53c]
mov cl, byte [0x42bce8]
add esp, 0x10
mov byte [0x42bcdc], al
lea eax, [esp + edx + 0x514]
mov byte [0x42bcdd], cl
push eax
mov ecx, ebp
call fcn.0040fb40
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x12c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xbcedffff
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx ecx, word [0x42bcf0]
push ecx
call fcn.0040e5d0
movsx edx, byte [0x42bcd8]
mov edi, dword [0x42bd18]
mov byte [0x42bcdd], al
movsx eax, word [0x42bce4]
or edx, edi
push eax
push 0x5029ffff
mov dword [0x42bd00], edx
call fcn.0040e540
mov ecx, dword [esp + 0x534]
mov edx, dword [0x42bd04]
push 0x66ddffff
push edx
mov dword [0x42bd18], eax
lea esi, [esp + ecx + 0x52c]
call fcn.0040e480
movsx ecx, word [0x42bce2]
mov dword [0x42bcf8], eax
mov eax, dword [0x42bd14]
push eax
push ecx
call fcn.0040e620
mov edx, dword [esp + 0x548]
mov word [0x42bce4], ax
movsx eax, byte [0x42bcde]
movsx ecx, word [0x42bcec]
lea edi, [esp + edx + 0x534]
or eax, 0xc12dffff
movsx edx, byte [0x42bcdc]
push ecx
push edx
mov dword [0x42bd14], eax
call fcn.0040e540
movsx edx, word [0x42bce8]
mov word [0x42bcf2], ax
mov ecx, 0x7981ffff
movsx eax, byte [0x42bcde]
add esp, 0x28
sub ecx, eax
mov dword [0x42bcf8], ecx
add edx, eax
mov byte [0x42bcda], 0xfe
mov dword [0x42bcfc], edx
mov al, byte [ebp]
cmp al, bl
jne 0x4102f8
cmp byte [esi], bl
je 0x4102f8
push 0x400
push esi
push ebp
call dword [sym.imp.MSVCRT.dll_strncpy]
mov al, byte [0x42bcdc]
add esp, 0xc
cmp al, bl
je 0x4102ec
mov al, byte [0x42bcd8]
mov byte [0x42bcdf], 1
cmp al, bl
jne 0x4102f2
mov byte [0x42bcdf], bl
mov byte [ebp + 0x3ff], bl
push 0xaddffff
push 0xfe1bffff
call fcn.0040e5d0
mov byte [0x42bcdd], al
movsx eax, word [0x42bce8]
push eax
push 0x7c89ffff
call fcn.0040e620
mov byte [0x42bcda], al
mov cl, byte [ebp + 0x400]
lea eax, [ebp + 0x400]
add esp, 0x10
cmp cl, bl
jne 0x410398
cmp byte [edi], bl
je 0x410398
mov ecx, dword [0x42bd08]
push 0x400
or ecx, 0x6a3ffff
push edi
push eax
mov word [0x42bce2], 1
mov dword [0x42bd0c], ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
movsx edx, word [0x42bcee]
push edx
push 0x3745ffff
call fcn.0040e6b0
push 0xe801ffff
mov word [0x42bce8], ax
push 0x9661ffff
mov byte [ebp + 0x7ff], bl
call fcn.0040e540
add esp, 0x1c
mov word [0x42bce4], ax
push 0x9eb7ffff
push 0x1509ffff
call fcn.0040e620
mov byte [0x42bcdd], al
push 0x2fbdffff
movsx eax, word [0x42bcf2]
push eax
call fcn.0040e670
lea esi, [ebp + 0x800]
mov word [0x42bce2], ax
add esp, 0x10
cmp byte [esi], bl
jne 0x41047c
cmp byte [esp + 0x12c], bl
je 0x41047c
push 0x9fe3ffff
push 0x533fffff
call fcn.0040e670
movsx ecx, word [0x42bce4]
push ecx
push 0xc8bfffff
mov byte [0x42bcda], al
call fcn.0040e4c0
movsx edx, word [0x42bcec]
mov byte [0x42bcd8], al
mov eax, 0x2ca3ffff
lea ecx, [esp + 0x13c]
push 0x400
sub eax, edx
push ecx
push esi
mov dword [0x42bd18], eax
call dword [sym.imp.MSVCRT.dll_strncpy]
push 0x9bf5ffff
push 0x6035ffff
call fcn.0040e500
movsx dx, byte [0x42bcd9]
mov edi, dword [0x42bd10]
push 0x9777ffff
add edx, edi
mov byte [0x42bcdf], al
mov word [0x42bce4], dx
push 0x4101ffff
mov byte [ebp + 0xbff], bl
call fcn.0040e580
add esp, 0x2c
mov byte [0x42bcdc], al
mov esi, dword [esp + 0x18]
mov dword [esp + 0x10], 1
jmp 0x4104af
movsx eax, byte [0x42bcd8]
movsx ecx, byte [0x42bce0]
or eax, 0x57efffff
mov dword [0x42bd00], eax
mov eax, dword [0x42bd14]
and ecx, eax
mov dword [0x42bd18], ecx
movsx edx, word [0x42bcf0]
movsx eax, word [0x42bce2]
push edx
push eax
mov dword [0x42bd14], 0x3871fffe
call fcn.0040e4c0
movsx ecx, byte [0x42bcda]
mov edx, dword [0x42bd10]
mov dword [0x42bd04], eax
mov eax, dword [0x42bd14]
sub ecx, 0x74a80001
push edx
push eax
mov dword [0x42bd18], ecx
call fcn.0040e620
add esp, 0x10
mov byte [0x42bcdc], al
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esp + 0x10], ebx
jne 0x41051f
mov edi, dword [esp + 0x14]
inc edi
cmp edi, 0x10
mov dword [esp + 0x14], edi
jl 0x410014
movsx ecx, word [0x42bcf2]
mov edx, dword [0x42bd04]
push ecx
push edx
call fcn.0040e670
movsx ecx, byte [0x42bcdc]
mov byte [0x42bce0], al
movsx eax, word [0x42bce8]
push eax
push ecx
call fcn.0040e5d0
add esp, 0x10
mov byte [0x42bce0], al
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c14
ret