Function at 0x524e58
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff40
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x52509b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x525078
inc eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x18]
cmp byte [eax + 0x18], 0
jne 0x52506c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x58]
call fcn.005076a0
mov byte [ebp - 0xc], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 8]
call fcn.004090bc
inc eax
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
add eax, 8
mov ecx, 1
mov edx, dword [0x5073a0]
call fcn.00409284
add esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 8]
call fcn.004090c4
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 8]
lea edi, [edx + eax*8]
lea esi, [ebp - 0x58]
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax + 0x24], 0
je 0x524feb
mov eax, dword [0x542d44]
mov eax, dword [eax]
cmp byte [eax + 0x895], 0
je 0x524feb
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x64]
call fcn.00404c2c
mov edx, 0x5250ac
lea eax, [ebp - 0x64]
mov cl, 5
call fcn.00404bfc
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x5c]
call fcn.00407b44
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x20]
call fcn.00523084
test eax, eax
jne 0x524feb
lea eax, [ebp - 0x68]
movzx edx, byte [ebp - 0x57]
call fcn.0040793c
lea eax, [ebp - 0x68]
mov edx, 0x5250bc
call fcn.00407bf4
mov eax, dword [ebp - 0x68]
call fcn.0040785c
push eax
call sub.kernel32.dll_GetDriveTypeW
push eax
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x64]
call fcn.00404c2c
mov edx, 0x5250ac
lea eax, [ebp - 0x64]
mov cl, 5
call fcn.00404bfc
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x6c]
call fcn.00407b44
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x20]
pop ecx
call fcn.00522ef4
xor eax, eax
push ebp
push 0x525060
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x543164]
mov eax, dword [eax]
mov edx, dword [eax + 0x390]
lea eax, [ebp - 0x70]
mov ecx, 0x5250d0
call fcn.00407cb4
mov eax, dword [ebp - 0x70]
call fcn.004156bc
test al, al
je 0x525056
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0xc0]
call fcn.005076a0
lea edx, [ebp - 0xc0]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, 0x5250ec
call fcn.00525a8c
mov edx, dword [ebp + 8]
mov byte [edx - 9], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x52506a
mov bl, 1
inc dword [ebp - 4]
dec dword [ebp - 8]
jne 0x524ea3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5250a2
lea eax, [ebp - 0x70]
mov edx, 3
call fcn.004077c8
lea eax, [ebp - 0x5c]
call fcn.004077c0
ret