Function at 0x41f540
Capabilities:
Get disk information via ioctl
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fdd48
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x52a51c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
push str.._
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x71], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00404ce0
mov eax, dword [ebp + 8]
movsx eax, al
push eax
mov dword [ebp - 4], 0
call fcn.004cb2dc
mov ecx, dword [ebp - 0x30]
add esp, 4
mov byte [ebp - 0x72], al
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
ja 0x41f5bf
push str.string_too_long
call fcn.004c790d
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
jbe 0x41f5d1
push str.string_too_long
call fcn.004c790d
mov edx, dword [ebp - 0x2c]
cmp edx, esi
jae 0x41f669
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00405280
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
test esi, esi
je 0x41f612
cmp edx, 0x10
lea eax, [ebp - 0x40]
mov dl, byte [ebp - 0x72]
cmovae eax, dword [ebp - 0x40]
mov byte [eax + ecx], dl
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x30], esi
cmovae eax, dword [ebp - 0x40]
mov byte [eax + esi], 0
push 1
push 0x510c50
lea ecx, [ebp - 0x40]
call fcn.00404960
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
cmovae eax, dword [ebp - 0x40]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call esi
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
jne 0x41f67f
cmp dword [ebp - 0x2c], 0x10
jb 0x41f8ab
push dword [ebp - 0x40]
call fcn.0044bc50
add esp, 4
jmp 0x41f8ab
test esi, esi
jne 0x41f5f0
cmp edx, 0x10
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
mov byte [eax], 0
jmp 0x41f612
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea ecx, [ebp - 0x80]
push 0
push ecx
push 0xc
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x68], 0
push ecx
push 0
push 0
push 0x2d1080
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
push eax
movq qword [ebp - 0x70], xmm0
call edi
test eax, eax
je 0x41f721
push dword [ebp - 0x6c]
lea eax, [ebp - 0x28]
mov byte [ebp - 0x28], 0
push str..PhysicalDrive_u
xorps xmm0, xmm0
mov word [ebp - 0x17], 0
push 0x14
push eax
movdqu xmmword [ebp - 0x27], xmm0
mov byte [ebp - 0x15], 0
call fcn.004ca352
add esp, 0x10
lea eax, [ebp - 0x28]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call esi
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x41f74f
push str.open_phy_disk_failed
push str.bar_svr_server_t::check_is_ssd
push 0x120
push str.d:_slaveworkspace_netdiskgamevirtualdiskserver_bar_svr_server.h
push 0x20
call fcn.0040eb60
add esp, 0x14
cmp dword [ebp - 0x2c], 0x10
jb 0x41f732
push dword [ebp - 0x40]
call fcn.0044bc50
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jmp 0x41f8a6
push 0x400
mov dword [ebp - 0x84], 0
call fcn.004c7e28
add esp, 4
mov esi, eax
push 0x400
push 0
push esi
call fcn.004ce8d0
add esp, 0xc
mov dword [esi + 4], 5
lea eax, [ebp - 0x84]
mov dword [ebp - 0x5c], 0
xorps xmm0, xmm0
movq qword [ebp - 0x64], xmm0
push 0
push eax
push 0x400
push esi
push 0xc
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0
push eax
push 0x2d1400
push dword [ebp - 0x78]
mov dword [ebp - 0x60], 0
call edi
test eax, eax
jne 0x41f7e2
push str.IoCtl_IOCTL_STORAGE_QUERY_PROPERTY_failed
push str.bar_svr_server_t::check_is_ssd
push 0x139
push str.d:_slaveworkspace_netdiskgamevirtualdiskserver_bar_svr_server.h
push 0x20
call fcn.0040eb60
add esp, 0x14
jmp 0x41f86f
mov edx, dword [esi + 0x10]
add edx, esi
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp byte [edx], 0
jne 0x41f802
xor ecx, ecx
jmp 0x41f810
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f807
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.00404ce0
push 3
push ecx
push 0x5118c8
lea ecx, [ebp - 0x58]
call fcn.004398b0
cmp eax, 0xffffffff
jne 0x41f848
push 3
push ecx
push 0x5118cc
lea ecx, [ebp - 0x58]
call fcn.004398b0
mov byte [ebp - 0x71], 0
cmp eax, 0xffffffff
je 0x41f84c
mov byte [ebp - 0x71], 1
cmp dword [ebp - 0x44], 0x10
jb 0x41f85d
push dword [ebp - 0x58]
call fcn.0044bc50
add esp, 4
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp dword [ebp - 0x2c], 0x10
jb 0x41f880
push dword [ebp - 0x40]
call fcn.0044bc50
add esp, 4
push esi
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
call fcn.004ca225
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push dword [ebp - 0x78]
call esi
push dword [ebp - 0x7c]
call esi
mov al, byte [ebp - 0x71]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c8a23
mov esp, ebp
pop ebp
ret 4