Function at 0x402ab7
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3458
call fcn.0040f760
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4133a0
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym._sprintf
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0
lea eax, [ebp - 0x118]
mov dword [esp], eax
call sym._CreateFileA_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x402f14
mov dword [ebp - 0x12c], 0
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0
lea eax, [ebp - 0x128]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [esp + 8], 0x2710
mov dword [esp + 4], 0
lea eax, [ebp - 0x2848]
mov dword [esp], eax
call sym._memset
mov dword [esp + 0x1c], 0
lea eax, [ebp - 0x12c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x2710
lea eax, [ebp - 0x2848]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xc
lea eax, [ebp - 0x128]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x2d1400
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._DeviceIoControl_32
sub esp, 0x20
test eax, eax
je 0x402dec
lea eax, [ebp - 0x2848]
mov dword [ebp - 0x284c], eax
lea edx, [ebp - 0x2848]
mov eax, dword [ebp - 0x284c]
mov ecx, dword [eax + 0x18]
lea eax, [edx + ecx]
mov dword [esp], eax
call sym._flipAndCodeBytes
mov dword [esp + 4], eax
lea eax, [ebp - 0x2c48]
mov dword [esp], eax
call sym._strcpy
lea edx, [ebp - 0x2848]
mov eax, dword [ebp - 0x284c]
mov ecx, dword [eax + 0x10]
lea eax, [edx + ecx]
mov dword [esp + 4], eax
lea eax, [ebp - 0x3038]
mov dword [esp], eax
call sym._strcpy
cmp byte [0x416f64], 0
jne 0x402cab
movsx eax, byte [ebp - 0x2c48]
mov dword [esp], eax
call sym._isalnum
test eax, eax
jne 0x402c78
movsx eax, byte [ebp - 0x2c35]
mov dword [esp], eax
call sym._isalnum
test eax, eax
jne 0x402c78
jmp 0x402cab
lea eax, [ebp - 0x2c48]
mov dword [esp + 4], eax
mov dword [esp], 0x416f64
call sym._strcpy
lea eax, [ebp - 0x3038]
mov dword [esp + 4], eax
mov dword [esp], 0x416b64
call sym._strcpy
mov dword [ebp - 0xc], 1
lea edx, [ebp - 0x2848]
mov eax, dword [ebp - 0x284c]
mov ecx, dword [eax + 0xc]
lea eax, [edx + ecx]
mov dword [esp + 4], eax
mov dword [esp], 0x4133b4
call sym._strcmp
test eax, eax
jne 0x402cdd
mov dword [ebp - 0x342c], 0x4130b8
jmp 0x402ce7
mov dword [ebp - 0x342c], 0x4133b6
lea edx, [ebp - 0x2848]
mov eax, dword [ebp - 0x284c]
mov ecx, dword [eax + 0xc]
lea eax, [edx + ecx]
mov dword [esp + 4], eax
mov dword [esp], 0x4133b4
call sym._strcmp
test eax, eax
je 0x402d2a
lea eax, [ebp - 0x2848]
mov dword [ebp - 0x3430], eax
mov eax, dword [ebp - 0x284c]
mov edx, dword [eax + 0xc]
add dword [ebp - 0x3430], edx
jmp 0x402d34
mov dword [ebp - 0x3430], 0x4130b8
lea edx, [ebp - 0x2848]
mov eax, dword [ebp - 0x284c]
mov ecx, dword [eax + 0x10]
lea eax, [edx + ecx]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x342c]
mov dword [esp + 0xc], eax
mov edx, dword [ebp - 0x3430]
mov dword [esp + 8], edx
mov dword [esp + 4], str._s_s_s
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._sprintf
mov dword [esp + 8], 0x4133bf
mov dword [esp + 4], 0x4133b6
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._StrReplace
mov dword [esp + 8], 0x4133bf
mov dword [esp + 4], str.____
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._replace
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._sprintf
mov dword [esp + 8], 0x4133bf
mov dword [esp + 4], 0x4133c6
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._replace
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._sprintf
mov dword [esp + 8], 0x2710
mov dword [esp + 4], 0
lea eax, [ebp - 0x2848]
mov dword [esp], eax
call sym._memset
mov dword [esp + 0x1c], 0
lea eax, [ebp - 0x12c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0x2710
lea eax, [ebp - 0x2848]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x2d0c10
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._DeviceIoControl_32
sub esp, 0x20
test eax, eax
je 0x402ef0
lea eax, [ebp - 0x2848]
mov dword [ebp - 0x284c], eax
mov eax, dword [ebp - 0x284c]
add eax, 0x10
mov dword [esp + 4], eax
lea eax, [ebp - 0x3428]
mov dword [esp], eax
call sym._strcpy
cmp byte [0x416f64], 0
jne 0x402ed1
movsx eax, byte [ebp - 0x3428]
mov dword [esp], eax
call sym._isalnum
test eax, eax
jne 0x402eb4
movsx eax, byte [ebp - 0x3415]
mov dword [esp], eax
call sym._isalnum
test eax, eax
jne 0x402eb4
jmp 0x402ed1
lea eax, [ebp - 0x3428]
mov dword [esp + 4], eax
mov dword [esp], 0x416f64
call sym._strcpy
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x3428]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str._n_MEDIA_SERIAL_NUMBER_DATA_for_drive__d__nSerial_Number___s_n
call sym._printf
jmp 0x402f06
call sym._GetLastError_0
mov dword [ebp - 0x284c], eax
mov eax, dword [ebp - 0x284c]
cmp eax, 1
je 0x402f06
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret