Function at 0x408800
Capabilities:
Get storage device properties

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a975
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x90
mov dword [ebp - 0x14], 0
mov ecx, 0x55be7a
call fcn.0051a674
xor eax, eax
mov byte [ebp - 0x19], al
xor ecx, ecx
mov byte [ebp - 0x1a], cl
xor edx, edx
mov byte [ebp - 0x1b], dl
movzx eax, byte [ebp - 0x19]
push eax
movzx ecx, byte [ebp - 0x1a]
push ecx
movzx edx, byte [ebp - 0x1b]
push edx
lea ecx, [ebp - 0xa0]
call fcn.00411e90
mov ecx, eax
call fcn.0040caf0
push eax
lea ecx, [ebp - 0x18]
call fcn.0040ff00
mov dword [ebp - 4], 0
movzx eax, byte [ebx + 0xc]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040fce0
push 0x54401c
lea ecx, [ebp - 0x18]
call fcn.0040fd10
push 0
push 0
push 3
push 0
push 3
push 0
lea ecx, [ebp - 0x18]
call fcn.004100c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
jne 0x4088f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x78], eax
push 0x543beb
mov ecx, dword [ebx + 8]
call fcn.00403f30
mov ecx, dword [ebp - 0x14]
or ecx, 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040fee0
mov eax, dword [ebx + 8]
jmp 0x408b36
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
xor eax, eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
push 0
lea ecx, [ebp - 0x48]
push ecx
push 8
lea edx, [ebp - 0x74]
push edx
push 0xc
lea eax, [ebp - 0x44]
push eax
push 0x2d1400
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x40896a
mov ecx, dword [ebx + 8]
call fcn.00403fb0
mov edx, dword [ebp - 0x14]
or edx, 1
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040fee0
mov eax, dword [ebx + 8]
jmp 0x408b36
lea ecx, [ebp - 0x29]
call fcn.0040eb90
push eax
mov eax, dword [ebp - 0x70]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040eb50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040ea60
mov dword [ebp - 0x4c], eax
push 0
lea ecx, [ebp - 0x28]
call fcn.0040ea30
mov dword [ebp - 0x50], eax
push 0
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x50]
push eax
push 0xc
lea ecx, [ebp - 0x44]
push ecx
push 0x2d1400
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x4089fb
mov ecx, dword [ebx + 8]
call fcn.00403fb0
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040eb30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040fee0
mov eax, dword [ebx + 8]
jmp 0x408b36
push 0
lea ecx, [ebp - 0x28]
call fcn.0040ea30
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x38], edx
lea ecx, [ebp - 0x28]
call fcn.0040ea60
cmp dword [ebp - 0x38], eax
jb 0x408a52
mov ecx, dword [ebx + 8]
call fcn.00403fb0
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040eb30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040fee0
mov eax, dword [ebx + 8]
jmp 0x408b36
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040eae0
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x58]
call fcn.0040e9b0
mov byte [ebp - 0x1c], 0
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040ea90
mov edx, dword [eax]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x64]
push eax
lea ecx, [ebp - 0x68]
push ecx
call fcn.00411ee0
add esp, 0x10
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040ea90
push eax
lea ecx, [ebp - 0x68]
call fcn.0040e9e0
movzx eax, al
test eax, eax
je 0x408af4
mov ecx, dword [ebx + 8]
call fcn.00403fb0
mov ecx, dword [ebp - 0x14]
or ecx, 1
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040eb30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040fee0
mov eax, dword [ebx + 8]
jmp 0x408b36
mov edx, dword [ebp - 0x38]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040ea30
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebx + 8]
call fcn.00403f30
mov ecx, dword [ebp - 0x14]
or ecx, 1
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040eb30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040fee0
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret