Function at 0x401700
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x37c8
call fcn.00403570
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x37dc]
lea ecx, [esp + 0x28]
push eax
push str..PhysicalDrive_d
push ecx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0x28]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x4019f6
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x10c8]
mov dword [esp + 0x20], eax
push ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10cc]
push ecx
mov dword [esp + 0x2c], eax
push 0x2710
push edx
lea eax, [esp + 0x2c]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4019e0
mov ecx, 0xf9
xor eax, eax
lea edi, [esp + 0x129]
mov byte [esp + 0x128], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf9
xor eax, eax
lea edi, [esp + 0x511]
mov byte [esp + 0x510], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf9
xor eax, eax
lea edi, [esp + 0xce1]
mov byte [esp + 0xce0], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf9
xor eax, eax
lea edi, [esp + 0x8f9]
mov byte [esp + 0x8f8], bl
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x10d4]
lea ecx, [esp + 0xce0]
stosw word es:[edi], ax
stosb byte es:[edi], al
push ecx
push ebx
lea eax, [esp + 0x10d0]
push edx
push eax
call fcn.00401a10
mov edx, dword [esp + 0x10e8]
lea ecx, [esp + 0x520]
push ecx
push ebx
lea eax, [esp + 0x10e0]
push edx
push eax
call fcn.00401a10
mov edx, dword [esp + 0x10fc]
lea ecx, [esp + 0x918]
push ecx
push ebx
lea eax, [esp + 0x10f0]
push edx
push eax
call fcn.00401a10
mov edx, dword [esp + 0x1110]
lea ecx, [esp + 0x158]
push ecx
push 1
lea eax, [esp + 0x1100]
push edx
push eax
call fcn.00401a10
mov ebp, dword [esp + 0x3820]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x40
lea esi, [ebp + 0x100]
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40191b
movsx ecx, byte [esp + 0x128]
mov edi, dword [sym.imp.MSVCRT.dll_isalnum]
push ecx
call edi
add esp, 4
test eax, eax
jne 0x4018e6
movsx edx, byte [esp + 0x13b]
push edx
call edi
add esp, 4
test eax, eax
je 0x40191b
lea eax, [esp + 0x128]
test eax, eax
je 0x401910
lea ecx, [esp + 0x128]
push 0x100
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [esi + 0xff], bl
jmp 0x401912
mov byte [esi], bl
push esi
call fcn.004037e0
add esp, 4
lea edi, [esp + 0x510]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4019a1
lea edx, [esp + 0x510]
test edx, edx
je 0x401955
lea eax, [esp + 0x510]
push 0x100
push eax
push ebp
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [esi - 1], bl
jmp 0x401958
mov byte [ebp], bl
lea ecx, [esp + 0x8f8]
lea esi, [ebp + 0x200]
test ecx, ecx
je 0x401988
lea edx, [esp + 0x8f8]
push 0x100
push edx
push esi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [esi + 0xff], bl
jmp 0x40198a
mov byte [esi], bl
push ebp
call fcn.004037e0
push esi
call fcn.004037e0
add esp, 8
mov dword [esp + 0x10], 1
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x10c8]
rep stosd dword es:[edi], eax
cmp dword [esp + 0x10], ebx
je 0x4019dc
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push ebx
push eax
lea ecx, [esp + 0x10d0]
push 0x2710
push ecx
push ebx
push ebx
push 0x700a0
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x37c8
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x37c8
ret