Function at 0x416820
Capabilities:
Get storage device properties

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bbfd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x58
push esi
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x54], 0
mov edi, ecx
mov dword [ebp - 0x50], 0xf
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x28], edi
mov byte [ebp - 0x64], 0
push 0
push 0
push 3
push 0
push 3
push 0
push str..PhysicalDrive0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, 0xffffffff
jne 0x416905
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov ecx, dword [ebp - 0x50]
cmp ecx, 0x10
jb 0x4168f0
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4168e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416b5d
push ecx
push edx
call fcn.00439eff
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov dword [ebp - 0x38], 0x416b70
mov dword [ebp - 0x34], esi
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 8
lea eax, [ebp - 0x40]
mov dword [ebp - 0x4c], 0
push eax
push 0xc
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], 0
push eax
push 0x2d1400
push esi
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x416976
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
test esi, esi
je 0x4168bc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4168bc
mov esi, dword [ebp - 0x3c]
push esi
call fcn.00439f0d
push esi
push 0
push eax
mov dword [ebp - 0x14], eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
push ecx
push esi
mov esi, dword [ebp - 0x24]
push eax
push 0xc
lea eax, [ebp - 0x4c]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4169f0
push dword [ebp - 0x14]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 0xf
mov byte [edi], al
call fcn.00439eca
add esp, 4
test esi, esi
je 0x4168bc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4168bc
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x416a2f
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0xf
push eax
mov byte [edi], cl
call fcn.00439eca
add esp, 4
test esi, esi
je 0x4168bc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4168bc
lea edx, [ecx + eax]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416a37
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x64]
call fcn.00407530
cmp dword [ebp - 0x50], 0x10
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 0x54]
jb 0x416a65
mov edx, dword [ebp - 0x64]
lea ecx, [eax + edx]
add eax, edx
mov dword [ebp - 0x1c], ecx
mov esi, ecx
jmp 0x416a72
lea esi, [eax + ecx]
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x1c], esi
add eax, ecx
mov edx, ecx
push eax
push edx
mov edx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
lea ecx, [ebp - 0x30]
call fcn.0040e4d0
add esp, 8
lea edx, [ebp - 0x64]
cmp dword [ebp - 0x50], 0x10
mov eax, dword [eax]
mov ecx, eax
jb 0x416aab
mov edx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x64]
sub edx, eax
mov esi, dword [ebp - 0x54]
mov eax, esi
sub eax, ecx
cmp eax, edx
cmovb edx, eax
mov eax, dword [ebp - 0x64]
jmp 0x416ac0
sub ecx, edx
mov edx, esi
mov esi, dword [ebp - 0x54]
sub edx, eax
mov eax, esi
sub eax, ecx
cmp eax, edx
cmovb edx, eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x20], ecx
sub esi, edx
add ecx, eax
mov eax, esi
sub eax, dword [ebp - 0x20]
inc eax
push eax
lea eax, [ecx + edx]
push eax
push ecx
call sub.VCRUNTIME140.dll_memmove
push dword [ebp - 0x14]
xorps xmm0, xmm0
mov dword [ebp - 0x54], esi
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
movups xmm0, xmmword [ebp - 0x64]
mov dword [edi + 0x14], 0
mov byte [ebp - 0x64], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x54]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
call fcn.00439eca
add esp, 0x10
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x416b2b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x50]
cmp ecx, 0x10
jb 0x4168f0
mov edx, dword [ebp - 0x64]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4168e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4168e6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3