Function at 0x401e40
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415f90
mov eax, dword fs:[0]
push eax
sub esp, 0x758
mov eax, dword [0x41b0ac]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.004026e0
mov dword [ebp - 0x10], 0xffffffff
xor eax, eax
mov word [ebp - 0xdc], ax
push 0xc6
push 0
lea ecx, [ebp - 0xda]
push ecx
call fcn.00407a70
add esp, 0xc
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xe8], 0
jmp 0x401ec9
mov edx, dword [ebp - 0xe8]
add edx, 1
mov dword [ebp - 0xe8], edx
cmp dword [ebp - 0xe8], 0x40
jge 0x4022af
xor eax, eax
mov word [ebp - 0x304], ax
push 0x1fe
push 0
lea ecx, [ebp - 0x302]
push ecx
call fcn.00407a70
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x104], edx
mov dword [ebp - 0x100], edx
mov dword [ebp - 0xfc], edx
mov dword [ebp - 0xf8], edx
mov dword [ebp - 0xf4], edx
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0xe8]
push eax
push str..PhysicalDrive_d
lea ecx, [ebp - 0xdc]
push ecx
call fcn.00402570
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea edx, [ebp - 0xdc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x401f61
cmp dword [ebp - 0x10], 0
jne 0x401f66
jmp 0x402261
mov dword [ebp - 0x320], 0x10000
push 0x18
push 0
lea eax, [ebp - 0x31c]
push eax
call fcn.00407a70
add esp, 0xc
push 0
lea ecx, [ebp - 0x320]
push ecx
push 0x18
lea edx, [ebp - 0x31c]
push edx
push 0
push 0
push 0x70000
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x401fb1
jmp 0x402259
cmp dword [ebp - 0x314], 0xc
je 0x401fbf
jmp 0x402259
mov dword [ebp - 0x320], 0x10000
push 0xc
push 0
lea ecx, [ebp - 0x330]
push ecx
call fcn.00407a70
add esp, 0xc
mov dword [ebp - 0x330], 0
mov dword [ebp - 0x32c], 0
mov edx, dword [ebp - 0x320]
push edx
call fcn.00407969
add esp, 4
mov dword [ebp - 0x760], eax
mov eax, dword [ebp - 0x760]
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0xe4], 0
jne 0x40201f
jmp 0x402261
mov ecx, dword [ebp - 0x320]
push ecx
push 0
mov edx, dword [ebp - 0xe4]
push edx
call fcn.00407a70
add esp, 0xc
mov eax, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0x320]
mov dword [eax + 4], ecx
push 0
lea edx, [ebp - 0x320]
push edx
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0xe4]
push edx
push 0xc
lea eax, [ebp - 0x330]
push eax
push 0x2d1400
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x402081
jmp 0x402261
mov edx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0xe4]
add eax, dword [edx + 0x18]
mov dword [ebp - 0x758], eax
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebp - 0xe4]
add edx, dword [ecx + 0xc]
mov dword [ebp - 0x75c], edx
mov eax, dword [ebp - 0xe4]
mov ecx, dword [ebp - 0xe4]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x334], ecx
mov edx, dword [ebp - 0xe4]
mov eax, dword [ebp - 0xe4]
add eax, dword [edx + 0x14]
mov dword [ebp - 0x324], eax
mov byte [ebp - 0x754], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x753]
push ecx
call fcn.00407a70
add esp, 0xc
mov edx, dword [ebp - 0xe4]
cmp dword [edx + 0xc], 0
je 0x40212a
mov eax, dword [ebp - 0xe4]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [ebp - 0x320]
jae 0x40212a
mov edx, dword [ebp - 0x75c]
push edx
push 0x400
lea eax, [ebp - 0x754]
push eax
call fcn.00407f83
add esp, 0xc
mov ecx, dword [ebp - 0xe4]
cmp dword [ecx + 0x10], 0
je 0x402162
mov edx, dword [ebp - 0xe4]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp - 0x320]
jae 0x402162
mov ecx, dword [ebp - 0x334]
push ecx
push 0x400
lea edx, [ebp - 0x754]
push edx
call fcn.00407f83
add esp, 0xc
mov eax, dword [ebp - 0xe4]
cmp dword [eax + 0x14], 0
je 0x40219a
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ecx + 0x14]
cmp edx, dword [ebp - 0x320]
jae 0x40219a
mov eax, dword [ebp - 0x324]
push eax
push 0x400
lea ecx, [ebp - 0x754]
push ecx
call fcn.00407f83
add esp, 0xc
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0x104], edx
mov eax, dword [ebp - 0x308]
mov dword [ebp - 0xf4], eax
mov ecx, dword [ebp - 0x310]
xor edx, edx
push edx
push ecx
mov eax, dword [ebp - 0x318]
push eax
mov ecx, dword [ebp - 0x31c]
push ecx
call fcn.00408000
mov ecx, dword [ebp - 0x30c]
xor esi, esi
push esi
push ecx
push edx
push eax
call fcn.00408000
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], edx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00401d80
add esp, 4
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0x754]
push eax
lea ecx, [ebp - 0x350]
push ecx
call fcn.00401c40
add esp, 8
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x350]
call fcn.004026c0
push eax
lea edx, [ebp - 0x304]
push edx
call fcn.00404440
add esp, 0xc
lea eax, [ebp - 0x304]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402740
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x350]
call fcn.00402660
xor ecx, ecx
jne 0x401f1b
cmp dword [ebp - 0xe4], 0
je 0x40228f
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0x764], edx
mov eax, dword [ebp - 0x764]
push eax
call fcn.00407f6d
add esp, 4
mov dword [ebp - 0xe4], 0
cmp dword [ebp - 0x10], 0xffffffff
je 0x4022a8
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0xffffffff
jmp 0x4022aa
jmp 0x4022af
jmp 0x401eba
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407a5c
mov esp, ebp
pop ebp
ret