Function at 0x40e5b0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e4dd
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4750bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], esi
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 ebx, eax
cmp ebx, 0xffffffff
jne 0x40e67d
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov ecx, dword [ebp + 0x20]
cmp ecx, 0x10
jb 0x40e65f
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e655
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e8cb
push ecx
push edx
call fcn.0045bf3a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045bf48
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x54], fcn.0040e540
mov dword [ebp - 0x50], ebx
push 0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
push 8
lea eax, [ebp - 0x44]
mov dword [ebp - 0x14], 0
push eax
push 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x2d1400
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push ebx
movlpd qword [ebp - 0x44], xmm0
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40e6f9
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
test ebx, ebx
je 0x40e62b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e62b
mov eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x20], eax
call fcn.0045c3c7
mov edi, eax
mov dword [ebp - 0x30], eax
add esp, 4
test edi, edi
je 0x40e721
push dword [ebp - 0x20]
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x40e726
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x4c], edi
push 0
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push edi
push 0xc
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40e782
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
test edi, edi
je 0x40e76e
push edi
call fcn.0045c3d0
add esp, 4
test ebx, ebx
je 0x40e62b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e62b
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x40e7ba
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
push edi
mov byte [esi], al
call fcn.0045c3d0
add esp, 4
test ebx, ebx
je 0x40e62b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e62b
add eax, edi
mov edi, eax
mov dword [ebp - 0x38], eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x40e7c4
sub edi, ecx
mov eax, closesocket
mov ecx, dword [ebp + 0x1c]
sub eax, ecx
mov dword [ebp - 0x3c], ecx
cmp eax, edi
jb 0x40e8d1
cmp dword [ebp + 0x20], 0x10
lea eax, [ebp + 0xc]
lea edx, [ecx + edi]
mov dword [esi], 0
cmovae eax, dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 0x34], eax
mov eax, 0xf
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], ecx
cmp edx, eax
jbe 0x40e858
mov ecx, 0x10
mov eax, edx
cmp edx, ecx
cmovb eax, ecx
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x40e835
mov eax, closesocket
jmp 0x40e83f
mov ecx, 0x16
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x28], eax
mov ecx, esi
inc eax
push eax
call fcn.00401530
mov edx, dword [ebp - 0x2c]
mov ecx, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], ecx
mov dword [esi], ecx
push edi
push dword [ebp - 0x38]
mov dword [esi + 0x10], edx
push ecx
mov dword [esi + 0x14], eax
call sub.VCRUNTIME140.dll_memcpy
push dword [ebp - 0x3c]
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x34]
add eax, edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
push dword [ebp - 0x30]
mov byte [eax + ecx], 0
call fcn.0045c3d0
add esp, 0x1c
test ebx, ebx
je 0x40e899
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x20]
cmp ecx, 0x10
jb 0x40e65f
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e655
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40e655
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00401460
int3