Function at 0x414280
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55eaab
mov eax, dword fs:[0]
push eax
mov eax, 0x3944
call fcn.00498a90
mov eax, dword [0x5b0514]
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 ebx, ecx
push 0x400
xor edi, edi
lea eax, [ebp - 0x3950]
push edi
push eax
call fcn.00521a60
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x3534], esi
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x610]
push 0x100
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x610]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
jne 0x414554
push 0x2710
lea eax, [ebp - 0x3520]
mov dword [ebp - 0x3524], 0
push 0
push eax
mov dword [ebp - 0x3528], 0
mov dword [ebp - 0x3530], 0
mov dword [ebp - 0x352c], 0
call fcn.00521a60
add esp, 0xc
lea eax, [ebp - 0x3524]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x3520]
push eax
push 0xc
lea eax, [ebp - 0x3530]
push eax
push 0x2d1400
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x414546
mov eax, dword [ebp - 0x3504]
cmp eax, 7
je 0x414554
cmp eax, 4
je 0x414554
cmp eax, 0xc
je 0x414554
cmp eax, 0xd
je 0x414554
push 0x400
lea eax, [ebp - 0xe10]
push 0
push eax
call fcn.00521a60
add esp, 0xc
lea eax, [ebp - 0x410]
push 0x400
push 0
push eax
call fcn.00521a60
add esp, 0xc
lea eax, [ebp - 0xa10]
push 0x400
push 0
push eax
call fcn.00521a60
mov edx, dword [ebp - 0x3510]
lea eax, [ebp - 0xe10]
add esp, 0xc
lea ecx, [ebp - 0x3520]
push eax
push 0
call fcn.00414100
mov edx, dword [ebp - 0x350c]
lea eax, [ebp - 0xa10]
push eax
push 0
lea ecx, [ebp - 0x3520]
call fcn.00414100
mov edx, dword [ebp - 0x3508]
lea eax, [ebp - 0x410]
push eax
push 1
lea ecx, [ebp - 0x3520]
call fcn.00414100
add esp, 0x18
cmp byte [ebp - 0x3950], 0
jne 0x41454c
movsx eax, byte [ebp - 0x410]
push eax
call fcn.0052a595
add esp, 4
test eax, eax
jne 0x414477
movsx eax, byte [ebp - 0x3fd]
push eax
call fcn.0052a595
add esp, 4
test eax, eax
je 0x41454c
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0xa10]
push eax
lea eax, [ebp - 0xe10]
push eax
lea eax, [ebp - 0x3550]
push str._s_s_s_
push eax
call fcn.004135d0
add esp, 0x14
mov dword [ebp - 4], 0
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x4144b1
mov ecx, dword [eax]
mov edi, dword [eax + 0x10]
mov esi, dword [ebx + 0x14]
mov eax, esi
mov edx, dword [ebx + 0x10]
sub eax, edx
cmp edi, eax
ja 0x4144e5
lea eax, [edx + edi]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp esi, 0x10
jb 0x4144d1
mov eax, dword [ebx]
push edi
lea esi, [eax + edx]
push ecx
push esi
call fcn.005214e0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x4144fc
push edi
push ecx
mov byte [ebp - 0x3538], 0
mov ecx, ebx
push dword [ebp - 0x3538]
push edi
call fcn.00406000
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x353c]
cmp edx, 0x10
jb 0x414539
mov ecx, dword [ebp - 0x3550]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41452f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414582
push edx
push ecx
call fcn.00497d51
add esp, 8
mov esi, dword [ebp - 0x3534]
mov edi, 1
jmp 0x41454c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc esi
mov dword [ebp - 0x3534], esi
cmp esi, 0x10
jl 0x4142d3
mov eax, edi
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.00497d40
mov esp, ebp
pop ebp
ret
call fcn.00524a29
int3