Function at 0x411034
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 0x411050
mov byte [esi], 0
test edi, edi
je 0x411057
mov byte [edi], 0
cmp dword [ebp + 0x14], 0
je 0x411063
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x411070
mov ecx, dword [ebp + 0x18]
mov byte [ecx], 0
push esi
push edi
mov esi, 0x4dd6d4
lea edi, [ebp - 0x110]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
test ebx, ebx
je 0x4110d3
movsx eax, byte [ebx + 1]
cmp eax, 0x3a
jne 0x4110aa
push ebx
push 0x5cb4e2
lea edx, [ebp - 0x110]
push edx
call fcn.004d1ac0
add esp, 0xc
jmp 0x4110d3
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 0x411341
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.004cd264
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 0x411341
test esi, esi
je 0x41119d
mov byte [esi], 0
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0xc]
test ebx, ebx
je 0x41119d
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 0x4111d8
mov byte [edi], 0
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x4111d8
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 0x41121c
mov edx, dword [ebp + 0x14]
mov byte [edx], 0
mov ecx, dword [ebp - 8]
mov ebx, dword [ecx + 0x14]
test ebx, ebx
je 0x41121c
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 0x411260
mov edx, dword [ebp + 0x18]
mov byte [edx], 0
mov ecx, dword [ebp - 8]
mov ebx, dword [ecx + 0x18]
test ebx, ebx
je 0x411260
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 0x41133d
test edi, edi
jne 0x41133d
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x41133d
mov edx, dword [ebp + 0x18]
test edx, edx
jne 0x41133d
mov byte [esi], 0
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4112b6
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0xc]
mov eax, dword [ebp - 8]
add ecx, eax
push ecx
push 0x5cb4e9
push esi
call fcn.004cd3e4
pop ecx
add eax, esi
push eax
call fcn.004d1ac0
add esp, 0xc
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x4112e3
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp - 8]
add edx, ecx
push edx
push 0x5cb4ed
push esi
call fcn.004cd3e4
pop ecx
add eax, esi
push eax
call fcn.004d1ac0
add esp, 0xc
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x14]
test edx, edx
je 0x411310
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x14]
mov edx, dword [ebp - 8]
add eax, edx
push eax
push 0x5cb4f1
push esi
call fcn.004cd3e4
pop ecx
add eax, esi
push eax
call fcn.004d1ac0
add esp, 0xc
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x41133d
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 0x18]
mov eax, dword [ebp - 8]
add ecx, eax
push ecx
push 0x5cb4fc
push esi
call fcn.004cd3e4
pop ecx
add esi, eax
push esi
call fcn.004d1ac0
add esp, 0xc
mov al, 1
jmp 0x411343
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret