Function at 0x411750
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461bcd
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4790bc]
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 0x463f20
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41181d
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 0x4117ff
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4117f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411a6b
push ecx
push edx
call fcn.0045f2e0
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.0045f2ee
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x54], fcn.004116e0
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 0x411899
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 0x4117cb
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4117cb
mov eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x20], eax
call fcn.0045f76d
mov edi, eax
mov dword [ebp - 0x30], eax
add esp, 4
test edi, edi
je 0x4118c1
push dword [ebp - 0x20]
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x4118c6
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 0x411922
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 0x41190e
push edi
call fcn.0045f776
add esp, 4
test ebx, ebx
je 0x4117cb
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4117cb
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x41195a
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.0045f776
add esp, 4
test ebx, ebx
je 0x4117cb
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4117cb
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 0x411964
sub edi, ecx
mov eax, closesocket
mov ecx, dword [ebp + 0x1c]
sub eax, ecx
mov dword [ebp - 0x3c], ecx
cmp eax, edi
jb 0x411a71
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 0x4119f8
mov ecx, 0x10
mov eax, edx
cmp edx, ecx
cmovb eax, ecx
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x4119d5
mov eax, closesocket
jmp 0x4119df
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.0045f776
add esp, 0x1c
test ebx, ebx
je 0x411a39
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x20]
cmp ecx, 0x10
jb 0x4117ff
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4117f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4117f5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00401460
int3