Function at 0x4287b0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1034
call fcn.004e1f60
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x100c]
push edi
mov edi, dword [ebp + 0xc]
push 0x802
push 0
push eax
mov dword [ebp - 0x102c], esi
mov dword [ebp - 0x1028], edi
mov dword [ebp - 0x1020], 0xffffffff
call fcn.004e46b0
push 0x802
lea eax, [ebp - 0x808]
push 0
push eax
call fcn.004e46b0
xor ebx, ebx
mov dword [ebp - 0x1024], 0
push str.Device_
push esi
mov dword [edi], ebx
mov dword [edi + 4], ebx
call fcn.0042c560
add esp, 0x20
cmp eax, esi
jne 0x428a1e
push 0x51ac44
push esi
call fcn.0042c560
add esp, 8
test eax, eax
je 0x428a1e
mov eax, dword [0x559348]
push eax
inc eax
mov dword [0x559348], eax
lea eax, [ebp - 0x808]
push 0x51a78c
push eax
call fcn.004054c0
add esp, 0xc
lea eax, [ebp - 0x808]
push esi
push eax
push 1
call dword [sym.imp.KERNEL32.DLL_DefineDosDeviceW]
test eax, eax
je 0x4288ba
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x100c]
push str.._s
push eax
call fcn.004054c0
add esp, 0xc
lea eax, [ebp - 0x100c]
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x1020], eax
cmp eax, 0xffffffff
jne 0x4288c4
mov edi, 1
jmp 0x4289d2
mov esi, dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
lea ecx, [ebp - 0x1024]
push 0
push ecx
push 0xc
lea ecx, [ebp - 0x1018]
push ecx
push 0
push 0
push 0x2d1080
push eax
call esi
test eax, eax
je 0x4288ba
cmp dword [ebp - 0x1014], 0xffffffff
je 0x4289cd
push 0x24c0
call fcn.004e240a
add esp, 4
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x42891a
lea edi, [eax + 1]
mov ebx, eax
jmp 0x4289d2
push 0x24c0
push 0
push eax
call fcn.004e46b0
mov ebx, dword [ebp - 0x101c]
lea eax, [ebp - 0x1024]
add esp, 0xc
push 0
push eax
push 0x24c0
push ebx
push 0
push 0
push 0x70050
push dword [ebp - 0x1020]
call esi
test eax, eax
je 0x4288ba
mov eax, ebx
xorps xmm0, xmm0
movlpd qword [ebp - 0x1034], xmm0
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x4289c7
mov edx, dword [ebp - 0x1030]
lea ecx, [eax + 0x38]
mov esi, dword [ebp - 0x1034]
nop dword [eax + eax]
cmp dword [ecx + 0x10], edi
je 0x4289a3
mov eax, dword [ecx + 8]
or eax, dword [ecx + 0xc]
je 0x4289a3
mov eax, esi
or eax, edx
je 0x42899e
cmp edx, dword [ecx + 4]
jl 0x4289a3
jg 0x42899e
cmp esi, dword [ecx]
jbe 0x4289a3
mov esi, dword [ecx]
mov edx, dword [ecx + 4]
add ecx, 0x90
sub ebx, 1
jne 0x428980
mov eax, esi
or eax, edx
je 0x4289c7
mov eax, dword [ebp - 0x1028]
mov ebx, dword [ebp - 0x101c]
mov dword [eax], esi
mov dword [eax + 4], edx
jmp 0x4289d2
mov ebx, dword [ebp - 0x101c]
mov edi, 0x1e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push ebx
mov esi, eax
call fcn.004e2413
add esp, 4
push dword [ebp - 0x1020]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x102c]
lea eax, [ebp - 0x808]
push eax
push 7
call dword [sym.imp.KERNEL32.DLL_DefineDosDeviceW]
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x1e
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret