Function at 0x523264
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x586
push 0
push 0
dec ecx
jne 0x52326c
push ebx
push esi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x523559
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x2bf8], 0
cmp esi, 0xffffffff
je 0x5234f5
xor eax, eax
push ebp
push 0x5234ee
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2bf7]
mov edx, 0x27f7
call fcn.00408390
lea eax, [ebp - 0x400]
mov edx, 0x400
call fcn.00408390
mov byte [ebp - 0x400], 0
mov byte [ebp - 0x3ff], 0
push 0
lea eax, [ebp - 0x2bfc]
push eax
push 0x27f7
lea eax, [ebp - 0x2bf7]
push eax
push 0x400
lea eax, [ebp - 0x400]
push eax
push 0x2d1400
push esi
call fcn.004076ec
test eax, eax
je 0x5234d6
lea edx, [ebx + 0xac]
lea eax, [ebp - 0x2bf7]
mov ecx, pe_nt_image_headers32
call fcn.00403118
cmp dword [ebx + 0x20], 0
jne 0x5233d4
mov esi, dword [ebp - 0x2beb]
test esi, esi
jbe 0x523362
lea eax, [ebp - 0x2c04]
lea edx, [ebp + esi - 0x2bf7]
call fcn.00405758
mov eax, dword [ebp - 0x2c04]
lea edx, [ebp - 0x2c00]
call fcn.00409f1c
mov edx, dword [ebp - 0x2c00]
lea eax, [ebx + 0x20]
call fcn.004050d4
mov esi, dword [ebp - 0x2be7]
test esi, esi
jbe 0x5233d4
mov edx, dword [ebx + 0x20]
lea eax, [ebp - 0x2c0c]
mov ecx, 0x523578
call fcn.00405164
mov edx, dword [ebp - 0x2c0c]
lea eax, [ebp - 0x2c08]
call fcn.004057c4
lea eax, [ebp - 0x2c08]
push eax
lea eax, [ebp - 0x2c14]
lea edx, [ebp + esi - 0x2bf7]
call fcn.00405758
mov eax, dword [ebp - 0x2c14]
lea edx, [ebp - 0x2c10]
call fcn.00409f1c
mov edx, dword [ebp - 0x2c10]
pop eax
call fcn.004057f0
mov edx, dword [ebp - 0x2c08]
lea eax, [ebx + 0x20]
call fcn.004050d4
lea edx, [ebp - 0x2c18]
mov eax, dword [ebx + 0x20]
call fcn.00409ec8
mov edx, dword [ebp - 0x2c18]
lea eax, [ebx + 0x20]
call fcn.00404e84
cmp dword [ebx + 0x24], 0
jne 0x523436
cmp dword [ebp - 0x2be3], 0
jbe 0x523436
lea eax, [ebp - 0x2c20]
mov edx, dword [ebp - 0x2be3]
lea edx, [ebp + edx - 0x2bf7]
call fcn.00405758
mov eax, dword [ebp - 0x2c20]
lea edx, [ebp - 0x2c1c]
call fcn.00409f1c
mov edx, dword [ebp - 0x2c1c]
lea eax, [ebx + 0x24]
call fcn.004050d4
cmp dword [ebx + 0x1c], 0
jne 0x5234ac
cmp dword [ebp - 0x2bdf], 0x27f7
jae 0x5234ac
cmp dword [ebp - 0x2bdf], 0
jbe 0x5234ac
lea eax, [ebp - 0x2c30]
mov edx, dword [ebp - 0x2bdf]
lea edx, [ebp + edx - 0x2bf7]
call fcn.00405028
mov eax, dword [ebp - 0x2c30]
lea edx, [ebp - 0x2c2c]
call fcn.00522578
mov eax, dword [ebp - 0x2c2c]
lea edx, [ebp - 0x2c28]
call fcn.00409ec8
mov eax, dword [ebp - 0x2c28]
lea ecx, [ebp - 0x2c24]
mov dl, 0x5f
call fcn.004a7ce8
mov edx, dword [ebp - 0x2c24]
lea eax, [ebx + 0x1c]
call fcn.00404e84
mov eax, dword [ebp - 0x2bdb]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x38], 0
jne 0x5234c5
movzx eax, byte [ebp - 0x2bef]
mov dword [ebx + 0x38], eax
movzx eax, byte [ebp - 0x2bed]
mov byte [ebx + 0x44], al
mov byte [ebp - 0x2bf8], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5234f5
call fcn.0040780c
mov dword [0x5d8b08], eax
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523560
lea eax, [ebp - 0x2c30]
mov edx, 4
call fcn.00404e54
lea eax, [ebp - 0x2c20]
mov edx, 2
call fcn.00405644
lea eax, [ebp - 0x2c18]
call fcn.00404e30
lea eax, [ebp - 0x2c14]
mov edx, 2
call fcn.00405644
lea eax, [ebp - 0x2c0c]
call fcn.00404e30
lea eax, [ebp - 0x2c08]
mov edx, 3
call fcn.00405644
ret