Function at 0x10009540
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3814
call fcn.1003a6d0
mov eax, dword [0x100a0f80]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x37c4], ecx
mov dword [ebp - 0x37f8], 0
mov dword [ebp - 0x37c8], 0
mov dword [ebp - 0x37c8], 0
jmp 0x1000958c
mov eax, dword [ebp - 0x37c8]
add eax, 1
mov dword [ebp - 0x37c8], eax
cmp dword [ebp - 0x37c8], 1
jge 0x100099ed
mov dword [ebp - 0x37cc], 0
mov ecx, dword [ebp - 0x37c8]
push ecx
push str..PhysicalDrive_d
push 0x100
lea edx, [ebp - 0x104]
push edx
call fcn.1000ab30
add esp, 0x10
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x37cc], eax
cmp dword [ebp - 0x37cc], 0xffffffff
jne 0x10009679
mov dword [ebp - 0x37d8], 0x100
mov ecx, dword [ebp - 0x37c4]
add ecx, 0x800
mov dword [ebp - 0x37fc], ecx
mov edx, dword [ebp - 0x37fc]
mov dword [ebp - 0x37d4], edx
cmp dword [ebp - 0x37d8], 0
je 0x10009649
mov eax, dword [ebp - 0x37d4]
mov byte [eax], 0
mov ecx, dword [ebp - 0x37d4]
add ecx, 1
mov dword [ebp - 0x37d4], ecx
mov edx, dword [ebp - 0x37d8]
sub edx, 1
mov dword [ebp - 0x37d8], edx
jmp 0x10009617
lea eax, [ebp - 0x104]
push eax
push 0x251
push str._d_ReadPhysicalDriveInNTWithZeroRights_ERROR_CreateFileA__s__returned_INVALID_HANDLE_VALUE
push 0x100
mov ecx, dword [ebp - 0x37c4]
add ecx, 0x800
push ecx
call fcn.1000ab30
add esp, 0x14
jmp 0x100099e8
mov dword [ebp - 0x37ec], 0
xor edx, edx
mov dword [ebp - 0x37c0], edx
mov dword [ebp - 0x37bc], edx
mov dword [ebp - 0x37b8], edx
mov dword [ebp - 0x37c0], 0
mov dword [ebp - 0x37bc], 0
push 0x2710
push 0
lea eax, [ebp - 0x37b4]
push eax
call fcn.1004bd80
add esp, 0xc
push 0
lea ecx, [ebp - 0x37ec]
push ecx
push 0x2710
lea edx, [ebp - 0x37b4]
push edx
push 0xc
lea eax, [ebp - 0x37c0]
push eax
push 0x2d1400
mov ecx, dword [ebp - 0x37cc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10009953
lea edx, [ebp - 0x37b4]
mov dword [ebp - 0x37d0], edx
lea eax, [ebp - 0xcbc]
push eax
lea ecx, [ebp - 0x37b4]
push ecx
push 0
mov edx, dword [ebp - 0x37d0]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x37c4]
call fcn.10009db0
lea ecx, [ebp - 0x8d4]
push ecx
lea edx, [ebp - 0x37b4]
push edx
push 0
mov eax, dword [ebp - 0x37d0]
mov ecx, dword [eax + 0x10]
push ecx
mov ecx, dword [ebp - 0x37c4]
call fcn.10009db0
lea edx, [ebp - 0x10a4]
push edx
lea eax, [ebp - 0x37b4]
push eax
push 0
mov ecx, dword [ebp - 0x37d0]
mov edx, dword [ecx + 0x14]
push edx
mov ecx, dword [ebp - 0x37c4]
call fcn.10009db0
lea eax, [ebp - 0x4ec]
push eax
lea ecx, [ebp - 0x37b4]
push ecx
push 0
mov edx, dword [ebp - 0x37d0]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x37c4]
call fcn.10009db0
nop
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 0x37c4]
movsx ecx, byte [eax + edx]
test ecx, ecx
jne 0x1000983c
mov edx, 1
imul eax, edx, 0
movsx cx, byte [ebp + eax - 0x4ec]
movzx edx, cx
push edx
call fcn.100526ef
add esp, 4
test eax, eax
jne 0x100097f6
mov eax, 1
imul ecx, eax, 0x13
movsx dx, byte [ebp + ecx - 0x4ec]
movzx eax, dx
push eax
call fcn.100526ef
add esp, 4
test eax, eax
je 0x1000983c
lea ecx, [ebp - 0x4ec]
push ecx
push 0x400
mov edx, dword [ebp - 0x37c4]
push edx
call fcn.10052b02
add esp, 0xc
lea eax, [ebp - 0x8d4]
push eax
push 0x400
mov ecx, dword [ebp - 0x37c4]
add ecx, 0x400
push ecx
call fcn.10052b02
add esp, 0xc
mov dword [ebp - 0x37f8], 1
push 0x2710
push 0
lea edx, [ebp - 0x37b4]
push edx
call fcn.1004bd80
add esp, 0xc
push 0
lea eax, [ebp - 0x37ec]
push eax
push 0x2710
lea ecx, [ebp - 0x37b4]
push ecx
push 0
push 0
push 0x700a0
mov edx, dword [ebp - 0x37cc]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100098fc
mov dword [ebp - 0x37e0], 0x100
mov eax, dword [ebp - 0x37c4]
add eax, 0x800
mov dword [ebp - 0x3800], eax
mov ecx, dword [ebp - 0x3800]
mov dword [ebp - 0x37dc], ecx
cmp dword [ebp - 0x37e0], 0
je 0x100098da
mov edx, dword [ebp - 0x37dc]
mov byte [edx], 0
mov eax, dword [ebp - 0x37dc]
add eax, 1
mov dword [ebp - 0x37dc], eax
mov ecx, dword [ebp - 0x37e0]
sub ecx, 1
mov dword [ebp - 0x37e0], ecx
jmp 0x100098a8
lea edx, [ebp - 0x104]
push edx
push str._s_ReadPhysicalDriveInNTWithZeroRights_ERROR_DeviceIoControl____IOCTL_DISK_GET_DRIVE_GEOMETRY_EX__returned_0
mov eax, dword [ebp - 0x37c4]
add eax, 0x800
push eax
call fcn.10007b60
add esp, 0xc
jmp 0x1000994e
lea ecx, [ebp - 0x37b4]
mov dword [ebp - 0x37f4], ecx
mov edx, dword [ebp - 0x37f4]
cmp dword [edx + 8], 0xc
jne 0x10009920
mov dword [ebp - 0x37f0], 1
jmp 0x1000992a
mov dword [ebp - 0x37f0], 0
mov eax, dword [ebp - 0x37f0]
mov dword [ebp - 0x380c], eax
mov ecx, dword [ebp - 0x37f4]
mov edx, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x3814], edx
mov dword [ebp - 0x3810], eax
jmp 0x100099da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3808], eax
mov dword [ebp - 0x37e8], 0x100
mov ecx, dword [ebp - 0x37c4]
add ecx, 0x800
mov dword [ebp - 0x3804], ecx
mov edx, dword [ebp - 0x3804]
mov dword [ebp - 0x37e4], edx
cmp dword [ebp - 0x37e8], 0
je 0x100099b9
mov eax, dword [ebp - 0x37e4]
mov byte [eax], 0
mov ecx, dword [ebp - 0x37e4]
add ecx, 1
mov dword [ebp - 0x37e4], ecx
mov edx, dword [ebp - 0x37e8]
sub edx, 1
mov dword [ebp - 0x37e8], edx
jmp 0x10009987
mov eax, dword [ebp - 0x3808]
push eax
push str.DeviceIOControl_IOCTL_STORAGE_QUERY_PROPERTY_error___d_n
mov ecx, dword [ebp - 0x37c4]
add ecx, 0x800
push ecx
call fcn.10007b60
add esp, 0xc
mov edx, dword [ebp - 0x37cc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1000957d
mov eax, dword [ebp - 0x37f8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a6b5
mov esp, ebp
pop ebp
ret