Function at 0x486de4
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x21d
push 0
push 0
dec ecx
jne 0x486dec
push ebx
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x487561
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x487514
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 0x20c]
call fcn.0045cec8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 0x20c]
call fcn.0045cea8
cmp dword [ebp - 8], 0
jne 0x486e49
call fcn.00403740
jmp 0x48751b
push 0
lea eax, [ebp - 0xc]
push eax
push 0x1000
lea eax, [ebp - 0x103c]
push eax
push 0
push 0
push 0x70050
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x486e7a
cmp dword [ebp - 0xc], 0
jne 0x486e84
call fcn.00403740
jmp 0x48751b
lea eax, [ebp - 0x103c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
test eax, eax
jne 0x486ea1
call fcn.00403740
jmp 0x48751b
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
xor edx, edx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x10]
lea ebx, [edx + 0x30]
dec eax
test eax, eax
jl 0x487181
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
test eax, eax
jne 0x486fbf
lea eax, [ebp - 0x20]
mov edx, 0x487578
call fcn.00403c68
lea eax, [ebp - 0x24]
push eax
xor eax, eax
mov al, byte [ebx + 0x20]
mov dword [ebp - 0x105c], eax
mov byte [ebp - 0x1058], 0
xor eax, eax
mov al, byte [ebx + 0x21]
mov dword [ebp - 0x1054], eax
mov byte [ebp - 0x1050], 0
xor eax, eax
mov al, byte [ebx + 0x22]
mov dword [ebp - 0x104c], eax
mov byte [ebp - 0x1048], 0
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x1064], eax
xor eax, eax
mov dword [ebp - 0x1060], eax
fild qword [ebp - 0x1064]
fadd dword [0x48758c]
fstp xword [ebp - 0x1070]
wait
lea eax, [ebp - 0x1070]
mov dword [ebp - 0x1044], eax
mov byte [ebp - 0x1040], 3
lea edx, [ebp - 0x105c]
mov ecx, 3
mov eax, 0x487598
call fcn.004090ac
push dword [ebp - 0x24]
push 0x4875dc
lea ecx, [ebp - 0x1074]
xor edx, edx
mov dl, byte [ebx + 0x20]
mov eax, dword [ebp - 4]
call fcn.0048680c
push dword [ebp - 0x1074]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00403f2c
cmp byte [ebx + 0x22], 0
je 0x486fb0
mov dword [ebp - 0x18], 1
inc dword [ebp - 0x1c]
jmp 0x48701e
cmp dword [ebx + 0x18], 0
jne 0x48701e
mov dword [ebp - 0x18], 2
jmp 0x48701e
cmp eax, 1
jne 0x487001
lea eax, [ebp - 0x20]
lea edx, [ebx + 0x48]
mov ecx, 0x24
call fcn.00403e18
lea edx, [ebp - 0x24]
lea eax, [ebx + 0x30]
call fcn.00475e90
inc dword [ebp - 0x1c]
lea edx, [ebx + 0x20]
mov eax, dword [0x49c05c]
mov ecx, 0x10
call fcn.004082e4
test al, al
je 0x48701e
mov dword [ebp - 0x18], 1
jmp 0x48701e
inc dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
mov edx, 0x4875e8
call fcn.00403c68
lea eax, [ebp - 0x24]
mov edx, 0x487600
call fcn.00403c68
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 0x20c]
call fcn.0045cd74
mov esi, eax
mov edx, dword [ebx + 0x18]
mov eax, esi
call int.0045c8e8
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov eax, esi
call fcn.0045c9ec
mov edx, dword [ebp - 0x20]
mov eax, esi
call fcn.0045c848
push dword [ebx + 0x14]
push dword [ebx + 0x10]
lea eax, [ebp - 0x107c]
call fcn.00475fcc
push dword [ebp - 0x107c]
push 0x48760c
push dword [ebx + 0xc]
push dword [ebx + 8]
lea eax, [ebp - 0x1080]
call fcn.00475fcc
push dword [ebp - 0x1080]
push 0x48760c
lea eax, [ebp - 0x1084]
push eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x1064], eax
mov byte [ebp - 0x1060], 0
lea edx, [ebp - 0x1064]
xor ecx, ecx
mov eax, 0x487618
call fcn.004090ac
push dword [ebp - 0x1084]
push 0x48760c
push dword [ebx + 0xc]
push dword [ebx + 8]
lea eax, [ebp - 0x1088]
call fcn.00486d9c
push dword [ebp - 0x1088]
push 0x48760c
push 0
push 1
mov eax, dword [ebp - 8]
push dword [eax + 0x54]
push dword [eax + 0x50]
call fcn.0042128c
mov dword [ebp - 0x1064], eax
mov dword [ebp - 0x1060], edx
fild qword [ebp - 0x1064]
fild qword [ebx + 0x10]
fdivrp st(1)
fmul dword [0x48761c]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x108c]
mov eax, 0x487628
call fcn.004091c0
push dword [ebp - 0x108c]
push 0x48760c
push dword [ebp - 0x24]
lea eax, [ebp - 0x1078]
mov edx, 0xb
call fcn.00403f2c
mov edx, dword [ebp - 0x1078]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
cmp dword [ebp - 0x18], 2
je 0x487163
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
add eax, dword [ebx + 0x10]
adc edx, dword [ebx + 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
dec eax
cmp eax, dword [ebp - 0x14]
jle 0x487175
add ebx, 0x90
inc dword [ebp - 0x14]
dec dword [ebp - 0x3c]
jne 0x486ece
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x50]
sub eax, dword [ebp - 0x30]
sbb edx, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
jne 0x4871a4
cmp dword [ebp - 0x38], 0
ja 0x4871c0
jmp 0x4871a6
jg 0x4871c0
push 0
mov eax, dword [0x49c0ac]
mov eax, dword [eax]
mov ecx, 0x48763c
mov dl, 0x11
call fcn.00475d88
jmp 0x487384
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 0x20c]
call fcn.0045cd74
mov esi, eax
or edx, 0xffffffff
mov eax, esi
call int.0045c8e8
mov ecx, 4
xor edx, edx
mov eax, esi
call fcn.0045c9ec
mov eax, dword [0x49c0ac]
mov eax, dword [eax]
mov dl, 0x11
call fcn.00475d48
mov edx, dword [eax]
mov eax, esi
call fcn.0045c848
push dword [ebp - 0x34]
push dword [ebp - 0x38]
lea eax, [ebp - 0x1094]
call fcn.00475fcc
push dword [ebp - 0x1094]
push 0x48760c
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
lea eax, [ebp - 0x1098]
call fcn.00475fcc
push dword [ebp - 0x1098]
push 0x48760c
push 0x48764c
push 0x48760c
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
lea eax, [ebp - 0x109c]
call fcn.00486d9c
push dword [ebp - 0x109c]
push 0x48760c
fild qword [ebp - 0x38]
mov eax, dword [ebp - 8]
fild qword [eax + 0x50]
fdivp st(1)
fmul dword [0x48761c]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x10a0]
mov eax, 0x487628
call fcn.004091c0
push dword [ebp - 0x10a0]
push 0x48760c
push 0x487658
lea eax, [ebp - 0x1090]
mov edx, 0xb
call fcn.00403f2c
mov edx, dword [ebp - 0x1090]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x38]
lea eax, [ebp - 0x10a4]
call fcn.00475fcc
lea eax, [ebp - 0x10a4]
push eax
lea eax, [ebp - 0x10a8]
push eax
fild qword [ebp - 0x38]
mov eax, dword [ebp - 8]
fild qword [eax + 0x50]
fdivp st(1)
fmul dword [0x48761c]
fstp xword [ebp - 0x1070]
wait
lea eax, [ebp - 0x1070]
mov dword [ebp - 0x1064], eax
mov byte [ebp - 0x1060], 3
lea edx, [ebp - 0x1064]
xor ecx, ecx
mov eax, 0x487694
call fcn.004090ac
mov edx, dword [ebp - 0x10a8]
pop eax
call fcn.00403e74
mov ecx, dword [ebp - 0x10a4]
mov eax, dword [0x49c0ac]
mov eax, dword [eax]
mov dl, 0x11
call fcn.00475d88
lea eax, [ebp - 0x10ac]
push eax
fild qword [ebp - 0x38]
fadd dword [0x48758c]
fstp xword [ebp - 0x1070]
wait
lea eax, [ebp - 0x1070]
mov dword [ebp - 0x1064], eax
mov byte [ebp - 0x1060], 3
lea edx, [ebp - 0x1064]
xor ecx, ecx
mov eax, 0x4876a8
call fcn.004090ac
mov ecx, dword [ebp - 0x10ac]
mov eax, dword [0x49c0ac]
mov eax, dword [eax]
mov dl, 0x11
call fcn.00475d54
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
test ebx, ebx
je 0x4873e8
push 0
lea eax, [ebp - 0x10b0]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10c0], eax
mov byte [ebp - 0x10bc], 0
mov eax, dword [ebx*4 + 0x49bb48]
mov dword [ebp - 0x10b8], eax
mov byte [ebp - 0x10b4], 6
lea edx, [ebp - 0x10c0]
mov ecx, 1
mov eax, 0x4876cc
call fcn.004090ac
mov ecx, dword [ebp - 0x10b0]
mov eax, dword [0x49c0ac]
mov eax, dword [eax]
mov dl, 0x15
call fcn.00475d88
jmp 0x487451
push 0
lea eax, [ebp - 0x10c4]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10dc], eax
mov byte [ebp - 0x10d8], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10d4], eax
mov byte [ebp - 0x10d0], 0
mov eax, dword [ebx*4 + 0x49bb48]
mov dword [ebp - 0x10cc], eax
mov byte [ebp - 0x10c8], 6
lea edx, [ebp - 0x10dc]
mov ecx, 2
mov eax, 0x4876dc
call fcn.004090ac
mov ecx, dword [ebp - 0x10c4]
mov eax, dword [0x49c0ac]
mov eax, dword [eax]
mov dl, 0x15
call fcn.00475d88
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
sub eax, 1
jb 0x48745f
je 0x4874a1
jmp 0x4874dc
lea eax, [ebp - 0x10e0]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1064], eax
mov byte [ebp - 0x1060], 0
lea edx, [ebp - 0x1064]
xor ecx, ecx
mov eax, 0x4876f4
call fcn.004090ac
mov ecx, dword [ebp - 0x10e0]
mov eax, dword [0x49c0ac]
mov eax, dword [eax]
mov dl, 0x15
call fcn.00475d54
jmp 0x4874dc
lea edx, [ebp - 0x10e8]
mov eax, dword [ebp - 0x10]
add eax, 8
call fcn.00475e90
mov ecx, dword [ebp - 0x10e8]
lea eax, [ebp - 0x10e4]
mov edx, 0x487714
call fcn.00403eb8
mov ecx, dword [ebp - 0x10e4]
mov eax, dword [0x49c0ac]
mov eax, dword [eax]
mov dl, 0x15
call fcn.00475d54
push 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
call fcn.00435010
mov ecx, 1
xor edx, edx
call fcn.00420544
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48751b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x78]
mov eax, dword [eax + 0x20c]
call fcn.0045d0a4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487568
lea eax, [ebp - 0x10e8]
mov edx, 3
call fcn.00403bf4
lea eax, [ebp - 0x10c4]
call fcn.00403bd0
lea eax, [ebp - 0x10b0]
mov edx, 0x10
call fcn.00403bf4
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00403bf4
ret