Function at 0x4019e0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x37c8
call fcn.00402730
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
push esi
lea eax, [esp + 0x2c]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x28]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401c64
xor edx, edx
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x10c8]
mov dword [esp + 0x1c], edx
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], edx
push eax
lea ecx, [esp + 0x10d0]
mov dword [esp + 0x2c], edx
push 0x2710
push ecx
lea edx, [esp + 0x2c]
push 0xc
push edx
push 0x2d1400
push ebp
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 0x401c57
mov ecx, dword [esp + 0x10d4]
lea eax, [esp + 0x8f8]
push eax
push ebx
lea edx, [esp + 0x10d0]
push ecx
push edx
call fcn.00401870
mov ecx, dword [esp + 0x10e8]
lea eax, [esp + 0x520]
push eax
push ebx
lea edx, [esp + 0x10e0]
push ecx
push edx
call fcn.00401870
mov ecx, dword [esp + 0x10fc]
lea eax, [esp + 0xd00]
push eax
push ebx
lea edx, [esp + 0x10f0]
push ecx
push edx
call fcn.00401870
mov ecx, dword [esp + 0x1110]
lea eax, [esp + 0x158]
push eax
push 1
lea edx, [esp + 0x1100]
push ecx
push edx
call fcn.00401870
mov al, byte [0x404c0c]
add esp, 0x40
cmp al, bl
jne 0x401b87
movsx eax, byte [esp + 0x128]
mov esi, dword [sym.imp.MSVCRT.dll_isalnum]
push eax
call esi
add esp, 4
test eax, eax
jne 0x401b33
movsx ecx, byte [esp + 0x13b]
push ecx
call esi
add esp, 4
test eax, eax
je 0x401b87
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x14], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x404c0c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x510]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40480c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [esp + 0x10d2], bl
jne 0x401c20
mov edi, 0x404020
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x40440c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x128]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x40440c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [0x40440d], bl
je 0x401c20
mov ecx, 0x40440c
cmp byte [ecx], 0x20
jne 0x401c18
cmp byte [ecx], bl
je 0x401c13
mov eax, ecx
mov dl, byte [eax + 1]
mov byte [eax], dl
mov dl, byte [eax + 1]
inc eax
cmp dl, bl
jne 0x401c06
cmp byte [ecx], 0x20
je 0x401c00
mov al, byte [ecx + 2]
inc ecx
cmp al, bl
jne 0x401bfb
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x10c8]
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10cc]
push eax
push 0x2710
push ecx
push ebx
push ebx
push 0x700a0
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, dword [esp + 0x10]
jmp 0x401c5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
mov dword [esp + 0x10], esi
jl 0x4019fa
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x37c8
ret