Function at 0x413620
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e122
mov eax, dword fs:[0]
push eax
mov eax, 0x37d0
call fcn.00519090
mov eax, dword [0x5b7de4]
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 dword [ebp - 0x37d0], ecx
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x37dc], esi
mov dword [ebp - 0x37d4], 0
push 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push 0x5707b4
mov dword [ebp - 4], 0
mov byte [esi], 0
call fcn.0040a4a0
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x37d4], 1
push edi
push str..PhysicalDrive_d
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.0041aca0
add esp, 0x10
lea eax, [ebp - 0x110]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4138f7
push 0x2710
lea eax, [ebp - 0x37c0]
mov dword [ebp - 0x37d8], 0
push 0
push eax
mov dword [ebp - 0x37c4], 0
mov dword [ebp - 0x37cc], 0
mov dword [ebp - 0x37c8], 0
call fcn.00530cf0
add esp, 0xc
lea eax, [ebp - 0x37d8]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37c0]
push eax
push 0xc
lea eax, [ebp - 0x37cc]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4138e6
push 0x3e8
lea eax, [ebp - 0x10b0]
push 0
push eax
call fcn.00530cf0
push 0x3e8
lea eax, [ebp - 0x8e0]
push 0
push eax
call fcn.00530cf0
push 0x3e8
lea eax, [ebp - 0x4f8]
push 0
push eax
call fcn.00530cf0
push 0x3e8
lea eax, [ebp - 0xcc8]
push 0
push eax
call fcn.00530cf0
mov ecx, dword [ebp - 0x37d0]
lea eax, [ebp - 0x4f8]
add esp, 0x30
push eax
lea eax, [ebp - 0x37c0]
push eax
push 0
push dword [ebp - 0x37b4]
call fcn.00413310
mov ecx, dword [ebp - 0x37d0]
lea eax, [ebp - 0x8e0]
push eax
lea eax, [ebp - 0x37c0]
push eax
push 0
push dword [ebp - 0x37b0]
call fcn.00413310
mov ecx, dword [ebp - 0x37d0]
lea eax, [ebp - 0xcc8]
push eax
lea eax, [ebp - 0x37c0]
push eax
push 0
push dword [ebp - 0x37ac]
call fcn.00413310
mov ecx, dword [ebp - 0x37d0]
lea eax, [ebp - 0x10b0]
push eax
lea eax, [ebp - 0x37c0]
push eax
push 0
push dword [ebp - 0x37a8]
call fcn.00413310
lea ecx, [ebp - 0x4f8]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413830
sub ecx, edx
lea eax, [ebp - 0x4f8]
push ecx
push eax
mov ecx, esi
call fcn.0040a340
push 1
push 0x571e74
mov ecx, esi
call fcn.0040a340
lea ecx, [ebp - 0x8e0]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413860
sub ecx, edx
lea eax, [ebp - 0x8e0]
push ecx
push eax
mov ecx, esi
call fcn.0040a340
push 1
push 0x571e74
mov ecx, esi
call fcn.0040a340
lea ecx, [ebp - 0xcc8]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x413890
sub ecx, edx
lea eax, [ebp - 0xcc8]
push ecx
push eax
mov ecx, esi
call fcn.0040a340
push 1
push 0x571e74
mov ecx, esi
call fcn.0040a340
lea eax, [ebp - 0x10b0]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4138c0
sub eax, edx
mov ecx, esi
push eax
lea eax, [ebp - 0x10b0]
push eax
call fcn.0040a340
push 1
push 0x571e74
mov ecx, esi
call fcn.0040a340
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, 0xa
jl 0x4136a4
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.005189ad
mov esp, ebp
pop ebp
ret 4