Function at 0x434aa3
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x281c
call fcn.004932c0
mov eax, dword [0x659300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2810]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0xc
push ebx
push eax
mov dword [ebp - 0x2814], ebx
call fcn.00495f40
push 0x2800
lea eax, [ebp - 0x2804]
mov dword [ebp - 0x2810], ebx
push ebx
push eax
mov dword [ebp - 0x280c], ebx
call fcn.00495f40
add esp, 0x18
lea eax, [ebp - 0x2814]
push ebx
push eax
push 0x27ff
lea eax, [ebp - 0x2804]
push eax
push 0xc
lea eax, [ebp - 0x2810]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x434cfa
mov eax, dword [ebp - 0x2814]
xor esi, esi
and dword [ebp - 0x2818], esi
mov edx, dword [ebp - 0x27f4]
mov ebx, dword [ebp - 0x27f8]
mov dword [ebp - 0x281c], edx
cmp eax, 0x2800
jae 0x434d09
mov byte [ebp + eax - 0x2804], 0
mov ecx, dword [ebp - 0x27ec]
test ecx, ecx
je 0x434b88
cmp ecx, eax
jae 0x434b88
lea eax, [ebp - 0x2804]
add eax, ecx
push eax
call fcn.00430dec
mov dword [edi + 0x120], eax
mov eax, dword [ebp - 0x2814]
pop ecx
mov ecx, dword [ebp - 0x27f0]
test ecx, ecx
je 0x434bb1
cmp ecx, eax
jae 0x434bb1
lea eax, [ebp - 0x2804]
add eax, ecx
push eax
call fcn.00430dec
mov dword [edi + 0x124], eax
mov eax, dword [ebp - 0x2814]
pop ecx
test ebx, ebx
je 0x434bd0
cmp ebx, eax
jae 0x434bd0
lea eax, [ebp - 0x2804]
add eax, ebx
push eax
call fcn.004983b0
mov esi, eax
mov eax, dword [ebp - 0x2814]
pop ecx
mov ecx, dword [ebp - 0x281c]
test ecx, ecx
je 0x434bf5
cmp ecx, eax
jae 0x434bf5
lea eax, [ebp - 0x2804]
add eax, ecx
push eax
call fcn.004983b0
pop ecx
mov dword [ebp - 0x2818], eax
jmp 0x434bfb
mov eax, dword [ebp - 0x2818]
lea ecx, [eax + esi]
test ecx, ecx
je 0x434cfa
add ecx, 2
push ecx
call fcn.00430c9b
mov dword [edi + 0x11c], eax
pop ecx
mov byte [eax], 0
test esi, esi
je 0x434c76
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x2814]
ja 0x434c76
lea eax, [ebp - 0x2804]
push esi
add eax, ebx
push eax
push dword [edi + 0x11c]
call fcn.004960a0
mov eax, dword [edi + 0x11c]
lea ecx, [esi - 1]
add esp, 0xc
mov byte [esi + eax], 0
test ecx, ecx
js 0x434c6b
mov eax, dword [edi + 0x11c]
cmp byte [eax + ecx], 0x20
jne 0x434c62
sub ecx, 1
jns 0x434c57
test ecx, ecx
js 0x434c6b
inc ecx
mov byte [eax + ecx], 0x20
mov eax, dword [edi + 0x11c]
mov byte [eax + ecx + 1], 0
mov ecx, dword [ebp - 0x2818]
test ecx, ecx
je 0x434cd7
mov edx, dword [ebp - 0x281c]
lea eax, [ecx + edx]
cmp eax, dword [ebp - 0x2814]
ja 0x434cd7
push ecx
lea eax, [ebp - 0x2804]
add eax, edx
push eax
push dword [edi + 0x11c]
call fcn.004a04d0
push dword [edi + 0x11c]
call fcn.004983b0
mov ecx, eax
add esp, 0x10
sub ecx, 1
js 0x434ccc
mov eax, dword [edi + 0x11c]
cmp byte [eax + ecx], 0x20
jne 0x434ccc
sub ecx, 1
jns 0x434cc1
mov eax, dword [edi + 0x11c]
mov byte [eax + ecx + 1], 0
push dword [edi + 0x11c]
call fcn.004983b0
pop ecx
test eax, eax
jne 0x434cfa
push dword [edi + 0x11c]
call fcn.0049de67
and dword [edi + 0x11c], 0
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00492f9a
leave
ret
call fcn.00493744
int3