Function at 0x424b00
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x481948
push eax
mov eax, 0x2b78
mov dword fs:[0], esp
call fcn.00431cd0
call fcn.0040c290
cmp dword [eax + 0x4a0], 2
jne 0x424b9c
lea eax, [ebp - 0x28]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x424b57
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.Reading_physical_drive_with_ReadPhysicalDriveInNTWithZeroRights
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x14]
add esp, 0x1c
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x424b9c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404120
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov dword [ebp - 0x2c], eax
xor edi, edi
nop dword [eax]
push 0x400
lea eax, [ebp - 0x474]
mov byte [ebp - 0xd], 0
push 0
push eax
call fcn.00434830
push edi
lea eax, [ebp - 0x70]
push str..PhysicalDrive_d
push eax
call fcn.00409960
add esp, 0x18
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
push 0
cmovae eax, dword [ebp - 0x70]
push 0
push 3
push 0
push 3
push 0
push eax
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x4c], esi
cmp esi, 0xffffffff
je 0x4251d3
call fcn.0040c290
cmp dword [eax + 0x4a0], 2
jne 0x424c80
lea eax, [ebp - 0x28]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 2
jb 0x424c3e
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.Reading_physical_drive_with_IOCTL_STORAGE_QUERY_PROPERTY
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x14]
add esp, 0x1c
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x424c80
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404120
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x2b84]
movq qword [ebp - 0x58], xmm0
push 0
push eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
call fcn.00434830
add esp, 0xc
lea eax, [ebp - 0x48]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2b84]
push eax
push 0xc
lea eax, [ebp - 0x58]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x424e3b
mov al, byte [ebp - 0x2b7a]
lea esi, [ebp - 0x2b84]
add esi, dword [ebp - 0x2b6c]
mov ecx, esi
mov byte [ebp - 0xd], al
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x424d00
sub ecx, edx
push ecx
push esi
call fcn.004092c0
add esp, 8
test al, al
je 0x424d30
mov eax, dword [ebp - 0x2b6c]
lea esi, [ebp - 0x2b84]
add eax, esi
push eax
call fcn.004253e0
add esp, 4
mov esi, eax
push 0x3ff
lea eax, [ebp - 0x474]
push esi
push eax
call fcn.004428f0
lea ecx, [ebp - 0x474]
add esp, 0xc
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x424d50
sub ecx, edx
je 0x424d72
lea eax, [ebp - 0x474]
push ebx
push eax
call fcn.00425750
add esp, 8
mov dword [ebp - 0x2c], 1
call fcn.0040c290
cmp dword [eax + 0x4a0], 2
jne 0x424eb5
mov eax, dword [ebp - 0x2b70]
lea ecx, [ebp - 0x2b84]
add eax, ecx
push ebx
push eax
mov eax, dword [ebp - 0x2b74]
add eax, ecx
push eax
mov eax, dword [ebp - 0x2b78]
add eax, ecx
push eax
push edi
lea eax, [ebp - 0x28]
push str._n_STORAGE_DEVICE_DESCRIPTOR_for_drive__d__nVendor_Id___s_nProduct_Id___s_nProduct_Revision___s_nSerial_Number___s_n
push eax
call fcn.00409960
add esp, 0x1c
mov esi, eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 3
push eax
mov ecx, 0x4a9a88
call fcn.004046a0
mov dword [0x4a9f24], 2
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x424de2
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x424dfd
mov esi, dword [esi]
push esi
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x30]
add esp, 0x10
cmp eax, 0x10
jb 0x424e27
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00404120
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
jmp 0x424e9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, 0x4a9a88
lea eax, [ebp - 0x28]
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 5
jb 0x424e67
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_DeviceIOControl_IOCTL_STORAGE_QUERY_PROPERTY_error_
push 0x48649c
push eax
call fcn.0040e7e0
push esi
push 0x486544
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
add esp, 0x28
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x424eb5
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404120
push 0x2710
lea eax, [ebp - 0x2b84]
push 0
push eax
call fcn.00434830
add esp, 0xc
lea eax, [ebp - 0x48]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2b84]
push eax
push 0
push 0
push 0x2d0c10
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x425064
call fcn.0040c290
cmp dword [eax + 0x4a0], 2
jne 0x424f6b
lea eax, [ebp - 0x28]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x424f29
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.Reading_physical_drive_with_IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x14]
add esp, 0x1c
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x424f6b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404120
push 0x400
lea eax, [ebp - 0x474]
push 0
push eax
call fcn.00434830
add esp, 0xc
xor ecx, ecx
mov al, byte [ebp + ecx - 0x2b74]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x475], al
test al, al
jne 0x424f83
cmp byte [ebx], al
jne 0x424fb3
lea eax, [ebp - 0x474]
push ebx
push eax
call fcn.00425750
add esp, 8
mov dword [ebp - 0x2c], 1
call fcn.0040c290
cmp dword [eax + 0x4a0], 2
jne 0x425142
lea eax, [ebp - 0x474]
push eax
push edi
lea eax, [ebp - 0x28]
push str._n_MEDIA_SERIAL_NUMBER_DATA_for_drive__d__nSerial_Number___s
push eax
call fcn.00409960
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 7
push eax
mov ecx, 0x4a9a88
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x425008
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x425023
mov esi, dword [esi]
push esi
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x30]
add esp, 0x10
cmp eax, 0x10
jb 0x42504d
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00404120
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
jmp 0x425129
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4a9a88
sub eax, 1
je 0x4250e1
sub eax, 0x31
lea eax, [ebp - 0x28]
push eax
je 0x4250af
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x425098
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_DeviceIOControl_IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER_error___d
jmp 0x425115
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x4250ca
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_DeviceIOControl_IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER_error___n______________The_request_is_not_supported_for_this_device.
jmp 0x425115
lea eax, [ebp - 0x28]
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x425100
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_DeviceIOControl_IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER_error___n______________The_request_is_not_valid_for_this_device.
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
add esp, 0x1c
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp eax, 0x10
jb 0x425142
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404120
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xd], 0
je 0x4251c7
lea eax, [ebp - 0x44]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 2
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xc
jb 0x425175
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str._Ignoring_removable_media_device_STORAGE_DEVICE_DESCRIPTOR
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x30]
add esp, 0x1c
cmp eax, 0x10
jb 0x4251b3
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00404120
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
jmp 0x4251d3
push ebx
push dword [ebp + 0xc]
call fcn.00425210
add esp, 8
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x4251ef
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00404120
inc edi
cmp edi, 0x10
jl 0x424bb0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret