Function at 0x525ff6
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0xc4], 0
jmp 0x526020
mov eax, dword [ebp - 0xc4]
add eax, 1
mov dword [ebp - 0xc4], eax
cmp dword [ebp - 0xc4], 0x10
jge 0x52635e
mov ecx, dword [ebp - 0xc4]
imul ecx, ecx, 0x42c
mov edx, dword [ebp - 0x414]
movsx eax, byte [edx + ecx + 0x163c]
test eax, eax
jne 0x52604d
jmp 0x526011
push 0x20
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0xc4]
imul edx, edx, 0x3c
mov eax, dword [ebp - 0x414]
lea ecx, [eax + edx + 0x72c]
call fcn.00564356
mov ecx, dword [ebp - 0xc4]
imul ecx, ecx, 0x42c
mov edx, dword [ebp - 0x414]
movsx eax, byte [edx + ecx + 0x163c]
test eax, eax
je 0x5260aa
mov cl, byte [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x414]
add ecx, 0x10d2c
call fcn.004bb30a
test eax, eax
jne 0x5260aa
jmp 0x526011
mov edx, dword [ebp - 0xc4]
push edx
mov ecx, dword [ebp - 0x414]
add ecx, 0x10d2c
call fcn.004bb1a5
mov eax, dword [ebp - 0xc4]
imul eax, eax, 0x42c
mov ecx, dword [ebp - 0x414]
movsx edx, byte [ecx + eax + 0x163c]
push edx
push 0x5b6ce8
lea eax, [ebp - 0xc0]
push eax
call fcn.0054c45b
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
lea ecx, [ebp - 0xc0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1f4], eax
cmp dword [ebp - 0x1f4], 0xffffffff
jne 0x52611e
jmp 0x52635e
mov dword [ebp - 0xd4], 0xffffffff
mov dword [ebp - 0xc8], 0
push 0
lea edx, [ebp - 0xc8]
push edx
push 0xc
lea eax, [ebp - 0x40c]
push eax
push 0
push 0
push 0x2d1080
mov ecx, dword [ebp - 0x1f4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0x1ec], eax
cmp dword [ebp - 0x1ec], 0
je 0x526175
mov edx, dword [ebp - 0x408]
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0x1f4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xd4], 0xffffffff
jne 0x526190
jmp 0x52635e
mov ecx, dword [ebp - 0xc4]
imul ecx, ecx, 0x42c
mov edx, dword [ebp - 0x414]
movsx eax, byte [edx + ecx + 0x163c]
push eax
push 0x5b6cf0
lea ecx, [ebp - 0xcc]
push ecx
call fcn.0054c45b
add esp, 0xc
lea edx, [ebp - 0xcc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xc4]
imul eax, eax, 0x42c
mov ecx, dword [ebp - 0x414]
movsx edx, byte [ecx + eax + 0x163c]
push edx
push 0x5b6cf8
lea eax, [ebp - 0xcc]
push eax
call fcn.0054c45b
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x1e8]
push ecx
lea edx, [ebp - 0xcc]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov dword [ebp - 0x1ec], eax
cmp dword [ebp - 0x1ec], 0
jne 0x52622e
jmp 0x52635e
lea eax, [ebp - 0x1e8]
push eax
mov ecx, dword [ebp - 0xe0]
push ecx
mov edx, dword [ebp - 0xd4]
push edx
call fcn.00525b00
add esp, 0xc
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd4], 0xffffffff
jne 0x52625f
jmp 0x52635e
mov dword [ebp - 0x1f0], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0xd8], 0
mov byte [ebp - 0xdc], 0
mov dword [ebp - 0x1f8], 0
push 0
mov eax, dword [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x1f8]
push ecx
call dword [sym.imp.SETUPAPI.dll_CM_Get_Parent]
mov dword [ebp - 0x1ec], eax
mov dword [ebp - 0x410], 0
jmp 0x5262c5
mov edx, dword [ebp - 0x410]
add edx, 1
mov dword [ebp - 0x410], edx
cmp dword [ebp - 0x410], 3
jge 0x526359
mov word [ebp - 0x400], 0
push 0
push 0x104
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0xd8]
push ecx
mov edx, dword [ebp - 0x1f8]
push edx
call dword [sym.imp.SETUPAPI.dll_CM_Request_Device_EjectW]
mov dword [ebp - 0x1ec], eax
cmp dword [ebp - 0x1ec], 0
jne 0x526321
cmp dword [ebp - 0xd8], 0
jne 0x526321
mov dword [ebp - 0x418], 1
jmp 0x52632b
mov dword [ebp - 0x418], 0
mov al, byte [ebp - 0x418]
mov byte [ebp - 0xdc], al
mov ecx, dword [ebp - 0xdc]
and ecx, 0xff
test ecx, ecx
je 0x526349
jmp 0x526359
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x5262b6
jmp 0x526011
mov esp, ebp
pop ebp
ret