Function at 0x4108c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x460b8d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4780bc]
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 0x462f50
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41098d
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 0x41096f
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410965
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410bdb
push ecx
push edx
call fcn.0045e420
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.0045e42e
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x54], fcn.00410850
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 0x410a09
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 0x41093b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41093b
mov eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x20], eax
call fcn.0045e8ad
mov edi, eax
mov dword [ebp - 0x30], eax
add esp, 4
test edi, edi
je 0x410a31
push dword [ebp - 0x20]
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x410a36
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 0x410a92
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 0x410a7e
push edi
call fcn.0045e8b6
add esp, 4
test ebx, ebx
je 0x41093b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41093b
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x410aca
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.0045e8b6
add esp, 4
test ebx, ebx
je 0x41093b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41093b
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 0x410ad4
sub edi, ecx
mov eax, closesocket
mov ecx, dword [ebp + 0x1c]
sub eax, ecx
mov dword [ebp - 0x3c], ecx
cmp eax, edi
jb 0x410be1
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 0x410b68
mov ecx, 0x10
mov eax, edx
cmp edx, ecx
cmovb eax, ecx
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x410b45
mov eax, closesocket
jmp 0x410b4f
mov ecx, 0x16
cmp eax, ecx
cmovb eax, ecx
mov dword [ebp - 0x28], eax
mov ecx, esi
inc eax
push eax
call fcn.00401840
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.0045e8b6
add esp, 0x1c
test ebx, ebx
je 0x410ba9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x20]
cmp ecx, 0x10
jb 0x41096f
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x410965
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x410965
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00401770
int3