Function at 0x411f10
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46254d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x47a0bc]
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 0x411fdd
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 0x411fbf
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x411fb5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41222b
push ecx
push edx
call fcn.0045fabc
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.0045faca
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x54], fcn.00411ea0
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 0x412059
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 0x411f8b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411f8b
mov eax, dword [ebp - 0x40]
push eax
mov dword [ebp - 0x20], eax
call fcn.00460586
mov edi, eax
mov dword [ebp - 0x30], eax
add esp, 4
test edi, edi
je 0x412081
push dword [ebp - 0x20]
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x412086
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 0x4120e2
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 0x4120ce
push edi
call fcn.0046058f
add esp, 4
test ebx, ebx
je 0x411f8b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411f8b
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x41211a
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.0046058f
add esp, 4
test ebx, ebx
je 0x411f8b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411f8b
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 0x412124
sub edi, ecx
mov eax, closesocket
mov ecx, dword [ebp + 0x1c]
sub eax, ecx
mov dword [ebp - 0x3c], ecx
cmp eax, edi
jb 0x412231
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 0x4121b8
mov ecx, 0x10
mov eax, edx
cmp edx, ecx
cmovb eax, ecx
or eax, 0xf
cmp eax, 0x7fffffff
jbe 0x412195
mov eax, closesocket
jmp 0x41219f
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.0046058f
add esp, 0x1c
test ebx, ebx
je 0x4121f9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x20]
cmp ecx, 0x10
jb 0x411fbf
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x411fb5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x411fb5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.00401460
int3