Function at 0x424a80
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov eax, 0x303c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00516610
xor eax, eax
xor esi, esi
mov dword [ebp - 0x3020], eax
jmp 0x424c95
mov ecx, dword [ebp - 0x2820]
lea edx, [ebp - 0x2838]
add edx, ecx
mov dword [esp], edx
call sym.flipAndCodeBytes_char_
mov dword [esp + 4], eax
lea eax, [ebp - 0x2c28]
mov dword [esp], eax
call sym._strcpy
mov edi, dword [ebp - 0x2828]
lea ecx, [ebp - 0x2838]
add ecx, edi
mov dword [esp + 4], ecx
lea edi, [ebp - 0x3018]
mov dword [esp], edi
call sym._strcpy
cmp byte [0x5625a0], 0
jne 0x424b80
movsx edx, byte [ebp - 0x2c28]
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
jne 0x424d9d
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov ecx, dword [eax]
movzx eax, word [ecx + edx*2]
and eax, 0x107
test eax, eax
jne 0x424b47
movsx edx, byte [ebp - 0x2c15]
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
jne 0x424dc9
mov eax, dword [sym.imp.msvcrt.dll__pctype]
mov ecx, dword [eax]
movzx eax, word [ecx + edx*2]
and eax, 0x107
test eax, eax
je 0x424b80
mov dword [esp], 0x5625a0
lea edx, [ebp - 0x2c28]
mov dword [esp + 4], edx
call sym._strcpy
mov dword [esp + 4], edi
mov edi, 1
mov dword [esp], 0x5621a0
call sym._strcpy
mov dword [ebp - 0x3020], edi
nop
lea esi, [esi]
xor edi, edi
mov edx, 0x2710
mov dword [esp + 4], edi
lea edi, [ebp - 0x2838]
mov dword [esp + 8], edx
mov dword [esp], edi
call sym._memset
mov dword [esp + 0x10], edi
xor ecx, ecx
lea eax, [ebp - 0x301c]
mov dword [esp + 0x1c], ecx
mov edx, 0x2710
xor ecx, ecx
mov dword [esp + 0x18], eax
xor edi, edi
mov eax, 0x2d0c10
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_DeviceIoControl
sub esp, 0x20
test eax, eax
je 0x424d93
lea eax, [ebp - 0x2828]
lea edi, [ebp - 0x3018]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._strcpy
cmp byte [0x5625a0], 0
jne 0x424c80
movsx edx, byte [ebp - 0x3018]
mov ecx, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [ecx], 1
jne 0x424db3
mov ecx, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [ecx]
movzx eax, word [eax + edx*2]
and eax, 0x107
test eax, eax
jne 0x424c59
movsx edx, byte [ebp - 0x3005]
mov ecx, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [ecx], 1
jne 0x424ddf
mov ecx, dword [sym.imp.msvcrt.dll__pctype]
mov eax, dword [ecx]
movzx eax, word [eax + edx*2]
and eax, 0x107
test eax, eax
je 0x424c80
mov dword [esp + 4], edi
mov edi, 1
mov dword [esp], 0x5625a0
call sym._strcpy
mov dword [ebp - 0x3020], edi
lea esi, [esi]
lea edi, [edi]
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
inc esi
cmp esi, 0xf
jg 0x424df5
mov dword [esp + 8], esi
mov ecx, str..PhysicalDrive_d
lea edx, [ebp - 0x118]
mov dword [esp + 4], ecx
xor ebx, ebx
xor edi, edi
mov dword [esp], edx
call sym._sprintf
mov dword [esp + 0x18], ebx
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x14], edi
mov eax, 3
mov edx, 3
mov dword [esp + 4], ebx
lea edi, [ebp - 0x118]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], edi
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
cmp eax, 0xffffffff
mov ebx, eax
je 0x424c8b
cld
xor edx, edx
xor eax, eax
mov dword [ebp - 0x301c], edx
mov ecx, 3
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
xor ecx, ecx
xor edx, edx
xor eax, eax
mov dword [ebp - 0x128], ecx
mov edi, 0x2710
lea ecx, [ebp - 0x2838]
mov dword [esp + 8], edi
lea edi, [ebp - 0x301c]
mov dword [esp], ecx
mov dword [ebp - 0x124], edx
mov dword [esp + 4], eax
call sym._memset
mov dword [esp + 0x18], edi
xor edx, edx
mov eax, 0x2710
mov dword [esp + 0x1c], edx
lea ecx, [ebp - 0x2838]
mov edx, 0xc
mov dword [esp + 0x14], eax
lea edi, [ebp - 0x128]
mov eax, 0x2d1400
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_DeviceIoControl
sub esp, 0x20
test eax, eax
jne 0x424aa0
call sub.KERNEL32.dll_GetLastError
jmp 0x424b80
call sub.KERNEL32.dll_GetLastError
jmp 0x424c80
mov dword [esp], edx
mov ecx, 0x107
mov dword [esp + 4], ecx
call sym.__isctype
jmp 0x424b1a
mov dword [esp], edx
mov eax, 0x107
mov dword [esp + 4], eax
call sym.__isctype
jmp 0x424c2a
mov dword [esp], edx
mov ecx, 0x107
mov dword [esp + 4], ecx
call sym.__isctype
jmp 0x424b43
mov dword [esp], edx
mov eax, 0x107
mov dword [esp + 4], eax
call sym.__isctype
jmp 0x424c55
mov eax, dword [ebp - 0x3020]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret