Function at 0x40d480
Capabilities:
Get storage device properties

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x411d2b
push eax
mov eax, 0x2774
mov dword fs:[0], esp
call fcn.0040fab0
mov al, byte [esp + 7]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0
mov byte [esp + 0x24], al
call fcn.00409e60
mov edi, str.._
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x24]
push ebx
call fcn.00403cf0
test al, al
je 0x40d504
mov edi, dword [esp + 0x24]
mov ecx, ebx
mov edx, ecx
mov esi, str.._
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call fcn.00409eb0
mov eax, dword [esp + 0x2794]
lea ecx, [esp + 0x20]
push eax
push 1
mov dword [esp + 0x2794], 0
call fcn.0040a850
mov edi, 0x418960
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x418960
lea ecx, [esp + 0x28]
call fcn.0040e390
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40d54d
mov eax, 0x4126d8
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x40d7d4
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x40], ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x44], ecx
push eax
mov dword [esp + 0x4c], ecx
push edx
mov dword [esp + 0x54], ecx
push 0x18
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x48]
push ecx
push eax
push eax
push 0x70000
push esi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
jne 0x40d7cd
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x44]
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push 0x41895c
lea eax, [esp + 0x5c]
push 0x20
push eax
call sub.MSVCRT.dll__snprintf
lea edi, [esp + 0x64]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00403cf0
test al, al
je 0x40d620
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x54]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x30], ecx
xor eax, eax
mov dword [esp + 0x34], ecx
lea edi, [esp + 0x75]
mov dword [esp + 0x38], ecx
mov ecx, 0x9c3
mov byte [esp + 0x74], dl
mov esi, dword [esp + 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
push edx
lea edx, [esp + 0x1c]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x7c]
push 0x2710
push eax
lea ecx, [esp + 0x40]
push 0xc
push ecx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40d7cd
mov eax, dword [esp + 0x84]
test eax, eax
je 0x40d6cc
lea esi, [esp + eax + 0x74]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebp + 0x10]
mov edi, ecx
push 1
push edi
mov ecx, ebx
mov dword [esp + 0x18], edi
call fcn.00403cf0
test al, al
je 0x40d6cc
mov ecx, edi
mov edi, dword [ebx + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x40d71d
lea esi, [esp + eax + 0x74]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebp + 0x20]
mov edi, ecx
push 1
push edi
mov ecx, ebx
mov dword [esp + 0x18], edi
call fcn.00403cf0
test al, al
je 0x40d71d
mov ecx, edi
mov edi, dword [ebx + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x80]
test eax, eax
je 0x40d76e
lea esi, [esp + eax + 0x74]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebp + 0x30]
mov edi, ecx
push 1
push edi
mov ecx, ebx
mov dword [esp + 0x18], edi
call fcn.00403cf0
test al, al
je 0x40d76e
mov ecx, edi
mov edi, dword [ebx + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x88]
test eax, eax
je 0x40d7b9
lea esi, [esp + eax + 0x74]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
add ebp, 0x40
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
push ebx
call fcn.00403cf0
test al, al
je 0x40d7b9
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [eax + ebx], 0
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x1c]
xor ecx, ecx
cmp eax, 0xc
sete cl
mov dword [esp + 0x10], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
test ecx, ecx
pop ebx
je 0x40d7fc
mov al, byte [ecx - 1]
test al, al
je 0x40d7f2
cmp al, 0xff
je 0x40d7f2
dec al
mov byte [ecx - 1], al
jmp 0x40d7fc
dec ecx
push ecx
call fcn.0040e562
add esp, 4
mov ecx, dword [esp + 0x2774]
mov eax, dword [esp]
mov dword fs:[0], ecx
add esp, 0x2780
ret 4