Function at 0x4087c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x84]
push str..PhysicalDrive_u
push eax
call fcn.004054c0
add esp, 0xc
lea eax, [ebp - 0x84]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
mov dword [ebp - 0x9c], edi
cmp edi, 0xffffffff
jne 0x40882b
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push ebx
push 8
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
call fcn.004f1588
mov ebx, eax
add esp, 4
mov dword [ebp - 0xa4], ebx
test ebx, ebx
je 0x408884
push 0
lea eax, [ebp - 0x94]
push eax
push 8
push ebx
push 0xc
lea eax, [ebp - 0x90]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x40889d
push ebx
call fcn.004ec0b7
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 4]
push esi
push eax
mov dword [ebp - 0xa0], eax
call fcn.004f1588
mov esi, eax
add esp, 4
test esi, esi
jne 0x4088d9
push ebx
call fcn.004ec0b7
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0xa0]
lea eax, [ebp - 0x90]
push esi
push 0xc
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x40892b
push ebx
call fcn.004ec0b7
push esi
call fcn.004ec0b7
add esp, 8
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
xor ecx, ecx
test eax, eax
je 0x408979
cmp byte [eax + esi], cl
je 0x408979
mov bl, byte [eax + esi]
lea edx, [eax + esi]
test bl, bl
je 0x408979
mov edi, dword [ebp - 0x98]
nop dword [eax]
cmp eax, dword [ebp - 0x94]
jge 0x408973
mov byte [edi + ecx], bl
inc ecx
cmp byte [edx], 0x20
jne 0x408968
cmp byte [eax + esi + 1], 0x20
je 0x408973
inc eax
mov bl, byte [eax + esi]
lea edx, [eax + esi]
test bl, bl
jne 0x408950
mov edi, dword [ebp - 0x9c]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4089bf
cmp byte [eax + esi], 0
je 0x4089bf
mov bl, byte [eax + esi]
lea edx, [eax + esi]
test bl, bl
je 0x4089bf
mov edi, dword [ebp - 0x98]
cmp eax, dword [ebp - 0x94]
jge 0x4089b9
mov byte [edi + ecx], bl
inc ecx
cmp byte [edx], 0x20
jne 0x4089ae
cmp byte [eax + esi + 1], 0x20
je 0x4089b9
inc eax
mov bl, byte [eax + esi]
lea edx, [eax + esi]
test bl, bl
jne 0x408996
mov edi, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x98]
push dword [ebp - 0xa4]
mov byte [eax + ecx], 0
call fcn.004ec0b7
push esi
call fcn.004ec0b7
add esp, 8
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.004e1f40
mov esp, ebp
pop ebp
ret