Function at 0x47b998
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x490], ebx
mov dword [ebp - 0x48c], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47bdc0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
call fcn.004040c0
lea eax, [ebp - 0x48c]
mov edx, esi
call fcn.004042b8
mov edx, dword [ebp - 0x48c]
mov eax, 0x47bddc
call fcn.004046c4
test eax, eax
setg al
neg al
sbb eax, eax
sub ebx, 2
je 0x47ba0c
dec ebx
je 0x47ba1e
sub ebx, 2
je 0x47ba25
jmp 0x47bda2
test eax, eax
je 0x47ba17
mov edi, 0x4d6180
jmp 0x47ba2a
mov edi, 0x4d6160
jmp 0x47ba2a
mov edi, 0x4d6160
jmp 0x47ba2a
mov edi, 0x4d6170
push 0x12
push 0
push 0
push edi
call dword [0x4d9c54]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x47bda2
xor ebx, ebx
lea esi, [ebp - 0x428]
mov dword [ebp - 0x444], 0x1c
lea eax, [ebp - 0x444]
push eax
push ebx
push edi
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4d9c6c]
test eax, eax
je 0x47bd98
xor eax, eax
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea eax, [ebp - 0x444]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4d9c70]
cmp dword [ebp - 0x10], 0
je 0x47bd92
cmp dword [ebp - 0x10], 0x400
ja 0x47bd92
mov dword [esi], 5
lea eax, [ebp - 0x460]
mov edx, 0x1c
call fcn.004070b8
mov dword [ebp - 0x460], 0x1c
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x444]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4d9c70]
test eax, eax
jle 0x47bd92
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [esi + 4]
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x47bd92
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0xc
lea eax, [ebp - 0x46c]
push eax
push 0
push 0
push 0x2d1080
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
jle 0x47bd89
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x468]
jne 0x47bd89
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
lea eax, [ebp - 0x488]
mov edx, 0x1c
call fcn.004070b8
mov dword [ebp - 0x488], 0x1c
jmp 0x47bd5a
mov eax, dword [ebp - 0x474]
cmp eax, dword [ebp - 0x44c]
jne 0x47bd59
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea eax, [ebp - 0x488]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4d9c7c]
cmp dword [ebp - 0x1c], 0
jbe 0x47bd74
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x47bd52
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
call fcn.004083a4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x488]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4d9c7c]
test eax, eax
je 0x47bd31
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
call fcn.004042b8
lea edx, [ebp - 0x490]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00408428
mov edx, dword [ebp - 0x490]
mov eax, 0x47bdec
call fcn.004046c4
dec eax
jne 0x47bd31
xor eax, eax
mov dword [ebp - 0x28], eax
push 0
mov eax, dword [ebp - 0x44c]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [0x4d9c40]
test eax, eax
jne 0x47bd31
cmp dword [ebp - 0x28], 0
jbe 0x47bd31
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4d9c4c]
cmp dword [ebp - 0x24], 0
je 0x47bc72
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.0040270c
xor eax, eax
mov dword [ebp - 0x24], eax
push 2
push 0
push 0
push 0x4d6140
call dword [0x4d9c54]
mov dword [ebp - 0xc], eax
xor ebx, ebx
lea eax, [ebp - 0x488]
mov edx, 0x1c
call fcn.004070b8
mov dword [ebp - 0x488], 0x1c
jmp 0x47bd17
mov eax, dword [ebp - 0x474]
cmp eax, dword [ebp - 0x28]
jne 0x47bd16
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
lea eax, [ebp - 0x488]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4d9c7c]
cmp dword [ebp - 0x1c], 0
jbe 0x47bd31
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
call fcn.004083a4
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x488]
push eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4d9c7c]
test eax, eax
je 0x47bd31
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x24]
call fcn.004042b8
jmp 0x47bd31
inc ebx
lea eax, [ebp - 0x488]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4d9c44]
test eax, eax
jne 0x47bca9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bd74
cmp dword [ebp - 0x24], 0
je 0x47bd51
mov edx, 1
mov eax, dword [ebp - 0x24]
call fcn.0040270c
ret
inc ebx
lea eax, [ebp - 0x488]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4d9c44]
test eax, eax
jne 0x47bb7c
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4d9c4c]
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 8], eax
jmp 0x47bda2
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
inc ebx
jmp 0x47ba56
mov eax, dword [ebp - 0xc]
push eax
call dword [0x4d9c4c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bdc7
lea eax, [ebp - 0x490]
mov edx, 2
call fcn.004040e4
ret