Function at 0x495540
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2cdc
call fcn.004a1a50
push ebx
push esi
push edi
xor edi, edi
lea eax, [esp + 0x3d8]
push edi
push 0x5c37a8
push eax
mov ebx, edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x3d8]
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x495852
push 0x2710
xorps xmm0, xmm0
mov dword [esp + 0x14], edi
lea eax, [esp + 0x5dc]
movq qword [esp + 0x20], xmm0
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.0052edb0
add esp, 0xc
lea eax, [esp + 0x10]
push edi
push eax
push 0x2710
lea eax, [esp + 0x5e4]
push eax
push 0xc
lea eax, [esp + 0x30]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x49584b
push 0x80
lea eax, [esp + 0x35c]
push edi
push eax
call fcn.0052edb0
push 0x80
lea eax, [esp + 0x268]
push edi
push eax
call fcn.0052edb0
push 0x80
lea eax, [esp + 0x1f4]
push edi
push eax
call fcn.0052edb0
push 0x80
lea eax, [esp + 0x300]
push edi
push eax
call fcn.0052edb0
mov edx, dword [esp + 0x614]
lea eax, [esp + 0x208]
add esp, 0x30
push eax
push ecx
lea ecx, [esp + 0x5e0]
call fcn.00495300
mov edx, dword [esp + 0x5f0]
lea eax, [esp + 0x260]
add esp, 8
push eax
push ecx
lea ecx, [esp + 0x5e0]
call fcn.00495300
mov edx, dword [esp + 0x5f4]
lea eax, [esp + 0x2e0]
add esp, 8
push eax
push ecx
lea ecx, [esp + 0x5e0]
call fcn.00495300
mov edx, dword [esp + 0x5f8]
lea eax, [esp + 0x360]
add esp, 8
push eax
push ecx
lea ecx, [esp + 0x5e0]
call fcn.00495300
push 0x1a0
lea eax, [esp + 0x3c]
mov dword [esp + 0x1dc], edi
xorps xmm0, xmm0
push edi
push eax
movlpd qword [esp + 0x3c], xmm0
call fcn.0052edb0
lea ecx, [esp + 0x1ec]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4956e5
sub ecx, edx
je 0x495704
xor ecx, ecx
mov al, byte [esp + ecx + 0x1d8]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x4f], al
test al, al
jne 0x4956f2
lea ecx, [esp + 0x258]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x495710
sub ecx, edx
je 0x49574e
lea edx, [esp + 0x258]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x495724
lea edi, [esp + 0x50]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x495732
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
xor edi, edi
xor ecx, ecx
mov al, byte [esp + ecx + 0x2d8]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x14f], al
test al, al
jne 0x495750
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esp + ecx + 0x358]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0xcf], al
test al, al
jne 0x495770
lea ecx, [esp + 0xd0]
call fcn.00495470
lea ecx, [esp + 0x50]
call fcn.00495470
lea ecx, [esp + 0x150]
call fcn.00495470
push 0x2710
lea eax, [esp + 0x5dc]
push 0
push eax
call fcn.0052edb0
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push eax
push 0x2710
lea eax, [esp + 0x5e4]
push eax
push 0
push 0
push 0x700a0
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x49584b
cmp dword [esp + 0x5e0], 0xc
mov eax, dword [esp + 0x5f0]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x5f4]
mov dword [esp + 0x2c], eax
jne 0x49584b
lea edx, [esp + 0xd0]
mov dword [esp + 0x1d0], 2
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x495820
sub edx, ecx
xor ecx, ecx
test edx, edx
jle 0x495842
nop
movsx ax, byte [esp + ecx + 0xd0]
mov word [ebx + ecx*2], ax
inc ecx
cmp ecx, edx
jl 0x495830
xor eax, eax
mov word [ebx + edx*2], ax
lea edi, [eax + 1]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret