Function at 0x4111b4
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 0x4111d0
mov byte [esi], 0
test edi, edi
je 0x4111d7
mov byte [edi], 0
cmp dword [ebp + 0x14], 0
je 0x4111e3
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x4111f0
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 0
push esi
push edi
mov esi, 0x4de714
lea edi, [ebp - 0x110]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
test ebx, ebx
je 0x411253
movsx eax, byte [ebx + 1]
cmp eax, 0x3a
jne 0x41122a
push ebx
push 0x5ccaa2
lea edx, [ebp - 0x110]
push edx
call fcn.004d26c8
add esp, 0xc
jmp 0x411253
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 0x4114c1
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.004cde6c
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 0x4114c1
test esi, esi
je 0x41131d
mov byte [esi], 0
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x41131d
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 0x411358
mov byte [edi], 0
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x411358
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 0x41139c
mov edx, dword [ebp + 0x14]
mov byte [edx], 0
mov ecx, dword [ebp - 8]
mov ebx, dword [ecx + 0x14]
test ebx, ebx
je 0x41139c
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 0x4113e0
mov edx, dword [ebp + 0x18]
mov byte [edx], 0
mov ecx, dword [ebp - 8]
mov ebx, dword [ecx + 0x18]
test ebx, ebx
je 0x4113e0
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 0x4114bd
test edi, edi
jne 0x4114bd
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x4114bd
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x4114bd
mov byte [esi], 0
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x411436
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0xc]
mov eax, dword [ebp - 8]
add ecx, eax
push ecx
push 0x5ccaa9
push esi
call fcn.004cdfec
pop ecx
add eax, esi
push eax
call fcn.004d26c8
add esp, 0xc
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x411463
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp - 8]
add edx, ecx
push edx
push 0x5ccaad
push esi
call fcn.004cdfec
pop ecx
add eax, esi
push eax
call fcn.004d26c8
add esp, 0xc
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x14]
test edx, edx
je 0x411490
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x14]
mov edx, dword [ebp - 8]
add eax, edx
push eax
push 0x5ccab1
push esi
call fcn.004cdfec
pop ecx
add eax, esi
push eax
call fcn.004d26c8
add esp, 0xc
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4114bd
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x18]
mov eax, dword [ebp - 8]
add ecx, eax
push ecx
push 0x5ccabc
push esi
call fcn.004cdfec
pop ecx
add esi, eax
push esi
call fcn.004d26c8
add esp, 0xc
mov al, 1
jmp 0x4114c3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret