Function at 0x411a9c
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test esi, esi
je 0x411ab8
mov byte [esi], 0
test edi, edi
je 0x411abf
mov byte [edi], 0
cmp dword [ebp + 0x14], 0
je 0x411acb
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x411ad8
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 0
push esi
push edi
mov esi, 0x4effd8
lea edi, [ebp - 0x110]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
test ebx, ebx
je 0x411b3b
movsx eax, byte [ebx + 1]
cmp eax, 0x3a
jne 0x411b12
push ebx
push 0x5e5a8c
lea edx, [ebp - 0x110]
push edx
call fcn.004d75f8
add esp, 0xc
jmp 0x411b3b
push esi
push edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
lea esi, [ebp - 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0
push 0
push 3
push 0
push 1
push 0
lea eax, [ebp - 0x110]
push eax
call sub.KERNEL32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x411da9
xor eax, eax
mov dword [ebp - 0x124], eax
xor edx, edx
mov dword [ebp - 0x120], edx
push 0x104
push 0
lea ecx, [ebp - 0x110]
push ecx
call fcn.004d2d9c
add esp, 0xc
lea eax, [ebp - 0x110]
mov dword [ebp - 8], eax
xor edx, edx
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 0xc]
push 0
push ecx
lea eax, [ebp - 0x110]
push 0x104
push eax
lea edx, [ebp - 0x124]
push 0x11
push edx
push 0x2d1400
push ebx
call sub.KERNEL32.dll_DeviceIoControl
mov dword [ebp - 4], eax
push ebx
call sub.KERNEL32.dll_CloseHandle
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x411da9
test esi, esi
je 0x411c05
mov byte [esi], 0
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x411c05
mov eax, dword [ebp - 8]
push esi
add ebx, eax
push edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
test edi, edi
je 0x411c40
mov byte [edi], 0
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x411c40
mov eax, dword [ebp - 8]
push esi
add ebx, eax
push edi
xor eax, eax
mov esi, edi
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x411c84
mov edx, dword [ebp + 0x14]
mov byte [edx], 0
mov ecx, dword [ebp - 8]
mov ebx, dword [ecx + 0x14]
test ebx, ebx
je 0x411c84
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
add ebx, eax
push esi
push edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x411cc8
mov edx, dword [ebp + 0x18]
mov byte [edx], 0
mov ecx, dword [ebp - 8]
mov ebx, dword [ecx + 0x18]
test ebx, ebx
je 0x411cc8
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0x18]
add ebx, eax
push esi
push edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
test esi, esi
je 0x411da5
test edi, edi
jne 0x411da5
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x411da5
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x411da5
mov byte [esi], 0
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x411d1e
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0xc]
mov eax, dword [ebp - 8]
add ecx, eax
push ecx
push 0x5e5a93
push esi
call fcn.004d2f1c
pop ecx
add eax, esi
push eax
call fcn.004d75f8
add esp, 0xc
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x411d4b
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp - 8]
add edx, ecx
push edx
push 0x5e5a97
push esi
call fcn.004d2f1c
pop ecx
add eax, esi
push eax
call fcn.004d75f8
add esp, 0xc
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x14]
test edx, edx
je 0x411d78
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x14]
mov edx, dword [ebp - 8]
add eax, edx
push eax
push 0x5e5a9b
push esi
call fcn.004d2f1c
pop ecx
add eax, esi
push eax
call fcn.004d75f8
add esp, 0xc
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x411da5
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x18]
mov eax, dword [ebp - 8]
add ecx, eax
push ecx
push 0x5e5aa6
push esi
call fcn.004d2f1c
pop ecx
add esi, eax
push esi
call fcn.004d75f8
add esp, 0xc
mov al, 1
jmp 0x411dab
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret